Functions | |
wmf_error_t | wmf_bbuf_input (wmfAPI *API, wmfRead fp_read, wmfSeek fp_seek, wmfTell fp_tell, void *user_data) |
wmf_error_t | wmf_file_open (wmfAPI *API, char *file) |
wmf_error_t | wmf_file_close (wmfAPI *API) |
int | wmf_file_read (void *user_data) |
int | wmf_file_seek (void *user_data, long pos) |
long | wmf_file_tell (void *user_data) |
wmf_error_t | wmf_mem_open (wmfAPI *API, unsigned char *mem, long length) |
wmf_error_t | wmf_mem_close (wmfAPI *API) |
int | wmf_mem_read (void *user_data) |
int | wmf_mem_seek (void *user_data, long pos) |
long | wmf_mem_tell (void *user_data) |
|
Set custom metafile input-stream handler functions.
typedef int (*wmfRead) (void* user_data); typedef int (*wmfSeek) (void* user_data,long position); typedef long (*wmfTell) (void* user_data); wmfRead returns unsigned char cast to int, or EOF (cf. fgetc()) wmfSeek returns (-1) on error, otherwise 0 (cf. fseek()) wmfTell returns (-1) on error, otherwise current position (cf. ftell())
|
|
Close metafile input file stream.
|
|
Open file as metafile.
|
|
For internal use only. |
|
For internal use only. |
|
For internal use only. |
|
Close metafile input memory stream.
|
|
Open metafile in memory.
|
|
For internal use only. |
|
For internal use only. |
|
For internal use only. |