![]() |
Oyranos
git-devel
Oyranos is a full featured Color Management System
|
|
Modules | |
| OyjlCore | |
| Internationalisation, Terminal colors, I/O and String Handling. | |
| OyjlTree JSON Parsing and Tree Handling | |
| Tree data structure manipulation and I/O. | |
| Oyjl_args | |
| OyjlTest Code and Tools Testing | |
| API testing for prototyping and regression checking in CI. | |
Functions | |
| const char * | oyjlVersionName (int vtype) |
| give the compiled in library version More... | |
| void | oyjlLibRelease () |
| Reset and free all resources. More... | |
| int | oyjlVersion (int vtype) |
| give the compiled in library version More... | |
| int | oyjlInitLanguageDebug (const char *project_name, const char *env_var_debug, int *debug_variable, int use_gettext OYJL_UNUSED, const char *env_var_locdir OYJL_UNUSED, const char *default_locdir OYJL_UNUSED, oyjlTranslation_s **context, oyjlMessage_f msg) |
| init the libraries language; optionaly More... | |
Basic low level API's
Oyjl API provides a platformindependent C interface for JSON I/O, conversion to and from XML + YAML, string helpers, file reading, testing and argument handling.
The API's are quite independent.
The API of the Oyranos JSON Library is declared in the oyjl.h header file.
Oyjl comes with a few tools, which use the Oyjl API's.
| int oyjlInitLanguageDebug | ( | const char * | project_name, |
| const char * | env_var_debug, | ||
| int * | debug_variable, | ||
| int use_gettext | OYJL_UNUSED, | ||
| const char *env_var_locdir | OYJL_UNUSED, | ||
| const char *default_locdir | OYJL_UNUSED, | ||
| oyjlTranslation_s ** | context, | ||
| oyjlMessage_f | msg | ||
| ) |
init the libraries language; optionaly
Additionally use setlocale() to obtain locale in your application. The message catalog search path is detected from the project specific environment variable specified in env_var_locdir and the LOCPATH environment variables. If those are not present a expected fall back directory from default_locdir is used.
| project_name | project name display string; e.g. "MyProject" |
| env_var_debug | environment debug variable string; e.g. "MP_DEBUG" |
| debug_variable | int C variable; e.g. my_project_debug |
| use_gettext | switch gettext support on or off |
| env_var_locdir | environment variable string for locale path; e.g. "MP_LOCALEDIR" |
| default_locdir | default locale path C string; e.g. "/usr/local/share/locale" |
| context | locale, domain and possibly more information; use oyjlTranslation_New()
|
| msg | your message function of type oyjlMessage_f; optional - default is Oyjl message function |
| void oyjlLibRelease | ( | ) |
Reset and free all resources.
| int oyjlVersion | ( | int | vtype | ) |
give the compiled in library version
| [in] | vtype | request API type
|
| const char * oyjlVersionName | ( | int | vtype | ) |
give the compiled in library version
| [in] | vtype | request API type
|
References OYJL_GIT_VERSION.
1.8.13