![]() |
OpenICC Documentation
git-devel
OpenICC provides a simple Color Management configuration API
|
Macros | |
#define | OI_DEBUG "OI_DEBUG" |
customisable messages More... | |
Enumerations | |
enum | openiccMSG_e { openiccMSG_ERROR = 300, openiccMSG_WARN, openiccMSG_DBG } |
message classes More... | |
Functions | |
int | openiccInit (const char *loc) |
init the library; optionally More... | |
int | openiccMessageFuncSet (openiccMessage_f message_func) |
set a custom message listener More... | |
int | openiccVersion (void) |
runtime version More... | |
void * | openiccMemDup (const void *src, size_t size) |
return the malloced copy of a pointer More... | |
int | openiccMessageFormat (char **message_text, int code, const void *context_object, const char *string) |
default function to form a message string More... | |
int | openiccMessageFunc (int code, const void *context_object, const char *format,...) |
default message function to console More... | |
#define OI_DEBUG "OI_DEBUG" |
customisable messages
enum openiccMSG_e |
int openiccInit | ( | const char * | loc | ) |
init the library; optionally
Additionally use setlocale() somewhere in your application. The message catalog search path is detected from the OI_LOCALEDIR and the LOCPATH environment variables. If those are not present; the inbuild ::OPENICC_LOCALEDIR macro is used.
return -1 for no USE_GETTEXT defined, otherwise 1
void * openiccMemDup | ( | const void * | src, |
size_t | size | ||
) |
return the malloced copy of a pointer
int openiccMessageFormat | ( | char ** | message_text, |
int | code, | ||
const void * | context_object, | ||
const char * | string | ||
) |
default function to form a message string
This default message function is used as a message formatter. The resulting string can be placed anywhere, e.g. in a GUI.
Referenced by openiccMessageFunc().
int openiccMessageFunc | ( | int | code, |
const void * | context_object, | ||
const char * | format, | ||
... | |||
) |
default message function to console
The default message function is used as a message printer to the console from library start.
code | a message code understood be your message handler or openiccMSG_e |
context_object | a openicc object is expected |
format | the text format string for following args |
... | the variable args fitting to format |
References openiccMessageFormat().
int openiccMessageFuncSet | ( | openiccMessage_f | message_func | ) |
set a custom message listener
int openiccVersion | ( | void | ) |
runtime version