|
CUPS rastertoql filter
1.0.4
Filter for the Brother QL family of label printers
|
Functions to act as a CUPS filter. More...
Functions | |
| static void | handle_sigterm (int signal) |
| static int | prepare_signals (void) |
| static int | cups_ql_input_raster_file_open (struct qldriver *ql) |
| static int | cups_ql_ppd_file_open (struct qldriver *ql, int option_cnt, cups_option_t options[option_cnt]) |
| int | main (int argc, const char *argv[]) |
Variables | |
| int | terminate |
| static struct sigaction | signal_pipe [2] |
| static struct sigaction | signal_term [2] |
Functions to act as a CUPS filter.
|
static |
'Take a look' into the CUPS raster file
| [in,out] | ql | Full job description |
| 0 | On succes |
| -EINVAL | Failed to open the raster input file |
|
static |
Get access to the printer's PPD file and its settings for this job
| [in] | ql | Full job description |
| [in] | option_cnt | Count of elements in options |
| [in] | options | Optional parameters |
| -EINVAL | Missing PPD environment variable |
| -ENODATA | Bad PPD content |
| 0 | On success |
|
static |
| int main | ( | int | argc, |
| const char * | argv[] | ||
| ) |
Main entry function.
| argc | number of command line arguments plus one |
| argv | command line arguments |
https://opensource.apple.com/source/cups/cups-327/cups/doc/help/api-filter.html
We get:
|
static |
Prepare for signal handling
| 0 | On success |
| Negative | on failure |
Signals handled are:
Note: SIGPIPE should be ignored in any case in this environment.
|
static |
|
static |
| int terminate |
Change to '1' to signal the program should stop
1.8.17