summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Untz <vuntz@novell.com>2009-02-28 03:23:43 +0100
committerVincent Untz <vuntz@novell.com>2009-02-28 03:23:43 +0100
commit70ba1da9edba817c4b02165fbe110e45b509da73 (patch)
treea7375933494da174d4d9cfc022f57c8fc285de4c /src
parent10024dbff8720f99e5ef12a78d8a3639ccbcf22a (diff)
Move the check validity for job_hold_until later.
We group it with other checks for text. Also add some comments to structure the code.
Diffstat (limited to 'src')
-rw-r--r--src/cups.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cups.c b/src/cups.c
index 2ddffba..1825320 100644
--- a/src/cups.c
+++ b/src/cups.c
@@ -356,7 +356,6 @@ _CPH_CUPS_IS_VALID (ppd_filename, "PPD file", FALSE)
_CPH_CUPS_IS_VALID (job_sheet, "job sheet", FALSE)
_CPH_CUPS_IS_VALID (error_policy, "error policy", FALSE)
_CPH_CUPS_IS_VALID (op_policy, "op policy", FALSE)
-_CPH_CUPS_IS_VALID (job_hold_until, "job hold until", FALSE)
/* Check for users. Those are some printable strings, which souldn't be NULL.
* They should also not be empty, but it appears that it's possible to carry
@@ -381,6 +380,7 @@ _CPH_CUPS_IS_VALID (option_value, "value for option", FALSE)
_CPH_CUPS_IS_VALID (info, "description", FALSE)
_CPH_CUPS_IS_VALID (location, "location", FALSE)
_CPH_CUPS_IS_VALID (reject_jobs_reason, "reason", FALSE)
+_CPH_CUPS_IS_VALID (job_hold_until, "job hold until", FALSE)
/* For put/get file: this is some text, but we could potentially do more
* checks. We don't do them because cups will already do them.
@@ -963,6 +963,8 @@ cph_cups_file_put (CphCups *cups,
cups->priv->last_status == HTTP_CREATED);
}
+/* Functions that work on a printer */
+
gboolean
cph_cups_printer_add (CphCups *cups,
const char *printer_name,
@@ -1618,6 +1620,8 @@ out:
return retval;
}
+/* Functions that are for the server in general */
+
GHashTable *
cph_cups_server_get_settings (CphCups *cups)
{
@@ -1708,6 +1712,8 @@ cph_cups_server_set_settings (CphCups *cups,
return TRUE;
}
+/* Functions that work on jobs */
+
gboolean
cph_cups_job_cancel (CphCups *cups,
int job_id,