35 struct as_rec_hooks_s;
71 typedef struct as_rec_s {
88 const struct as_rec_hooks_s *
hooks;
98 typedef struct as_rec_hooks_s {
108 uint32_t (* hashcode)(
const as_rec * rec);
118 int (* set)(
const as_rec * rec,
const char * name,
const as_val * value);
123 int (*
remove)(
const as_rec * rec,
const char * bin);
143 const char * (* setname)(
const as_rec * rec);
148 uint16_t (* numbins)(
const as_rec * rec);
163 int (* set_flags)(
const as_rec * rec,
const char * bin, uint8_t flags);
168 int (* set_type)(
const as_rec * rec, int8_t type);
173 int (* set_ttl)(
const as_rec * rec, uint32_t ttl);
252 return rec ? rec->
data : NULL;
327 return as_util_hook(bin_names, 0, rec, callback, udata);
662 return as_util_hook(
foreach,
false, rec, callback, udata);