![]() |
CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Define notifier callbacks for Printing Coordinator clients. More...
Data Fields | |
| int(* | provider_change )(void *data, caps_identifier pr_id, struct caps_cl_printer_state *pstate) |
| int(* | job_change )(void *data, caps_identifier pr_id, caps_identifier job_id, struct caps_cl_job_state *jstate, struct caps_job_progression *jprogression) |
The parameters when called:
pstate points to new printer state information (caps_cl_printer_state)jstate points to new job state information (caps_cl_job_state)jprogressionpoints to new job progression information (caps_job_progression)For both call back functions:
| int(* provider_change) (void *data, caps_identifier pr_id, struct caps_cl_printer_state *pstate) |
Called if the printer reports a new state about itself. The data parameter here is your own data provided when registering the notifier via caps_cl_instance_register().
The pstate points to the reported current state of this printer.
pstate points to is volatile. You need to copy it. | int(* job_change) (void *data, caps_identifier pr_id, caps_identifier job_id, struct caps_cl_job_state *jstate, struct caps_job_progression *jprogression) |
Called if new state and/or progression info about a job is available. The data parameter here is your own data provided when registering the notifier via caps_cl_instance_register().
If jstate isn't NULL, it points to the new state of this job.
jstate points to is volatile. You need to copy it.If jprogression isn't NULL, it points to the new progression information of this job.
jprogression points to is volatile. You need to copy it.