]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add cups-version attribute (STR #2240)
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 30 Apr 2007 21:53:15 +0000 (21:53 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 30 Apr 2007 21:53:15 +0000 (21:53 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6501 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES.txt
scheduler/printers.c

index 1a2cdbd1c1b48c3adac92393c62f653c0ec017b0..fb96a991b8373fd62ed3c5cdfbe41ba0f2cd2a7f 100644 (file)
@@ -5,6 +5,9 @@ CHANGES IN CUPS V1.3
 
        - Documentation updates (STR #1775, STR #2130, STR #2131,
          STR #2356)
+       - Added a new printer attribute called "cups-version"
+         which reports the version of CUPS that is running
+         (STR #2240)
        - backendRunLoop() now aborts immediately on SIGTERM
          if no data has been written yet (STR #2103)
        - Due to poor IPP support from the vendors, the SNMP
index b4bd452ec279cd816be6818b7d5c944ce8ee4476..ec83516f1e26b5e69af14b0e988389282ca8dbc3 100644 (file)
@@ -26,6 +26,7 @@
  *   cupsdAddPrinter()           - Add a printer to the system.
  *   cupsdAddPrinterHistory()    - Add the current printer state to the history.
  *   cupsdAddPrinterUser()       - Add a user to the ACL.
+ *   cupsdCreateCommonData()     - Create the common printer data.
  *   cupsdDeleteAllPrinters()    - Delete all printers from the system.
  *   cupsdDeletePrinter()        - Delete a printer from the system.
  *   cupsdFindPrinter()          - Find a printer in the list.
@@ -413,6 +414,10 @@ cupsdCreateCommonData(void)
   /* copies-supported */
   ippAddRange(CommonData, IPP_TAG_PRINTER, "copies-supported", 1, MaxCopies);
 
+  /* cups-version */
+  ippAddString(CommonData, IPP_TAG_PRINTER, IPP_TAG_TEXT, "cups-version",
+               NULL, CUPS_SVERSION + 6);
+
   /* generated-natural-language-supported */
   ippAddString(CommonData, IPP_TAG_PRINTER, IPP_TAG_LANGUAGE,
                "generated-natural-language-supported", NULL, DefaultLanguage);