CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Full functional printing provider reference implementation. More...
Data Structures | |
struct | reference_driver |
Macros | |
#define | MM2PTS(mm) (mm * 72.0 / 25.4) |
#define | MEDIUM_NAME "LABEL" |
Variables | |
static struct reference_driver | printer |
static volatile sig_atomic_t | quit = 0 |
static const struct caps_ppd_resolution | supported_resolutions [] |
static const struct caps_ppd_media_margins | media_margins |
static const struct caps_ppd_media_size | media_coverage |
static struct caps_ppd_base | printers_capabilities |
static const struct caps_ppd_custom_medium | label_medium |
static const struct caps_ppd_resolution | label_res [] |
static const struct caps_ppd_media_size | label_min_max_medium |
static const struct caps_ppd_media_margins | label_margins |
static struct caps_ppd_base | label_printer_capability |
static const struct caps_arg_parameter | ref_prn_arguments [] |
static struct caps_arg_parser | ref_prn_parser [2] |
There is different printing provider implementation in the caps-printing-provider package, but this one here also uses libcapsraster to really rasterize the image and thus, can be used as a starting point for a real printing driver.
#define MM2PTS | ( | mm | ) | (mm * 72.0 / 25.4) |
#define MEDIUM_NAME "LABEL" |
|
static |
|
static |
int rpp_raster_write | ( | struct caps_rasterizer * | rstr, |
const struct caps_rstr_raster * | raster, | ||
const struct caps_rstr_page_desc * | pg_desc, | ||
const struct caps_rstr_page * | pg | ||
) |
|
static |
|
static |
Shutting down the printing service
[in,out] | printer | Our information collection |
|
static |
Report this printer is now idle and waiting for jobs
[in,out] | printer | Our information collection |
|
static |
Report this printer is now starting up
[in,out] | printer | Our information collection |
This will make the printer visible at the printing provider, but still signal it does not accept jobs, yet.
|
static |
|
static |
Do last things to clean up
|
static |
Adapt our settings to configured one
[in,out] | printer | Our information collection |
0 | On sucess |
Negative | Errno else |
caps_pp_instance_runtime_prepare() might had read in all kind of INI files and we can now request for these settings.
What can be changed/adapted here? For example:
The information read from the INI files can be retrieved via a call to caps_pp_instance_runtime_param_get()
|
static |
Setup some fake information to make the coordinator happy while testing
This is just a development feature, to avoid a fully setup environment.
|
static |
|
static |
|
static |
int main | ( | int | argc, |
char * | argv[] | ||
) |
|
static |
Global instance information
|
static |
Global quit information. The driver prepares for termination if quit is non-null
|
static |
|
static |
|
static |
|
static |
Some emulated printers for testing purposes TODO add docs
|
static |
|
static |
|
static |
|
static |
|
static |
A label printer with a continuous roll feature
|
static |
The parameters we understand here in the main application
|
static |