![]() |
Record Hooks.
An implementation of as_rec
should provide implementations for each of the hooks.
#include "as_rec.h"
Data Fields | |
bool(* | destroy )(as_rec *rec) |
as_bytes *(* | digest )(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) |
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_flags )(const as_rec *rec, const char *bin, uint8_t flags) |
int(* | set_type )(const as_rec *rec, uint8_t type) |
uint32_t(* | ttl )(const as_rec *rec) |
bool(* as_rec_hooks::destroy)(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) |
uint16_t(* as_rec_hooks::numbins)(const as_rec *rec) |
int(* as_rec_hooks::remove)(const as_rec *rec, const char *bin) |
int(* as_rec_hooks::set_flags)(const as_rec *rec, const char *bin, uint8_t flags) |
int(* as_rec_hooks::set_type)(const as_rec *rec, uint8_t type) |
uint32_t(* as_rec_hooks::ttl)(const as_rec *rec) |