35 struct as_rec_hooks_s;
60 typedef struct as_rec_s {
77 const struct as_rec_hooks_s *
hooks;
87 typedef struct as_rec_hooks_s {
97 uint32_t (* hashcode)(
const as_rec * rec);
107 int (* set)(
const as_rec * rec,
const char * name,
const as_val * value);
112 int (*
remove)(
const as_rec * rec,
const char * bin);
127 uint16_t (* numbins)(
const as_rec * rec);
137 int (* set_flags)(
const as_rec * rec,
const char * bin, uint8_t flags);
142 int (* set_type)(
const as_rec * rec, uint8_t type);
147 int (* set_ttl)(
const as_rec * rec, uint32_t ttl);
226 return rec ? rec->
data : NULL;
606 return as_util_hook(
foreach,
false, rec, callback, udata);