Data object ADT API. More...
#include <sys/types.h>#include <stdint.h>

Go to the source code of this file.
Typedefs | |
| typedef struct data_object | data_object_t |
| Opaque type for data object ADT. | |
Enumerations | |
| enum | data_object_flags { DATA_OBJECT_READ = 1, DATA_OBJECT_WRITE = 2, DATA_OBJECT_RW = 3 } |
Flags for the usage of data returned by data_object_get_data(). More... | |
Functions | |
| int | data_object_get_data (data_object_t *obj, void **buf, off_t offset, off_t *length, data_object_flags flags) |
| Gets a pointer to data from the data object. | |
| int | data_object_free (data_object_t *obj) |
| Frees the data object and its resources. | |
| int | data_object_update_usage (void *obj, int change) |
| Updates the usage count of this data object. | |
| int | data_object_get_size (data_object_t *obj, off_t *size) |
| Gets the size of the data object. | |
| int | data_object_compare (int *result, data_object_t *obj1, data_object_t *obj2) |
| Compares the data held by two data objects. | |
Data object ADT API.
Definition in file data_object.h.
1.6.1