X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fnotmuch-private.h;h=7b35fc5b0ca8bc4656841a14c6212814f05d2fbc;hb=b846bdb48233c907d1ecaff495fbf6bc578910d6;hp=77011063d1995e73a8d26a8689daf18a40c1a1f0;hpb=b8bb6d796458732622f80464dd808b3e02f57d9d;p=notmuch diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 77011063..7b35fc5b 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -543,7 +543,7 @@ _notmuch_string_list_sort (notmuch_string_list_t *list); /* string-map.c */ typedef struct _notmuch_string_map notmuch_string_map_t; - +typedef struct _notmuch_string_map_iterator notmuch_string_map_iterator_t; notmuch_string_map_t * _notmuch_string_map_create (const void *ctx); @@ -555,6 +555,25 @@ _notmuch_string_map_append (notmuch_string_map_t *map, const char * _notmuch_string_map_get (notmuch_string_map_t *map, const char *key); +notmuch_string_map_iterator_t * +_notmuch_string_map_iterator_create (notmuch_string_map_t *map, const char *key, + notmuch_bool_t exact); + +notmuch_bool_t +_notmuch_string_map_iterator_valid (notmuch_string_map_iterator_t *iter); + +void +_notmuch_string_map_iterator_move_to_next (notmuch_string_map_iterator_t *iter); + +const char * +_notmuch_string_map_iterator_key (notmuch_string_map_iterator_t *iterator); + +const char * +_notmuch_string_map_iterator_value (notmuch_string_map_iterator_t *iterator); + +void +_notmuch_string_map_iterator_destroy (notmuch_string_map_iterator_t *iterator); + /* tags.c */ notmuch_tags_t *