]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Treat Bonjour shared printers as (mostly) remote (STR #2384)
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 16 May 2007 20:47:31 +0000 (20:47 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 16 May 2007 20:47:31 +0000 (20:47 +0000)
scheduler/printers.c:
    - cupsdSetPrinterAttrs(): Look for APRemoteQueueID attribute as
      a sign that the printer is a shared Bonjour printer.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6536 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES.txt
scheduler/printers.c

index 3985acf684bdfa08d59d9f378553520aa6a147a3..942cd4d307e1b9bd35d2dc0d5e3f5917038733fd 100644 (file)
@@ -5,6 +5,8 @@ CHANGES IN CUPS V1.3
 
        - Documentation updates (STR #1775, STR #2130, STR #2131,
          STR #2263, STR #2356)
+       - The scheduler did not report Bonjour shared printers as
+         remote printers (STR #2384)
        - Added new -R and -W options to the cupstestppd program
          for greater control over the testing of PPDs.
        - Added a new cupsGetServerPPD() function for getting
@@ -14,11 +16,17 @@ CHANGES IN CUPS V1.3
        - Added a new CUPS_GET_PPD operation for getting an
          available PPD file on the server (STR #2334) 
        - CUPS_GET_PPDS now reports multiple ppd-product values
-         if the corresponding PPD contains multiple products
-         (STR #2334)
+         based on the PPD ModelName and Product strings (STR
+         #2334, STR #2383)
        - CUPS_GET_PPDS now reports the PSVersion attributes
          from a PPD file in the ppd-psversion attribute
          (STR #2334)
+       - CUPS_GET_PPDS now reports the cupsModelNumber attribute
+         from a PPD file in the ppd-model-number attribute (STR
+         #2383)
+       - CUPS_GET_PPDS now reports a driver type string in the
+         ppd-type attribute based on the cupsFax and cupsFilter
+         attributes in a PPD file (STR #2383)
        - Added a new printer attribute called "cups-version"
          which reports the version of CUPS that is running
          (STR #2240)
index ec83516f1e26b5e69af14b0e988389282ca8dbc3..2ce449f6c1f2fcfae1002b868dea39004dd35a8d 100644 (file)
@@ -2180,10 +2180,20 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)/* I - Printer to setup */
        cupsdSetString(&p->product, ppd->product);
 #endif /* HAVE_DNSSD */
 
+        if (ppdFindAttr(ppd, "APRemoteQueueID", NULL))
+       {
+        /*
+         * This is a shared Bonjour printer...
+         */
+
+         p->type |= CUPS_PRINTER_REMOTE;
+       }
+
        /*
         * Close the PPD and set the type...
        */
 
+
        ppdClose(ppd);
 
         printer_type = p->type;