Data Fields | |
vbi_export_class * | _class |
char * | errstr |
const char * | name |
char * | network |
char * | creator |
vbi_bool | reveal |
enum _vbi_export_target | target |
union { | |
FILE * fp | |
int fd | |
} | _handle |
_vbi_export_write_fn * | _write |
struct { | |
char * data | |
size_t offset | |
size_t capacity | |
} | buffer |
vbi_bool | write_error |
Export modules can read, but do not normally write its fields, as they are maintained by the public libzvbi export functions.
|
Points back to export module description. |
|
Frontend private. |
|
If |
|
Generic option: Network name or |
|
Generic option: Creator name [by default "libzvbi"] or |
|
Generic option: Reveal hidden characters. |
|
The export target. Note _vbi_export_grow_buffer_space() may change the target from TARGET_MEM to TARGET_ALLOC if the buffer supplied by the application is too small. |
|
If target is Private field. Not to be accessed by export modules. |
|
Function to write data into _handle. Private field. Not to be accessed by export modules. |
|
Pointer to the start of the buffer in memory. |
|
The number of bytes written into the buffer so far. Must be <= |
|
Number of bytes we can store in the buffer, may be zero. Call _vbi_export_grow_buffer_space() to increase the capacity. Keep in mind this may change the data pointer. |
|
Output buffer. Export modules can write into this buffer directly after ensuring sufficient capacity, and/or call the vbi_export_putc() etc functions. Keep in mind these functions may call realloc(), changing the data pointer, and/or vbi_export_flush(), changing the offset. |
|
A write error occurred (like ferror()). |