summaryrefslogtreecommitdiff
path: root/notmuch-private.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-26 09:13:19 -0700
committerCarl Worth <cworth@cworth.org>2009-10-26 14:02:51 -0700
commit3dce2007887717ec4ec0a1e815591c957acd1ba1 (patch)
tree66a93d1df69c8789c8a9fe25eb396b0fc6a81800 /notmuch-private.h
parent46ba33b1159fb48b8360ddae72492cc3162dc999 (diff)
tags: Re-implement tags iterator to avoid having C++ in the interface
We want to be able to iterate over tags stored in various ways, so the previous TermIterator-based tags object just wasn't general enough. The new interface is nice and simple, and involves only C datatypes.
Diffstat (limited to 'notmuch-private.h')
-rw-r--r--notmuch-private.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/notmuch-private.h b/notmuch-private.h
index d257f2b..3d2610a 100644
--- a/notmuch-private.h
+++ b/notmuch-private.h
@@ -274,6 +274,20 @@ notmuch_sha1_of_string (const char *str);
char *
notmuch_sha1_of_file (const char *filename);
+/* tags.c */
+
+notmuch_tags_t *
+_notmuch_tags_create (void *ctx);
+
+void
+_notmuch_tags_add_tag (notmuch_tags_t *tags, const char *tag);
+
+void
+_notmuch_tags_sort (notmuch_tags_t *tags);
+
+void
+_notmuch_tags_reset (notmuch_tags_t *tags);
+
NOTMUCH_END_DECLS
#endif