Buffer source API. More...
#include <sys/types.h>
Buffer Sources | |
| |
typedef void | bless_buffer_source_t |
Opaque type for a buffer source object. | |
typedef void( | bless_mem_free_func )(void *) |
A function to call to free the memory associated with a memory source object. | |
typedef int( | bless_file_close_func )(int) |
A function to call to close the file associated with a file source object. | |
int | bless_buffer_source_memory (bless_buffer_source_t **src, void *data, size_t length, bless_mem_free_func *mem_free) |
Creates a memory source for bless_buffer_t. | |
int | bless_buffer_source_file (bless_buffer_source_t **src, int fd, bless_file_close_func *file_close) |
Creates a file source for bless_buffer_t. | |
int | bless_buffer_source_unref (bless_buffer_source_t *src) |
Decreases the usage count of a source object. |
Buffer source API.