Functions | |
wmf_error_t | wmf_api_create (wmfAPI **API_return, unsigned long flags, wmfAPI_Options *options) |
wmf_error_t | wmf_api_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, 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) |
char * | wmf_help () |
unsigned long | wmf_strbuf_grow (wmfAPI *API) |
|
Creates and initializes an instance of the libwmf library for a specified device layer.
flags . wmf_api_create allocates the wmfAPI structure and initializes the color and font 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.
|
|
Close the device layer, if open, and release all allocated memory attached to the memory manager.
|
|
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.
|
|
Additional wmf-related options: --wmf-error[=yes|no] switch for error reports. --wmf-debug[=yes|no] switch for debug reports, if any. --wmf-ignore-nonfatal[=yes|no] switch to ignore (some) non-fatal errors. --wmf-diagnostics emit diagnostic information. --wmf-fontdir=<path> add <path> to list of font directories. --wmf-sys-fonts use system fonts, if any found. --wmf-sys-fontmap=<file> use system xml-fontmap file <file>. --wmf-xtra-fonts use non-system fonts, if any found. --wmf-xtra-fontmap=<file> use non-system xml-fontmap file <file>. --wmf-gs-fontmap=<file> use ghostscript file <file>. Report bugs to <http://www.wvware.com/>.
|
|
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 .
|