Functions | |
wmf_error_t | wmf_lite_create (wmfAPI **API_return, unsigned long flags, wmfAPI_Options *options) |
wmf_error_t | wmf_lite_destroy (wmfAPI *API) |
void | wmf_assert (wmfAPI *API, char *file, int line) |
void | wmf_error (wmfAPI *API, char *file, int line, char *msg) |
void | wmf_debug (wmfAPI *API, char *file, int line, char *msg) |
void | wmf_printf (wmfAPI *API, char *msg,...) |
void * | wmf_malloc (wmfAPI *API, size_t size) |
void * | wmf_calloc (wmfAPI *API, size_t number, size_t size) |
void * | wmf_realloc (wmfAPI *API, void *mem, size_t size) |
void | wmf_free (wmfAPI *API, void *mem) |
void | wmf_detach (wmfAPI *API, void *mem) |
char * | wmf_strdup (wmfAPI *API, const char *str) |
char * | wmf_str_append (wmfAPI *API, char *pre, char *post) |
char * | wmf_strstr (const char *haystack, const char *needle) |
void | wmf_status_function (wmfAPI *API, void *context, wmfStatus function) |
unsigned long | wmf_strbuf_grow (wmfAPI *API) |
|
Set the error state of the library to wmf_E_Assert.
#define WMF_ASSERT(Z,M) if (!(M)) wmf_assert (Z,__FILE__,__LINE__) |
|
Allocate memory of specified size and attach to the API's memory manager's internal list.
number * size bytes of memory and adds a reference to it in the memory manager's list. To free the memory, use wmf_free().
|
|
Print message to debug stream.
|
|
Detach memory attached to the API's memory manager's internal list.
|
|
Print message to error stream.
|
|
Frees memory attached to the API's memory manager's internal list.
|
|
Creates and initializes an instance of the libwmf library (lite interface) for a specified device layer.
flags . wmf_api_create allocates the wmfAPI structure and initializes the color tables, the metafile player, and the device layer. If successful then the pointer to the wmfAPI structure is returned via API_return , otherwise all allocated memory is released and the library exits with an appropriate error.
wmf_lite_create () ignores command line arguments, if any are given, and does not attempt to set up font mapping. The library should be closed using the corresponding wmf_lite_destroy () function.
|
|
Close the device layer, if open, and release all allocated memory attached to the memory manager.
|
|
Allocate memory of specified size and attach to the API's memory manager's internal list.
size bytes of memory and adds a reference to it in the memory manager's list. To free the memory, use wmf_free().
|
|
Print formatted message to debug stream.
|
|
(Re)Allocate memory of specified size and attach to the API's memory manager's internal list.
size bytes of memory and adds a reference to it in the memory manager's list. To free the memory, use wmf_free(). If mem is zero, this is equivalent to a call to wmf_malloc(). If size is zero, the memory is released via wmf_free().
|
|
Set a status call-back function.
|
|
Create concatenatation of two strings and attach to the API's memory manager's internal list.
pre into the string and appends post . Use wmf_free() to free the string.
|
|
Increase the size of the internal string buffer.
|
|
Duplicate string and attach to the API's memory manager's internal list.
|
|
Substring search.
needle in string haystack .
|