![]() |
Record Hooks.
An implementation of as_rec
should provide implementations for each of the hooks.
#include "as_rec.h"
Data Fields | |
int(* | bin_names )(const as_rec *rec, as_rec_bin_names_callback callback, void *udata) |
bool(* | destroy )(as_rec *rec) |
uint32_t(* | device_size )(const as_rec *rec) |
as_bytes *(* | digest )(const as_rec *rec) |
int(* | drop_key )(const as_rec *rec) |
bool(* | foreach )(const as_rec *rec, as_rec_foreach_callback callback, void *udata) |
uint16_t(* | gen )(const as_rec *rec) |
as_val *(* | get )(const as_rec *rec, const char *name) |
uint32_t(* | hashcode )(const as_rec *rec) |
as_val *(* | key )(const as_rec *rec) |
uint64_t(* | last_update_time )(const as_rec *rec) |
uint32_t(* | memory_size )(const as_rec *rec) |
uint16_t(* | numbins )(const as_rec *rec) |
int(* | remove )(const as_rec *rec, const char *bin) |
int(* | set )(const as_rec *rec, const char *name, const as_val *value) |
int(* | set_ttl )(const as_rec *rec, uint32_t ttl) |
const char *(* | setname )(const as_rec *rec) |
uint32_t(* | size )(const as_rec *rec) |
uint32_t(* | ttl )(const as_rec *rec) |
int(* as_rec_hooks::bin_names) (const as_rec *rec, as_rec_bin_names_callback callback, void *udata) |
bool(* as_rec_hooks::destroy) (as_rec *rec) |
uint32_t(* as_rec_hooks::device_size) (const as_rec *rec) |
int(* as_rec_hooks::drop_key) (const as_rec *rec) |
bool(* as_rec_hooks::foreach) (const as_rec *rec, as_rec_foreach_callback callback, void *udata) |
uint16_t(* as_rec_hooks::gen) (const as_rec *rec) |
uint32_t(* as_rec_hooks::hashcode) (const as_rec *rec) |
uint64_t(* as_rec_hooks::last_update_time) (const as_rec *rec) |
uint32_t(* as_rec_hooks::memory_size) (const as_rec *rec) |
uint16_t(* as_rec_hooks::numbins) (const as_rec *rec) |
int(* as_rec_hooks::remove) (const as_rec *rec, const char *bin) |
const char *(* as_rec_hooks::setname) (const as_rec *rec) |
uint32_t(* as_rec_hooks::size) (const as_rec *rec) |
uint32_t(* as_rec_hooks::ttl) (const as_rec *rec) |