Modules | |
| First (stacks start with one of these) | |
| Next (stacks may use these) | |
Functions | |
| void | ops_setup_memory_write (ops_create_info_t **cinfo, ops_memory_t **mem, size_t bufsz) |
| Create and initialise cinfo and mem; Set for writing to mem. | |
| void | ops_teardown_memory_write (ops_create_info_t *cinfo, ops_memory_t *mem) |
| Closes writer and frees cinfo and mem. | |
| int | ops_setup_file_write (ops_create_info_t **cinfo, const char *filename, ops_boolean_t allow_overwrite) |
| Create and initialise cinfo and mem; Set for writing to file. | |
| void | ops_teardown_file_write (ops_create_info_t *cinfo, int fd) |
| Closes writer, frees info, closes fd. | |
| int | ops_setup_file_append (ops_create_info_t **cinfo, const char *filename) |
| As ops_setup_file_write, but appends to file. | |
| void | ops_teardown_file_append (ops_create_info_t *cinfo, int fd) |
| As ops_teardown_file_write(). | |
| void | ops_writer_set (ops_create_info_t *info, ops_writer_t *writer, ops_writer_finaliser_t *finaliser, ops_writer_destroyer_t *destroyer, void *arg) |
| Set a writer in info. | |
| void | ops_writer_push (ops_create_info_t *info, ops_writer_t *writer, ops_writer_finaliser_t *finaliser, ops_writer_destroyer_t *destroyer, void *arg) |
| Push a writer in info. | |
| ops_boolean_t | ops_writer_close (ops_create_info_t *info) |
| Close the writer currently set in info. | |
| void * | ops_writer_get_arg (ops_writer_info_t *winfo) |
| Get the arg supplied to ops_create_info_set_writer(). | |
| ops_boolean_t | ops_stacked_write (const void *src, unsigned length, ops_error_t **errors, ops_writer_info_t *winfo) |
| Write to the next writer down in the stack. | |
| void | ops_writer_generic_destroyer (ops_writer_info_t *winfo) |
| Free the arg. | |
| ops_boolean_t | ops_writer_passthrough (const unsigned char *src, unsigned length, ops_error_t **errors, ops_writer_info_t *winfo) |
| A writer that just writes to the next one down. | |
|
||||||||||||||||
|
Create and initialise cinfo and mem; Set for writing to file.
|
|
||||||||||||||||
|
Create and initialise cinfo and mem; Set for writing to mem.
|
|
||||||||||||||||||||
|
Write to the next writer down in the stack.
|
|
||||||||||||
|
Closes writer, frees info, closes fd.
|
|
||||||||||||
|
Closes writer and frees cinfo and mem.
|
|
|
Close the writer currently set in info.
|
|
|
Free the arg. Many writers just have a malloc()ed lump of storage, this function releases it.
|
|
|
Get the arg supplied to ops_create_info_set_writer().
|
|
||||||||||||||||||||
|
A writer that just writes to the next one down. Useful for when you want to insert just a finaliser into the stack. |
|
||||||||||||||||||||||||
|
Push a writer in info. There must already be another writer set.
|
|
||||||||||||||||||||||||
|
Set a writer in info. There should not be another writer set.
|
1.4.6