CAPS Universe documentation  1.0.4
All you need to know to be successful
Data Fields
caps_printer Struct Reference

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_jobjob_list
 
struct caps_printerlist_next
 
struct caps_printerlist_prev
 

Detailed Description

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.

Field Documentation

◆ id

Unique identifier of this provider/printer. The value is generated here and used by the provider for each of its requests

◆ property

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

◆ info_already_set

bool info_already_set

◆ name

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.

◆ info

char* info

Printer information: some user defined description

◆ location

char* location

Printer information: where the printer is located

◆ vendor

char* vendor

Printer information: printer's vendor

◆ model

char* model

Printer information: printer's model

◆ document_format_supported

struct caps_supported_mime_list document_format_supported

List of MIME types this printer can process and print

◆ ppd_file_handle

int ppd_file_handle

file handle of the corresponding PPD file

◆ state_already_set

bool state_already_set

◆ state

struct object_state_prn state

The state information, the printer is in

◆ job_list

struct caps_job* job_list

The queue of attached jobs for this printer

◆ list_next

struct caps_printer* list_next

◆ list_prev

struct caps_printer * list_prev

linked list members


The documentation for this struct was generated from the following file: