37 union as_list_iterator_u;
39 struct as_list_hooks_s;
62 typedef struct as_list_s {
79 const struct as_list_hooks_s *
hooks;
86 typedef struct as_list_hooks_s {
145 int64_t (* get_int64)(
const as_list * list, uint32_t index);
155 char * (* get_str)(
const as_list * list, uint32_t index);
181 int (* set_int64)(
as_list * list, uint32_t index, int64_t value);
192 int (* set_str)(
as_list * list, uint32_t index,
const char * value);
218 int (* insert_int64)(
as_list * list, uint32_t index, int64_t value);
229 int (* insert_str)(
as_list * list, uint32_t index,
const char * value);
253 int (* append_int64)(
as_list * list, int64_t value);
263 int (* append_str)(
as_list * list,
const char * value);
287 int (* prepend_int64)(
as_list * list, int64_t value);
297 int (* prepend_str)(
as_list * list,
const char * value);
314 int (*
remove)(
as_list * list, uint32_t index);
402 union as_list_iterator_u * (* iterator_new)(
const as_list * list);
411 union as_list_iterator_u * (* iterator_init)(
const as_list * list,
union as_list_iterator_u * it);
700 return (
struct as_map_s *) (v && v->
type ==
AS_MAP ? v : NULL);
1224 return as_util_hook(
foreach,
false, list, callback, udata);