Lines Matching defs:OrderedSet
24 typedef struct OrderedSet OrderedSet;
26 static inline OrderedSet* ordered_set_new(const struct hash_ops *ops) {
27 return (OrderedSet*) ordered_hashmap_new(ops);
30 static inline int ordered_set_ensure_allocated(OrderedSet **s, const struct hash_ops *ops) {
41 static inline OrderedSet* ordered_set_free(OrderedSet *s) {
46 static inline OrderedSet* ordered_set_free_free(OrderedSet *s) {
51 static inline int ordered_set_put(OrderedSet *s, void *p) {
55 static inline bool ordered_set_isempty(OrderedSet *s) {
59 static inline bool ordered_set_iterate(OrderedSet *s, Iterator *i, void **value) {
63 int ordered_set_consume(OrderedSet *s, void *p);
64 int ordered_set_put_strdup(OrderedSet *s, const char *p);
65 int ordered_set_put_strdupv(OrderedSet *s, char **l);
70 DEFINE_TRIVIAL_CLEANUP_FUNC(OrderedSet*, ordered_set_free);
71 DEFINE_TRIVIAL_CLEANUP_FUNC(OrderedSet*, ordered_set_free_free);