13 #define POOL_TYPE_MAX 16
int dmlite_pools_free(unsigned nPools, dmlite_pool *pools)
Frees an array of pools.
Chunk of data.
Definition: pool.h:29
int dmlite_put_abort(dmlite_context *context, const dmlite_location *loc)
Aborts a put request.
dmlite_location * dmlite_iget(dmlite_context *context, ino_t inode)
Gets a single replica (synchronous).
struct dmlite_location dmlite_location
Collection of chunks that form a replica.
struct dmlite_any_dict dmlite_any_dict
Handles key->value pairs.
Definition: any.h:25
int dmlite_location_free(dmlite_location *loc)
Frees a location struct.
off_t offset
Definition: pool.h:30
size_t size
Definition: pool.h:31
C wrapper for DMLite utils.
dmlite_location * dmlite_put(dmlite_context *context, const char *path)
Puts a file (synchronous).
struct dmlite_chunk dmlite_chunk
Chunk of data.
unsigned nchunks
Definition: pool.h:40
char pool_name[POOL_MAX]
Definition: pool.h:23
Opaque handler to pass different types of values to the API.
struct dmlite_context dmlite_context
Handle for a initialized context.
Definition: dmlite.h:23
struct dmlite_pool dmlite_pool
Pool data.
dmlite_location * dmlite_getlocation(dmlite_context *context, const dmlite_replica *replica)
Gets the location of a replica.
dmlite_url url
Definition: pool.h:32
#define POOL_TYPE_MAX
Definition: pool.h:13
Handles URL.
Definition: utils.h:39
dmlite_location * dmlite_get(dmlite_context *context, const char *path)
Gets a single replica (synchronous).
dmlite_chunk * chunks
Definition: pool.h:39
#define POOL_MAX
Definition: pool.h:14
char pool_type[POOL_TYPE_MAX]
Definition: pool.h:22
C wrapper for DMLite INode API.
Pool data.
Definition: pool.h:21
dmlite_any_dict * extra
Definition: pool.h:25
Collection of chunks that form a replica.
Definition: pool.h:38
int dmlite_getpools(dmlite_context *context, unsigned *nPools, dmlite_pool **pools)
Gets the list of pools.