]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Mirror changes from trunk.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 1 Jul 2014 14:38:29 +0000 (14:38 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 1 Jul 2014 14:38:29 +0000 (14:38 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.7@11971 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES.txt
backend/dnssd.c
backend/network.c

index db2edcb161e7716bb21237251e1771075c460313..8960134d378c95836e5a0fd46ac1b6b6028a11cb 100644 (file)
@@ -1,4 +1,4 @@
-CHANGES.txt - 1.7.4 - 2014-06-24
+CHANGES.txt - 1.7.4 - 2014-07-01
 --------------------------------
 
 CHANGES IN CUPS V1.7.4
@@ -15,6 +15,10 @@ CHANGES IN CUPS V1.7.4
          localization (STR #4436)
        - Fixed an "IPP read error" issue (STR #4440)
        - Fixed the --disable-libusb configure option (STR #4439)
+       - Fixed the debug output from the DNS-SD backend when using Avahi
+         (STR #4444)
+       - Fixed a bug in the CUPS_SC_GET_DEVICE_ID handling by the network
+         backends (STR #4447)
 
 
 CHANGES IN CUPS V1.7.3
index 91773fd4c117d53006b466eba72489c107986c0a..49948c8b2fd716254d3fb5da8da3014ac2a0ae5d 100644 (file)
@@ -1,33 +1,17 @@
 /*
  * "$Id$"
  *
- *   DNS-SD discovery backend for CUPS.
+ * DNS-SD discovery backend for CUPS.
  *
- *   Copyright 2008-2012 by Apple Inc.
+ * Copyright 2008-2014 by Apple Inc.
  *
- *   These coded instructions, statements, and computer programs are the
- *   property of Apple Inc. and are protected by Federal copyright
- *   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
- *   "LICENSE" which should have been included with this file.  If this
- *   file is missing or damaged, see the license at "http://www.cups.org/".
+ * These coded instructions, statements, and computer programs are the
+ * property of Apple Inc. and are protected by Federal copyright
+ * law.  Distribution and use rights are outlined in the file "LICENSE.txt"
+ * "LICENSE" which should have been included with this file.  If this
+ * file is missing or damaged, see the license at "http://www.cups.org/".
  *
- *   This file is subject to the Apple OS-Developed Software exception.
- *
- * Contents:
- *
- *   main()                 - Browse for printers.
- *   browse_callback()      - Browse devices.
- *   browse_local_callback() - Browse local devices.
- *   client_callback()       - Avahi client callback function.
- *   compare_devices()      - Compare two devices.
- *   exec_backend()         - Execute the backend that corresponds to the
- *                            resolved service name.
- *   device_type()          - Get DNS-SD type enumeration from string.
- *   get_device()           - Create or update a device.
- *   query_callback()       - Process query data.
- *   find_device()          - Find a device from its name and domain.
- *   sigterm_handler()      - Handle termination signals.
- *   unquote()              - Unquote a name string.
+ * This file is subject to the Apple OS-Developed Software exception.
  */
 
 /*
@@ -924,8 +908,11 @@ get_device(cups_array_t *devices,  /* I - Device array */
   * Yes, add the device...
   */
 
-  fprintf(stderr, "DEBUG: Found \"%s.%s%s\"...\n", serviceName, regtype,
-         replyDomain);
+#ifdef HAVE_DNSSD
+  fprintf(stderr, "DEBUG: Found \"%s.%s%s\"...\n", serviceName, regtype, replyDomain);
+#else /* HAVE_AVAHI */
+  fprintf(stderr, "DEBUG: Found \"%s.%s.%s\"...\n", serviceName, regtype, replyDomain);
+#endif /* HAVE_DNSSD */
 
   device           = calloc(sizeof(cups_device_t), 1);
   device->name     = strdup(serviceName);
index f011f2cf2afb47ebc3c3c1b99b9a8d744e6c15b8..22a2dcf58480089d74a9f8214719f6cf92ed91c5 100644 (file)
@@ -268,6 +268,12 @@ backendNetworkSideCB(
        datalen = 0;
        break;
 
+    case CUPS_SC_CMD_GET_CONNECTED :
+       status  = CUPS_SC_STATUS_OK;
+        data[0] = device_fd != -1;
+        datalen = 1;
+        break;
+
     case CUPS_SC_CMD_GET_DEVICE_ID :
         if (snmp_fd >= 0)
        {
@@ -305,12 +311,6 @@ backendNetworkSideCB(
          break;
        }
 
-    case CUPS_SC_CMD_GET_CONNECTED :
-       status  = CUPS_SC_STATUS_OK;
-        data[0] = device_fd != -1;
-        datalen = 1;
-        break;
-
     default :
         status  = CUPS_SC_STATUS_NOT_IMPLEMENTED;
        datalen = 0;