6 #ifndef CVMFS_CACHE_PLUGIN_LIBCVMFS_CACHE_H_
7 #define CVMFS_CACHE_PLUGIN_LIBCVMFS_CACHE_H_
18 #define LIBCVMFS_CACHE_REVISION 5
81 #define CVMCACHE_SIZE_UNKNOWN (uint64_t(-1))
147 unsigned char *buffer);
158 unsigned char *buffer,
259 const char *key,
const char *value);
289 #endif // CVMFS_CACHE_PLUGIN_LIBCVMFS_CACHE_H_
struct cvmcache_hash catalog_hash
int(* cvmcache_chrefcnt)(struct cvmcache_hash *id, int32_t change_by)
struct cvmcache_context * ctx
Session * session() const
void cvmcache_terminate(struct cvmcache_context *ctx)
int cvmcache_listen(struct cvmcache_context *ctx, char *locator)
int(* cvmcache_listing_next)(int64_t lst_id, struct cvmcache_object_info *item)
void cvmcache_cleanup_global()
void cvmcache_terminate_watchdog()
char * cvmcache_options_dump(cvmcache_option_map *opts)
int cvmcache_is_supervised()
int(* cvmcache_pread)(struct cvmcache_hash *id, uint64_t offset, uint32_t *size, unsigned char *buffer)
int(* cvmcache_breadcrumb_load)(const char *fqrn, cvmcache_breadcrumb *breadcrumb)
struct cvmcache_object_info __attribute__
void cvmcache_wait_for(struct cvmcache_context *ctx)
void cvmcache_ask_detach(struct cvmcache_context *ctx)
int(* cvmcache_write_txn)(uint64_t txn_id, unsigned char *buffer, uint32_t size)
int cvmcache_hash_cmp(struct cvmcache_hash *a, struct cvmcache_hash *b)
void cvmcache_get_session(cvmcache_session *session)
void cvmcache_options_free(char *value)
void cvmcache_spawn_watchdog(const char *crash_dump_file)
void cvmcache_options_fini(cvmcache_option_map *opts)
char * cvmcache_hash_print(const struct cvmcache_hash *h)
enum cvmcache_object_type type
struct cvmcache_context * cvmcache_init(struct cvmcache_callbacks *callbacks)
void cvmcache_init_global()
int cvmcache_options_parse(cvmcache_option_map *opts, const char *path)
int(* cvmcache_shrink)(uint64_t shrink_to, uint64_t *used)
void cvmcache_options_unset(cvmcache_option_map *opts, const char *key)
int(* cvmcache_listing_begin)(uint64_t lst_id, enum cvmcache_object_type type)
void cvmcache_process_requests(struct cvmcache_context *ctx, unsigned nworkers)
int(* cvmcache_breadcrumb_store)(const char *fqrn, const cvmcache_breadcrumb *breadcrumb)
char * cvmcache_options_get(cvmcache_option_map *opts, const char *key)
int(* cvmcache_commit_txn)(uint64_t txn_id)
int(* cvmcache_start_txn)(struct cvmcache_hash *id, uint64_t txn_id, struct cvmcache_object_info *info)
int(* cvmcache_listing_end)(int64_t lst_id)
int(* cvmcache_abort_txn)(uint64_t txn_id)
void cvmcache_options_set(cvmcache_option_map *opts, const char *key, const char *value)
int(* cvmcache_obj_info)(struct cvmcache_hash *id, struct cvmcache_object_info *info)
cvmcache_option_map * cvmcache_options_init()
uint32_t cvmcache_max_object_size(struct cvmcache_context *ctx)