src/buffer_source.h File Reference

Buffer source API. More...

#include <sys/types.h>
Include dependency graph for buffer_source.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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.

Detailed Description

Buffer source API.

Definition in file buffer_source.h.


Generated on Sun Nov 15 15:27:40 2009 for libbls by  doxygen 1.6.1