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);
138 uint16_t (* numbins)(
const as_rec * rec);
153 int (* set_flags)(
const as_rec * rec,
const char * bin, uint8_t flags);
158 int (* set_type)(
const as_rec * rec, uint8_t type);
163 int (* set_ttl)(
const as_rec * rec, uint32_t ttl);
242 return rec ? rec->
data : NULL;
297 return as_util_hook(bin_names, 0, rec, callback, udata);
632 return as_util_hook(
foreach,
false, rec, callback, udata);