38 union as_list_iterator_u;
40 struct as_list_hooks_s;
63 typedef struct as_list_s {
80 const struct as_list_hooks_s *
hooks;
87 typedef struct as_list_hooks_s {
146 int64_t (* get_int64)(
const as_list * list, uint32_t index);
156 char * (* get_str)(
const as_list * list, uint32_t index);
182 int (* set_int64)(
as_list * list, uint32_t index, int64_t value);
193 int (* set_str)(
as_list * list, uint32_t index,
const char * value);
219 int (* insert_int64)(
as_list * list, uint32_t index, int64_t value);
230 int (* insert_str)(
as_list * list, uint32_t index,
const char * value);
254 int (* append_int64)(
as_list * list, int64_t value);
264 int (* append_str)(
as_list * list,
const char * value);
288 int (* prepend_int64)(
as_list * list, int64_t value);
298 int (* prepend_str)(
as_list * list,
const char * value);
315 int (*
remove)(
as_list * list, uint32_t index);
403 union as_list_iterator_u * (* iterator_new)(
const as_list * list);
412 union as_list_iterator_u * (* iterator_init)(
const as_list * list,
union as_list_iterator_u * it);
701 return (
struct as_map_s *) (v && v->
type ==
AS_MAP ? v : NULL);
1225 return as_util_hook(
foreach,
false, list, callback, udata);