[gnome-settings-daemon/gnome-3-8] printer: allow building against cups 1.5



commit 04fba00f57a0ca82917348b19c12195d98313884
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Tue Aug 20 22:22:18 2013 +0200

    printer: allow building against cups 1.5
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706442

 .../gsd-print-notifications-manager.c              |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/plugins/print-notifications/gsd-print-notifications-manager.c 
b/plugins/print-notifications/gsd-print-notifications-manager.c
index c785d11..0d6eec4 100644
--- a/plugins/print-notifications/gsd-print-notifications-manager.c
+++ b/plugins/print-notifications/gsd-print-notifications-manager.c
@@ -62,6 +62,17 @@
 #define ippGetStatusCode(ipp) ipp->request.status.status_code
 #define ippGetInteger(attr, element) attr->values[element].integer
 #define ippGetString(attr, element, language) attr->values[element].string.text
+#define ippGetName(attr) attr->name
+#define ippGetCount(attr) attr->num_values
+#define ippGetBoolean(attr, index) attr->values[index].boolean
+
+static ipp_attribute_t *
+ippNextAttribute (ipp_t *ipp)
+{
+  if (!ipp || !ipp->current)
+    return (NULL);
+  return (ipp->current = ipp->current->next);
+}
 #endif
 
 struct GsdPrintNotificationsManagerPrivate


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]