CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Data Fields | |
caps_identifier | id |
unsigned | property |
bool | info_already_set |
char * | name |
char * | info |
char * | location |
char * | vendor |
char * | model |
struct caps_supported_mime_list | document_format_supported |
int | ppd_file_handle |
bool | state_already_set |
struct object_state_prn | state |
struct caps_job * | job_list |
struct caps_printer * | list_next |
struct caps_printer * | list_prev |
Internal printer description
This structure is intendend to be part of a linked list to manage 'known' printing providers. Each printing provider or printer driver registers itself at the printing coordinator and thus, such an individual structure exists for its lifetime.
Unique identifier of this provider/printer. The value is generated here and used by the provider for each of its requests
unsigned property |
Unique provider property to validate a request. The value is provided by the transport layer (here DBUS for example) to have a simple mechanism to check if the provider and its reported ID correspond with the one, who has initially registered this provider. It will also be used to remove orphaned providers, if the transport layer detects the provider seems gone without unregister itself before. Refer pc_provider_orphaned_printer_free() versus pc_provider_printer_id_free() for details
bool info_already_set |
char* name |
FIXME redundant, if name != NULL it is set! Printer information: user selectable name. Most of the time this name will be shown in selection dialogues.
char* info |
Printer information: some user defined description
char* location |
Printer information: where the printer is located
char* vendor |
Printer information: printer's vendor
char* model |
Printer information: printer's model
struct caps_supported_mime_list document_format_supported |
List of MIME types this printer can process and print
int ppd_file_handle |
file handle of the corresponding PPD file
bool state_already_set |
struct object_state_prn state |
The state information, the printer is in
struct caps_job* job_list |
The queue of attached jobs for this printer
struct caps_printer* list_next |
struct caps_printer * list_prev |
linked list members