custom_value = TRUE;
break;
+ case PPD_CUSTOM_UNKNOWN:
default :
custom_value = FALSE;
}
dispatch->backend->authentication_lock = TRUE;
- switch (ippGetOperation (dispatch->request->ipp_request))
+ switch ((guint)ippGetOperation (dispatch->request->ipp_request))
{
case IPP_PRINT_JOB:
if (job_title != NULL && printer_name != NULL)
col = ippGetCollection (attr, i);
for (iter = ippFirstAttribute (col); iter != NULL; iter = ippNextAttribute (col))
{
- switch (ippGetValueTag (iter))
+ switch ((guint)ippGetValueTag (iter))
{
case IPP_TAG_INTEGER:
if (g_strcmp0 (ippGetName (iter), "media-bottom-margin") == 0)
g_free (data);
}
-gboolean
+static gboolean
avahi_txt_get_key_value_pair (const gchar *entry,
gchar **key,
gchar **value)
case GTK_CUPS_CONNECTION_AVAILABLE:
g_object_set (cups_backend, "status", GTK_PRINT_BACKEND_STATUS_OK, NULL);
break;
+
+ case GTK_CUPS_CONNECTION_IN_PROGRESS:
default: ;
}
}
if (ppdNextCustomParam (coption) == NULL)
{
- switch (cparam->type)
+ switch ((guint)cparam->type)
{
case PPD_CUSTOM_INT:
option = gtk_printer_option_new (gtk_name, label,
* Returns a newly allocated string holding UTC time in HH:MM:SS format
* or NULL.
*/
-gchar *
+static gchar *
localtime_to_utctime (const char *local_time)
{
const char *formats_0[] = {" %I : %M : %S %p ", " %p %I : %M : %S ",
'-DGTK_COMPILATION',
'-DGTK_DISABLE_DEPRECATION_WARNINGS',
'-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED',
-]
+] + common_cflags
if print_backends.contains('cups')
shared_module('printbackend-cups',