diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2008-05-19 23:16:59 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2008-05-19 23:16:59 +0000 |
commit | 20fbc9034781e607f8063453c8a52ec73fc5c293 (patch) | |
tree | 9c6f5a485fddc0431ca7a2b393a2f8e52aaf90e1 /cups/sidechannel.h | |
parent | 47879b8b63f262a11f53710f029e2969c5720b1f (diff) | |
download | cups-20fbc9034781e607f8063453c8a52ec73fc5c293.tar.gz |
Merge changes from CUPS 1.4svn-r7594.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@779 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/sidechannel.h')
-rw-r--r-- | cups/sidechannel.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/cups/sidechannel.h b/cups/sidechannel.h index e2eae6eb7..741dca946 100644 --- a/cups/sidechannel.h +++ b/cups/sidechannel.h @@ -59,7 +59,9 @@ enum cups_sc_command_e /**** Request command codes ****/ CUPS_SC_CMD_DRAIN_OUTPUT = 2, /* Drain all pending output */ CUPS_SC_CMD_GET_BIDI = 3, /* Return bidirectional capabilities */ 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_GET_STATE = 5, /* Return the device state */ + CUPS_SC_CMD_SNMP_GET = 6, /* Query an SNMP OID @since CUPS 1.4@ */ + CUPS_SC_CMD_SNMP_GET_NEXT = 7 /* Query the next SNMP OID @since CUPS 1.4@ */ }; typedef enum cups_sc_command_e cups_sc_command_t; /**** Request command codes ****/ @@ -92,6 +94,10 @@ enum cups_sc_status_e /**** Response status codes ****/ typedef enum cups_sc_status_e cups_sc_status_t; /**** Response status codes ****/ +typedef void (*cups_sc_walk_func_t)(const char *oid, const char *data, + int datalen, void *context); + /**** SNMP walk callback ****/ + /* * Prototypes... @@ -109,6 +115,14 @@ extern int cupsSideChannelWrite(cups_sc_command_t command, const char *data, int datalen, double timeout) _CUPS_API_1_3; +/**** New in CUPS 1.4 ****/ +extern cups_sc_status_t cupsSideChannelSNMPGet(const char *oid, char *data, + int *datalen, double timeout) + _CUPS_API_1_4; +extern cups_sc_status_t cupsSideChannelSNMPWalk(const char *oid, double timeout, + cups_sc_walk_func_t cb, + void *context) _CUPS_API_1_4; + # ifdef __cplusplus } |