]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/sidechannel.h
Fix potential unaligned accesses in the string pool (Issue #5474)
[thirdparty/cups.git] / cups / sidechannel.h
index 8242247cbb252a30da9a6fc5a44eca689a3de223..229acdc87447caa610ab220659053f37a88cb5cd 100644 (file)
@@ -1,18 +1,10 @@
 /*
- * "$Id: sidechannel.h 7616 2008-05-28 00:34:13Z mike $"
+ * Side-channel API definitions for CUPS.
  *
- *   Side-channel API definitions for the Common UNIX Printing System (CUPS).
+ * Copyright 2007-2012 by Apple Inc.
+ * Copyright 2006 by Easy Software Products.
  *
- *   Copyright 2007-2008 by Apple Inc.
- *   Copyright 2006 by Easy Software Products.
- *
- *   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.
+ * Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
  */
 
 #ifndef _CUPS_SIDECHANNEL_H_
@@ -55,17 +47,29 @@ typedef enum cups_sc_bidi_e cups_sc_bidi_t;
 
 enum cups_sc_command_e                 /**** Request command codes ****/
 {
+  CUPS_SC_CMD_NONE = 0,                        /* No command @private@ */
   CUPS_SC_CMD_SOFT_RESET = 1,          /* Do a soft reset */
   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_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 = 6,            /* Query an SNMP OID @since CUPS 1.4/macOS 10.6@ */
+  CUPS_SC_CMD_SNMP_GET_NEXT = 7,       /* Query the next SNMP OID @since CUPS 1.4/macOS 10.6@ */
+  CUPS_SC_CMD_GET_CONNECTED = 8,       /* Return whether the backend is "connected" to the printer @since CUPS 1.5/macOS 10.7@ */
+  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 */
@@ -129,7 +133,3 @@ extern cups_sc_status_t     cupsSideChannelSNMPWalk(const char *oid, double timeout,
 #  endif /* __cplusplus */
 
 #endif /* !_CUPS_SIDECHANNEL_H_ */
-
-/*
- * End of "$Id: sidechannel.h 7616 2008-05-28 00:34:13Z mike $".
- */