X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch-private.h;h=8b582640aacdf54e6e1518a5d00d8228b1b6b982;hp=5a930bb32a87f0204a3f13c75ea5071b0f9b8136;hb=957ae198e708dc901e3a8c89b7364c2bc75ce371;hpb=6ca6c089e9df7affe6bee0392197509a24ab2546 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 5a930bb3..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, @@ -171,6 +180,22 @@ _notmuch_database_get_directory_path (void *ctx, notmuch_database_t *notmuch, unsigned int doc_id); +notmuch_status_t +_notmuch_database_filename_to_direntry (void *ctx, + notmuch_database_t *notmuch, + 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 * @@ -211,7 +236,7 @@ _notmuch_message_gen_terms (notmuch_message_t *message, const char *text); notmuch_status_t -_notmuch_message_set_filename (notmuch_message_t *message, +_notmuch_message_add_filename (notmuch_message_t *message, const char *filename); void