34 union as_list_iterator_u;
36 struct as_list_hooks_s;
59 typedef struct as_list_s {
76 const struct as_list_hooks_s *
hooks;
83 typedef struct as_list_hooks_s {
142 int64_t (* get_int64)(
const as_list * list, uint32_t index);
152 char * (* get_str)(
const as_list * list, uint32_t index);
178 int (* set_int64)(
as_list * list, uint32_t index, int64_t value);
189 int (* set_str)(
as_list * list, uint32_t index,
const char * value);
215 int (* insert_int64)(
as_list * list, uint32_t index, int64_t value);
226 int (* insert_str)(
as_list * list, uint32_t index,
const char * value);
250 int (* append_int64)(
as_list * list, int64_t value);
260 int (* append_str)(
as_list * list,
const char * value);
284 int (* prepend_int64)(
as_list * list, int64_t value);
294 int (* prepend_str)(
as_list * list,
const char * value);
311 int (*
remove)(
as_list * list, uint32_t index);
399 union as_list_iterator_u * (* iterator_new)(
const as_list * list);
408 union as_list_iterator_u * (* iterator_init)(
const as_list * list,
union as_list_iterator_u * it);
697 return (
struct as_map_s *) (v && v->
type ==
AS_MAP ? v : NULL);
1221 return as_util_hook(
foreach,
false, list, callback, udata);