/*
- * "$Id$"
+ * cupsGetDevices implementation for CUPS.
*
- * cupsGetDevices implementation for CUPS.
+ * Copyright 2008-2016 by Apple Inc.
*
- * Copyright 2008-2013 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"
+ * 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"
- * which should have been included with this file. If this file is
- * 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:
- *
- * cupsGetDevices() - Get available printer devices.
+ * This file is subject to the Apple OS-Developed Software exception.
*/
/*
*/
#include "cups-private.h"
+#include "adminutil.h"
/*
* parameters provide comma-delimited lists of backends to include or omit from
* the request respectively.
*
- * @since CUPS 1.4/OS X 10.6@
+ * @since CUPS 1.4/macOS 10.6@
*/
ipp_status_t /* O - Request status - @code IPP_OK@ on success. */
* Range check input...
*/
- DEBUG_printf(("cupsGetDevices(http=%p, timeout=%d, include_schemes=\"%s\", "
- "exclude_schemes=\"%s\", callback=%p, user_data=%p)", http,
- timeout, include_schemes, exclude_schemes, callback,
- user_data));
+ DEBUG_printf(("cupsGetDevices(http=%p, timeout=%d, include_schemes=\"%s\", exclude_schemes=\"%s\", callback=%p, user_data=%p)", (void *)http, timeout, include_schemes, exclude_schemes, (void *)callback, user_data));
if (!callback)
return (IPP_STATUS_ERROR_INTERNAL);
if ((state = ippRead(http, response)) == IPP_STATE_ERROR)
break;
- DEBUG_printf(("2cupsGetDevices: state=%d, response->last=%p", state,
- response->last));
+ DEBUG_printf(("2cupsGetDevices: state=%d, response->last=%p", state, (void *)response->last));
if (!response->attrs)
continue;
}
while (state != IPP_STATE_DATA);
- DEBUG_printf(("2cupsGetDevices: state=%d, response->last=%p", state,
- response->last));
+ DEBUG_printf(("2cupsGetDevices: state=%d, response->last=%p", state, (void *)response->last));
if (device_class && device_id && device_info && device_make_and_model &&
device_uri)
return (cupsLastError());
}
-
-
-/*
- * End of "$Id$".
- */