From: Michael R Sweet 1 on success, 0 on failure Get available printer devices.
ipp_status_t cupsGetDevices(http_t *http, int timeout, const char *include_schemes, const char *exclude_schemes, cups_device_cb_t callback, void *user_data);Return Value
CUPS 1.4/macOS 10.6 cupsGetDevices
+ DEPRECATED cupsGetDevices
+
+This function is deprecated with the IPP printer discovery functionality
+being provided by the cupsEnumDests
and @cupsGetDests@ functions.
Width of page in points or 0.0
PPD Attribute Structure
typedef struct ppd_attr_s ppd_attr_t;
-Option choices
+Option choices
typedef struct ppd_choice_s ppd_choice_t;
-Conformance Levels
typedef enum ppd_conform_e ppd_conform_t;
-Constraints
+Constraints
typedef struct ppd_const_s ppd_const_t;
-Custom Option
typedef struct ppd_coption_s ppd_coption_t;
-Custom Parameter
typedef struct ppd_cparam_s ppd_cparam_t;
-Custom Parameter Limit
typedef union ppd_cplimit_u ppd_cplimit_t;
-Custom Parameter Type
-typedef enum ppd_cptype_e ppd_cptype_t; +typedef enum ppd_cptype_e ppd_cptype_t;
-Custom Parameter Value
typedef union ppd_cpvalue_u ppd_cpvalue_t;
-Colorspaces
+Colorspaces
typedef enum ppd_cs_e ppd_cs_t;
-Emulators
+Emulators
typedef struct ppd_emul_s ppd_emul_t;
-PPD File
+PPD File
typedef struct ppd_file_s ppd_file_t;
-Groups
+Groups
typedef struct ppd_group_s ppd_group_t;
-Options
+Options
typedef struct ppd_option_s ppd_option_t;
-sRGB Color Profiles
+sRGB Color Profiles
typedef struct ppd_profile_s ppd_profile_t;
-Order dependency sections
+Order dependency sections
typedef enum ppd_section_e ppd_section_t;
-Page Sizes
+Page Sizes
typedef struct ppd_size_s ppd_size_t;
-Status Codes
typedef enum ppd_status_e ppd_status_t;
-UI Types
+UI Types
typedef enum ppd_ui_e ppd_ui_t;
PPD Attribute Structure
struct ppd_attr_s {
char name[PPD_MAX_NAME];
@@ -1628,8 +1629,8 @@ typedef enum ppd_ui_e ppd_ui_t;
Option choices
+Option choices
struct ppd_choice_s {
char choice[PPD_MAX_NAME];
char *code;
@@ -1650,8 +1651,8 @@ typedef enum ppd_ui_e ppd_ui_t;
Constraints
+Constraints
struct ppd_const_s {
char choice1[PPD_MAX_NAME];
char choice2[PPD_MAX_NAME];
@@ -1669,7 +1670,7 @@ typedef enum ppd_ui_e ppd_ui_t;
Custom Option
struct ppd_coption_s {
char keyword[PPD_MAX_NAME];
@@ -1688,7 +1689,7 @@ typedef enum ppd_ui_e ppd_ui_t;
Custom Parameter
struct ppd_cparam_s {
ppd_cpvalue_t current;
@@ -1713,8 +1714,8 @@ typedef enum ppd_ui_e ppd_ui_t;
Emulators
+Emulators
struct ppd_emul_s {
char name[PPD_MAX_NAME];
char *start;
@@ -1729,8 +1730,8 @@ typedef enum ppd_ui_e ppd_ui_t;
PPD File
+PPD File
struct ppd_file_s {
int accurate_screens;
int color_device;
@@ -1862,8 +1863,8 @@ typedef enum ppd_ui_e ppd_ui_t;
Groups
+Groups
struct ppd_group_s {
char text[PPD_MAX_TEXT - PPD_MAX_NAME];
char name[PPD_MAX_NAME];
@@ -1887,8 +1888,8 @@ typedef enum ppd_ui_e ppd_ui_t;
Options
+Options
struct ppd_option_s {
ppd_choice_t *choices;
char conflicted;
@@ -1921,8 +1922,8 @@ typedef enum ppd_ui_e ppd_ui_t;
sRGB Color Profiles
+sRGB Color Profiles
struct ppd_profile_s {
float density;
float gamma;
@@ -1943,8 +1944,8 @@ typedef enum ppd_ui_e ppd_ui_t;
Page Sizes
+Page Sizes
struct ppd_size_s {
float bottom;
float left;
@@ -1975,7 +1976,7 @@ typedef enum ppd_ui_e ppd_ui_t;
Custom Parameter Limit
union ppd_cplimit_u {
float custom_curve;
@@ -2006,7 +2007,7 @@ typedef enum ppd_ui_e ppd_ui_t;
Custom Parameter Value
union ppd_cpvalue_u {
float custom_curve;
@@ -2038,15 +2039,28 @@ typedef enum ppd_ui_e ppd_ui_t;
Conformance Levels
PPD_CONFORM_RELAXED | Relax whitespace and control char |
---|---|
PPD_CONFORM_STRICT | Require strict conformance |
Colorspaces
+Custom Parameter Type
+PPD_CUSTOM_CURVE | Curve value for f(x) = x^value |
---|---|
PPD_CUSTOM_INT | Integer number value |
PPD_CUSTOM_INVCURVE | Curve value for f(x) = x^(1/value) |
PPD_CUSTOM_PASSCODE | String of (hidden) numbers |
PPD_CUSTOM_PASSWORD | String of (hidden) characters |
PPD_CUSTOM_POINTS | Measurement value in points |
PPD_CUSTOM_REAL | Real number value |
PPD_CUSTOM_STRING | String of characters |
Colorspaces
PPD_CS_CMY | CMY colorspace |
---|---|
PPD_CS_RGB | RGB colorspace |
PPD_CS_RGBK | RGBK (K = gray) colorspace |
Order dependency sections
+Order dependency sections
PPD_ORDER_ANY | Option code can be anywhere in the file |
---|---|
PPD_ORDER_PAGE | ... must be in the PageSetup section |
PPD_ORDER_PROLOG | ... must be in the Prolog section |
Status Codes
PPD_NULL_FILE | NULL PPD file pointer |
---|---|
PPD_OK | OK |
UI Types
+UI Types
PPD_UI_BOOLEAN | True or False option |
---|
IPP_RES_PER_CM | Pixels per centimeter |
---|---|
IPP_RES_PER_INCH | Pixels per inch |
resource-state values
+IPP_RSTATE_ABORTED | Resource has been aborted and is pending deletion. |
---|---|
IPP_RSTATE_AVAILABLE | Resource is available for installation. |
IPP_RSTATE_CANCELED | Resource has been canceled and is pending deletion. |
IPP_RSTATE_INSTALLED | Resource is installed. |
IPP_RSTATE_PENDING | Resource is created but has no data yet. |
system-state values
+IPP_SSTATE_IDLE | At least one printer is idle and none are processing a job. |
---|---|
IPP_SSTATE_PROCESSING | At least one printer is processing a job. |
IPP_SSTATE_STOPPED | All printers are stopped. |
ipp_t state values
diff --git a/doc/help/options.html b/doc/help/options.html index 044cdb6120..9d612fcc97 100644 --- a/doc/help/options.html +++ b/doc/help/options.html @@ -546,24 +546,5 @@ lpr -o mirror filenameThis is typically used when printing on T-shirt transfer media or sometimes on transparencies.
-The -o raw
option allows you to send files
-directly to a printer without filtering. This is sometimes
-required when printing from applications that provide their own
-"printer drivers" for your printer:
-lp -o raw filename -lpr -o raw filename -- -
The -l
option can also be used with the
-lpr command to send files directly to a printer:
-lpr -l filename --