![]() |
CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Shared functions by all HL printer drivers. More...
Data Structures | |
| struct | hl_paper_formats |
| struct | resolution_keywords |
Functions | |
| void | hl_feature_selection_add (struct ppd_feature_add *f, struct caps_ppd_selection *s) |
| void | hl_options_add (struct ppd_option_add *o, size_t entries, struct caps_ppd_option option[entries]) |
| ssize_t | hl_selection_entry_get (size_t selection_cnt, const struct caps_ppd_selection_entry selection_list[selection_cnt], const char *entry) |
| static int | convert_full_integer (const char *string, int dflt) |
| void | hl_global_density_mode (struct hl_drv *t) |
| void | hl_global_powersave_mode (struct hl_drv *t) |
| void | hl_global_image_adapt_mode (struct hl_drv *t) |
| void | hl_global_offsets_adapt (struct hl_drv *t) |
| void | hl_global_bandlength_adapt (struct hl_drv *t) |
| void | hl_global_encoder_adapt (struct hl_drv *t) |
| void | hl_global_duplex_adapt (struct hl_drv *t) |
| const char * | hl_print_default_paper_name (struct hl_drv *t) |
| const char * | hl_printers_paper_format (const char *paper_format) |
| enum hl_printer | hl_driver_printer_id_get (struct hl_drv *t, const struct hl_printer_name_to_id *list) |
| ssize_t | hl_available_resolution_list_get (struct hl_drv *t, const struct caps_ppd_resolution **list) |
| ssize_t | hl_print_default_resolution_get (struct hl_drv *t, size_t cnt, const struct caps_ppd_resolution list[cnt]) |
| void | hl_print_paper_type (struct hl_drv *t, unsigned cnt, const struct caps_ppd_selection_entry type_list[cnt], struct ppd_feature_add *fl, struct ppd_option_add *ol) |
Variables | |
| static const struct hl_paper_formats | hl_supported_tray_formats [] |
| static struct caps_ppd_resolution | hl_supported_resolutions [5] |
| Run-time filled list of supported printing resolutions. | |
| static const struct resolution_keywords | hl_known_resolutions [] |
| List of printing resolution related keywords and their run-time values. | |
| static struct caps_ppd_selection | hl_media_type_selection |
| static struct caps_ppd_option | hl_media_type [] |
This is just a collection of functions which are shared by all HLxxxx drivers, mainly the INI file based driver setup.
| void hl_feature_selection_add | ( | struct ppd_feature_add * | f, |
| struct caps_ppd_selection * | s | ||
| ) |
| void hl_options_add | ( | struct ppd_option_add * | o, |
| size_t | entries, | ||
| struct caps_ppd_option | option[entries] | ||
| ) |
| ssize_t hl_selection_entry_get | ( | size_t | selection_cnt, |
| const struct caps_ppd_selection_entry | selection_list[selection_cnt], | ||
| const char * | entry | ||
| ) |
|
static |
Convert an integer with its full range and check for errors
| [in] | string | The number as an ASCII text |
| [in] | dflt | The default value to return in case of an error |
| Number | Full range integer value |
| Default | The dflt value in case of an error |
It replaces caps_helper_number_convert(), for some special use cases. It can convert signed integer instead of positive integers only.
| void hl_global_density_mode | ( | struct hl_drv * | t | ) |
| void hl_global_powersave_mode | ( | struct hl_drv * | t | ) |
| void hl_global_image_adapt_mode | ( | struct hl_drv * | t | ) |
| void hl_global_offsets_adapt | ( | struct hl_drv * | t | ) |
| void hl_global_bandlength_adapt | ( | struct hl_drv * | t | ) |
| void hl_global_encoder_adapt | ( | struct hl_drv * | t | ) |
| void hl_global_duplex_adapt | ( | struct hl_drv * | t | ) |
| const char * hl_print_default_paper_name | ( | struct hl_drv * | t | ) |
| const char * hl_printers_paper_format | ( | const char * | paper_format | ) |
| enum hl_printer hl_driver_printer_id_get | ( | struct hl_drv * | t, |
| const struct hl_printer_name_to_id * | list | ||
| ) |
| ssize_t hl_available_resolution_list_get | ( | struct hl_drv * | t, |
| const struct caps_ppd_resolution ** | list | ||
| ) |
| ssize_t hl_print_default_resolution_get | ( | struct hl_drv * | t, |
| size_t | cnt, | ||
| const struct caps_ppd_resolution | list[cnt] | ||
| ) |
| void hl_print_paper_type | ( | struct hl_drv * | t, |
| unsigned | cnt, | ||
| const struct caps_ppd_selection_entry | type_list[cnt], | ||
| struct ppd_feature_add * | fl, | ||
| struct ppd_option_add * | ol | ||
| ) |
|
static |
Most printers list more supported paper formats. But the printer's user manuals lists less of them to be loaded into the input tray.
|
static |
This list of supported printing resolutions gets filled by INI file settings at run-time (by hl_available_resolution_list_get())
|
static |
|
static |
|
static |