diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2011-03-14 18:45:10 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2011-03-14 18:45:10 +0000 |
commit | f14324a7920bee90b63469ce754e8040933f38e1 (patch) | |
tree | 0077407e46ff904efd4601b99932c9abfd894030 /cups/sidechannel.h | |
parent | c8fef167ba1e9d5d87fc77e4e99ca12ba9384cbb (diff) | |
download | cups-f14324a7920bee90b63469ce754e8040933f38e1.tar.gz |
Merge changes from CUPS 1.5svn-r9602.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@3046 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/sidechannel.h')
-rw-r--r-- | cups/sidechannel.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/cups/sidechannel.h b/cups/sidechannel.h index c52cd51cb..29cc01a76 100644 --- a/cups/sidechannel.h +++ b/cups/sidechannel.h @@ -1,9 +1,9 @@ /* * "$Id: sidechannel.h 7616 2008-05-28 00:34:13Z mike $" * - * Side-channel API definitions for the Common UNIX Printing System (CUPS). + * Side-channel API definitions for CUPS. * - * Copyright 2007-2008 by Apple Inc. + * Copyright 2007-2011 by Apple Inc. * Copyright 2006 by Easy Software Products. * * These coded instructions, statements, and computer programs are the @@ -62,11 +62,22 @@ enum cups_sc_command_e /**** Request command codes ****/ CUPS_SC_CMD_GET_DEVICE_ID = 4, /* Return the IEEE-1284 device ID */ CUPS_SC_CMD_GET_STATE = 5, /* Return the device state */ CUPS_SC_CMD_SNMP_GET = 6, /* Query an SNMP OID @since CUPS 1.4/Mac OS X 10.6@ */ - CUPS_SC_CMD_SNMP_GET_NEXT = 7 /* Query the next SNMP OID @since CUPS 1.4/Mac OS X 10.6@ */ + CUPS_SC_CMD_SNMP_GET_NEXT = 7, /* Query the next SNMP OID @since CUPS 1.4/Mac OS X 10.6@ */ + CUPS_SC_CMD_GET_CONNECTED = 8, /* Return whether the backend is "connected" to the printer @since CUPS 1.5@ */ + CUPS_SC_CMD_MAX /* End of valid values @private@ */ }; typedef enum cups_sc_command_e cups_sc_command_t; /**** Request command codes ****/ +enum cups_sc_connected_e /**** Connectivity values ****/ +{ + CUPS_SC_NOT_CONNECTED = 0, /* Backend is not "connected" to printer */ + CUPS_SC_CONNECTED = 1 /* Backend is "connected" to printer */ +}; +typedef enum cups_sc_connected_e cups_sc_connected_t; + /**** Connectivity values ****/ + + enum cups_sc_state_e /**** Printer state bits ****/ { CUPS_SC_STATE_OFFLINE = 0, /* Device is offline */ |