CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Some declarations used internally only. More...
Go to the source code of this file.
Macros | |
#define | DSO_VISIBLE |
#define | ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) |
#define | caps_invalidate_pointer(pointer) |
#define | caps_print_debug(fmt, ...) |
#define | _(string) (string) |
#define | NLS_(string) (string) |
#define | CAPS_DRIVER_INI_NAME "driver-ini" |
#define | CAPS_DRIVER_INI_NAME_SHORT 'f' |
#define | CAPS_PARAM_DIRECTORY_NAME "parameter-dir" |
#define | CAPS_PARAM_DIRECTORY_NAME_SHORT 'd' |
#define | CAPS_RUNTIME_CONFIG_LEVEL "base" |
#define | RETVAL_BAD 1 |
#define | RETVAL_FAIL 1 |
#define | RETVAL_OK 0 |
Functions | |
void | runtime_configuration_base_read_in (struct caps_inif_table *runtime_config) |
void | runtime_configuration_class_merge_in (struct caps_inif_table *runtime_config, enum caps_user_class clss) |
void | runtime_configuration_apply (struct caps_inif_table *runtime_config, enum caps_user_class clss, const char *package) |
void | runtime_configuration_apply_verbosity (const struct caps_inif_table *runtime_config) |
#define DSO_VISIBLE |
@ ingroup FIXME @ defgroup coordinator_only_api Internally used API
This API is used inside the Printing Coordinator only. @ {
#define ARRAY_SIZE | ( | x | ) | (sizeof(x)/sizeof(x[0])) |
#define caps_invalidate_pointer | ( | pointer | ) |
#define caps_print_debug | ( | fmt, | |
... | |||
) |
#define _ | ( | string | ) | (string) |
#define NLS_ | ( | string | ) | (string) |
#define CAPS_DRIVER_INI_NAME "driver-ini" |
This is the long command line parameter handled by libcapsprovider in caps_pp_instance_runtime_prepare().
This parameter defines the name of the driver's INI file at run-time, expected in the CAPS Printer Driver Database Directory directory (usually /usr/share/caps/drivers
).
#define CAPS_DRIVER_INI_NAME_SHORT 'f' |
Same usage than CAPS_DRIVER_INI_NAME, but the short form
#define CAPS_PARAM_DIRECTORY_NAME "parameter-dir" |
This is the long command line parameter handled by libcapsprovider in caps_pp_instance_runtime_prepare().
This parameter defines the name of the device's parameter directory, expected in the CAPS Printer Device Database Directory directory (usually /var/lib/caps
).
#define CAPS_PARAM_DIRECTORY_NAME_SHORT 'd' |
Same usage than CAPS_PARAM_DIRECTORY_NAME, but the short form
#define CAPS_RUNTIME_CONFIG_LEVEL "base" |
Define the INI file 'level', all run-time related settings should be at
This value is important to have all read and merged settings at the expected 'level' to make retrieving these settings successful.
#define RETVAL_BAD 1 |
#define RETVAL_FAIL 1 |
#define RETVAL_OK 0 |
void runtime_configuration_base_read_in | ( | struct caps_inif_table * | runtime_config | ) |
Read-in the CAPS universe shared 'caps.ini' file for basic run-time configuration
[out] | runtime_config | The configuration table to fill |
Expects the file in CAPS Configuration Directory (e.g. '/etc/caps/caps.ini' for example)
runtime_config
must already be initialized and empty! Read-in the CAPS universe shared 'caps.ini' file for basic run-time configuration
[out] | runtime_config | The configuration table to fill |
Expects the file in CAPS Configuration Directory (e.g. '/etc/caps/caps.ini' for example)
runtime_config
must already be initialized but empty! void runtime_configuration_class_merge_in | ( | struct caps_inif_table * | runtime_config, |
enum caps_user_class | clss | ||
) |
Merge-in the shared service dependend INI file for basic run-time configuration
[out] | runtime_config | The configuration table to merge more content to |
[in] | clss | The class of the running program (used to identify the corresponding service dependend INI file) |
For clss
refer layer for the corresponding service INI file.
runtime_config
must already be initialized Currently the already collected configuration gets removed if it fails to merge the class INI content
The error message needs more details: Why/What/What now?
Merge-in the shared service dependend INI file for basic run-time configuration
[out] | runtime_config | The configuration table to merge more content to |
[in] | clss | The class of the running program (used to identify the corresponding service dependend INI file) |
For clss
refer layer for the corresponding service INI file.
Currently the already collected configuration gets removed if it fails to merge the class INI content
The error message needs more details: Why/What/What now?
void runtime_configuration_apply | ( | struct caps_inif_table * | runtime_config, |
enum caps_user_class | clss, | ||
const char * | package | ||
) |
Read in a fixed sequence of INI files as a base run-time configuration
[out] | runtime_config | |
[in] | clss | Application class (refer enum caps_user_class) |
[in] | package | Used for the program's INI file (can be NULL) |
This function is intended for the printing coordinator internal tools and printing providers via libcapsprovider (not clients).
runtime_config
must already be initialized Read in a fixed sequence of INI files as a base run-time configuration
[out] | runtime_config | |
[in] | clss | Application class (refer enum caps_user_class) |
[in] | package | Used for the program's INI file (can be NULL) |
This function is intended for the printing coordinator internal tools and printing providers via libcapsprovider (not clients).
void runtime_configuration_apply_verbosity | ( | const struct caps_inif_table * | runtime_config | ) |
Apply the verbosity setting if available
[out] | runtime_config | The configuration to check for the verbosity setting |
This function is intended to be used whenever a run-time config is available. It is intended to apply the requested setting as early as possible.
The verbosity setting is always expected at
The new value from the INI file is only applied if it is higher than before. Else it gets ignored to give the application a change to overwrite it locally.