From: msweet Date: Tue, 1 Jul 2014 14:38:29 +0000 (+0000) Subject: Mirror changes from trunk. X-Git-Tag: release-2.1.4~16^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=105d3c6459fca94c60f5168b5093d6fb5cb7c355;p=thirdparty%2Fcups.git Mirror changes from trunk. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.7@11971 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/CHANGES.txt b/CHANGES.txt index db2edcb161..8960134d37 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/backend/dnssd.c b/backend/dnssd.c index 91773fd4c1..49948c8b2f 100644 --- a/backend/dnssd.c +++ b/backend/dnssd.c @@ -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); diff --git a/backend/network.c b/backend/network.c index f011f2cf2a..22a2dcf584 100644 --- a/backend/network.c +++ b/backend/network.c @@ -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;