• Home
  • Raw
  • Download

Lines Matching refs:Set

27 Set *internal_set_new(const struct hash_ops *hash_ops  HASHMAP_DEBUG_PARAMS);
31 static inline void set_free(Set *s) { in set_free()
35 static inline void set_free_free(Set *s) { in set_free_free()
41 static inline Set *set_copy(Set *s) { in set_copy()
42 return (Set*) internal_hashmap_copy(HASHMAP_BASE(s)); in set_copy()
45 int internal_set_ensure_allocated(Set **s, const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS);
48 int set_put(Set *s, const void *key);
51 static inline void *set_get(Set *s, void *key) { in set_get()
56 static inline bool set_contains(Set *s, const void *key) { in set_contains()
60 static inline void *set_remove(Set *s, const void *key) { in set_remove()
66 int set_remove_and_put(Set *s, const void *old_key, const void *new_key);
68 int set_merge(Set *s, Set *other);
70 static inline int set_reserve(Set *h, unsigned entries_add) { in set_reserve()
74 static inline int set_move(Set *s, Set *other) { in set_move()
78 static inline int set_move_one(Set *s, Set *other, const void *key) { in set_move_one()
82 static inline unsigned set_size(Set *s) { in set_size()
86 static inline bool set_isempty(Set *s) { in set_isempty()
90 static inline unsigned set_buckets(Set *s) { in set_buckets()
94 void *set_iterate(Set *s, Iterator *i);
96 static inline void set_clear(Set *s) { in set_clear()
100 static inline void set_clear_free(Set *s) { in set_clear_free()
106 static inline void *set_steal_first(Set *s) { in set_steal_first()
113 static inline void *set_first(Set *s) { in set_first()
119 static inline char **set_get_strv(Set *s) { in set_get_strv()
123 int set_consume(Set *s, void *value);
124 int set_put_strdup(Set *s, const char *p);
125 int set_put_strdupv(Set *s, char **l);
130 DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free);
131 DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free_free);