CAPS Universe documentation
1.0.4
All you need to know to be successful
|
A command line tool to retrieve status information about printing devices. More...
Functions | |
static void | output_printers_status (const struct caps_cl_printer_state *pr_state) |
static int | print_printer_provider_info (struct caps_cl_handle *instance, caps_identifier printer_id) |
static int | output_list_of_printers (struct caps_cl_handle *instance) |
static int | get_first_available_printer (struct caps_cl_handle *instance, caps_identifier *id) |
static int | get_and_output_printers_status (struct caps_cl_handle *instance, const char *printer_device) |
static int | output_printers_ppd (struct caps_cl_handle *instance, const char *printer_device, const char *printer_ppd) |
static void | handle_nls (void) |
static void | verbosity_handling (int verbosity) |
static void | print_help (FILE *out) |
int | main (int argc, char *argv[]) |
Variables | |
static int | verbose |
static const char * | printer_state [] |
Messages about a state a printer is in. | |
static const char * | printer_reason [] |
Messages about a reason why a printer is in a specific state. | |
static struct option | long_options [] |
|
static |
Print out the status information about one printer to stdout
[in] | pr_state | The printer's status info |
|
static |
Print the name of a printer or all available information about it
[in] | instance | The library instance handle |
[in] | printer_id | The CAPS printer ID to query |
If verbosity isn't incremented, only the printer's name is printed.
|
static |
Print the names of available printers and (on demand) all available information about them
[in] | instance | The library instance handle |
If verbosity isn't incremented, only the printer names are printed.
|
static |
Retrieve ID of first available printer
[in] | instance | The library instance handle |
[in] | id | Pointer where to store the printer's ID |
|
static |
Print the status of a printer
[in] | instance | The library instance handle |
[in] | printer_device | Name of printer of interest (can be NULL) |
If printer_device
is NULL, the first available printer will be retrieved
|
static |
Store or output a printer's PPD
[in] | instance | The library instance handle |
[in] | printer_device | Name of printer of interest (can be NULL) |
[in] | printer_ppd | Filename of the to be created PPD file |
If printer_device
is NULL, the first available printer's PPD will be retrieved. If printer_ppd
is "-", the PPD content will be output to 'stdout' instead.
|
static |
|
static |
Increase verbosity of the CAPS components if more than '1' is defined
[in] | verbosity | The uses choice of verbosity |
If '1' is given, it increases the verbosity of capsprinter
itself. If more than '1' is given, it increases the CAPS verbosity level as well
|
static |
int main | ( | int | argc, |
char * | argv[] | ||
) |
|
static |
|
static |
|
static |
|
static |
This parser uses a free argument: the commands. This isn't currently supported by the capscmdparser. Thus, we stay with getopt_long() for now.