diff options
author | Carl Worth <cworth@cworth.org> | 2010-01-05 13:29:23 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-01-06 10:32:06 -0800 |
commit | d807e28f43579ecc91aa40ae3e42760991c2f810 (patch) | |
tree | 7652db1538464607171efee2fdcf400b29bd02ec /lib/notmuch-private.h | |
parent | ba07fe1819b59c9ecf7041834699d8959a604828 (diff) |
lib: Implement new notmuch_directory_t API.
This new directory ojbect provides all the infrastructure needed to
detect when files or directories are deleted or renamed. There's still
code needed on top of this (within "notmuch new") to actually do that
detection.
Diffstat (limited to 'lib/notmuch-private.h')
-rw-r--r-- | lib/notmuch-private.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index cb93c397..8b582640 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -161,6 +161,15 @@ _notmuch_database_split_path (void *ctx, const char **directory, const char **basename); +const char * +_notmuch_database_get_directory_db_path (const char *path); + +notmuch_private_status_t +_notmuch_database_find_unique_doc_id (notmuch_database_t *notmuch, + const char *prefix_name, + const char *value, + unsigned int *doc_id); + notmuch_status_t _notmuch_database_find_directory_id (notmuch_database_t *database, const char *path, @@ -177,6 +186,16 @@ _notmuch_database_filename_to_direntry (void *ctx, const char *filename, char **direntry); +/* directory.cc */ + +notmuch_directory_t * +_notmuch_directory_create (notmuch_database_t *notmuch, + const char *path, + notmuch_status_t *status_ret); + +unsigned int +_notmuch_directory_get_document_id (notmuch_directory_t *directory); + /* thread.cc */ notmuch_thread_t * |