]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add prototype System Service operations and attribute groups.
authorMichael R Sweet <michaelrsweet@gmail.com>
Mon, 6 Nov 2017 16:06:40 +0000 (11:06 -0500)
committerMichael R Sweet <michaelrsweet@gmail.com>
Mon, 6 Nov 2017 21:28:31 +0000 (16:28 -0500)
cups/ipp-support.c
cups/ipp.h

index 675e5f380c36eb95aef5bd5b48e41efdcde590c5..a7836536d19913d8925065b1308afe61bbeea467 100644 (file)
@@ -212,7 +212,7 @@ static const char * const ipp_std_ops[] =
                  "Add-Document-Images",
                  "Acknowledge-Document",
 
-                 /* 0x0040 - 0x004a */
+                 /* 0x0040 - 0x004f */
                  "Acknowledge-Identify-Printer",
                  "Acknowledge-Job",
                  "Fetch-Document",
@@ -223,7 +223,37 @@ static const char * const ipp_std_ops[] =
                  "Update-Document-Status",
                  "Update-Job-Status",
                  "Update-Output-Device-Attributes",
-                 "Get-Next-Document-Data"
+                 "Get-Next-Document-Data",
+                  "Allocate-Printer-Resources",
+                  "Create-Printer",
+                  "Deallocate-Printer-Resources",
+                  "Delete-Printer",
+                  "Get-Printers",
+
+                  /* 0x0050 - 0x005f */
+                  "Shutdown-One-Printer",
+                  "Startup-One-Printer",
+                  "Cancel-Resource",
+                  "Create-Resource",
+                  "Install-Resource",
+                  "Send-Resource-Data",
+                  "Set-Resource-Attributes",
+                  "Create-Resource-Subscriptions",
+                  "Create-System-Subscriptions",
+                  "Disable-All-Printers",
+                  "Enable-All-Printers",
+                  "Get-System-Attributes",
+                  "Get-System-Supported-Values",
+                  "Pause-All-Printers",
+                  "Pause-All-Printers-After-Current-Job",
+                  "Register-Output-Device",
+
+                  /* 0x0060 - 0x0064 */
+                  "Restart-System",
+                  "Resume-All-Printers",
+                  "Set-System-Attributes",
+                  "Shutdown-All-Printers",
+                  "Startup-All-Printers"
                },
                * const ipp_cups_ops[] =
                {
index 2a4f546c75df3740c392e9465ea16002162350d3..dd2d9bf0b69ba2bcb6d849c9b4150adb36508f1c 100644 (file)
@@ -321,6 +321,33 @@ typedef enum ipp_op_e                      /**** IPP operations ****/
   IPP_OP_UPDATE_OUTPUT_DEVICE_ATTRIBUTES,
                                        /* Update-Output-Device-Attributes: Update output device values @exclude all@ */
   IPP_OP_GET_NEXT_DOCUMENT_DATA,       /* Get-Next-Document-Data: Scan more document data @exclude all@ */
+  IPP_OP_ALLOCATE_PRINTER_RESOURCES,    /* Allocate-Printer-Resources: Use resources for a printer. */
+  IPP_OP_CREATE_PRINTER,                /* Create-Printer: Create a new service. */
+  IPP_OP_DEALLOCATE_PRINTER_RESOURCES,  /* Deallocate-Printer-Resources: Stop using resources for a printer. */
+  IPP_OP_DELETE_PRINTER,                /* Delete-Printer: Delete an existing service. */
+  IPP_OP_GET_PRINTERS,                  /* Get-Printers: Get a list of services. */
+  IPP_OP_SHUTDOWN_ONE_PRINTER,          /* Shutdown-One-Printer: Shutdown a service. */
+  IPP_OP_STARTUP_ONE_PRINTER,           /* Startup-One-Printer: Start a service. */
+  IPP_OP_CANCEL_RESOURCE,               /* Cancel-Resource: Uninstall a resource. */
+  IPP_OP_CREATE_RESOURCE,               /* Create-Resource: Create a new (empty) resource. */
+  IPP_OP_INSTALL_RESOURCE,              /* Install-Resource: Install a resource. */
+  IPP_OP_SEND_RESOURCE_DATA,            /* Send-Resource-Data: Upload the data for a resource. */
+  IPP_OP_SET_RESOURCE_ATTRIBUTES,       /* Set-Resource-Attributes: Set resource object  attributes. */
+  IPP_OP_CREATE_RESOURCE_SUBSCRIPTIONS, /* Create-Resource-Subscriptions: Create event subscriptions for a resource. */
+  IPP_OP_CREATE_SYSTEM_SUBSCRIPTIONS,   /* Create-System-Subscriptions: Create event subscriptions for a system. */
+  IPP_OP_DISABLE_ALL_PRINTERS,          /* Disable-All-Printers: Stop accepting new jobs on all services. */
+  IPP_OP_ENABLE_ALL_PRINTERS,           /* Enable-All-Printers: Start accepting new jobs on all services. */
+  IPP_OP_GET_SYSTEM_ATTRIBUTES,         /* Get-System-Attributes: Get system object attributes. */
+  IPP_OP_GET_SYSTEM_SUPPORTED_VALUES,   /* Get-System-Supported-Values: Get supported values for system object attributes. */
+  IPP_OP_PAUSE_ALL_PRINTERS,            /* Pause-All-Printers: Stop all services immediately. */
+  IPP_OP_PAUSE_ALL_PRINTERS_AFTER_CURRENT_JOB,
+                                        /* Pause-All-Printers-After-Current-Job: Stop all services after processing the current jobs. */
+  IPP_OP_REGISTER_OUTPUT_DEVICE,        /* Register-Output-Device: Register a remote service. */
+  IPP_OP_RESTART_SYSTEM,                /* Restart-System: Restart all services. */
+  IPP_OP_RESUME_ALL_PRINTERS,           /* Resume-All-Printers: Start job processing on all services. */
+  IPP_OP_SET_SYSTEM_ATTRIBUTES,         /* Set-System-Attributes: Set system object attributes. */
+  IPP_OP_SHUTDOWN_ALL_PRINTERS,         /* Shutdown-All-Printers: Shutdown all services. */
+  IPP_OP_STARTUP_ALL_PRINTERS,          /* Startup-All-Printers: Startup all services. */
 
   IPP_OP_PRIVATE = 0x4000,             /* Reserved @private@ */
   IPP_OP_CUPS_GET_DEFAULT,             /* CUPS-Get-Default: Get the default printer */
@@ -647,8 +674,9 @@ typedef enum ipp_tag_e                      /**** Value and group tag values for attributes ****/
   IPP_TAG_UNSUPPORTED_GROUP,           /* Unsupported attributes group */
   IPP_TAG_SUBSCRIPTION,                        /* Subscription group */
   IPP_TAG_EVENT_NOTIFICATION,          /* Event group */
-  IPP_TAG_RESOURCE,                    /* Resource group @private@ */
-  IPP_TAG_DOCUMENT,                    /* Document group @exclude all@ */
+  IPP_TAG_RESOURCE,                    /* Resource group */
+  IPP_TAG_DOCUMENT,                    /* Document group */
+  IPP_TAG_SYSTEM,                       /* System group */
   IPP_TAG_UNSUPPORTED_VALUE = 0x10,    /* Unsupported value */
   IPP_TAG_DEFAULT,                     /* Default value */
   IPP_TAG_UNKNOWN,                     /* Unknown value */