]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch-private.h
database: Store mail filename as a new 'direntry' term, not as 'data'.
[notmuch] / lib / notmuch-private.h
index 56929ffa87cb67343fba6bb623832c7410971ded..5a930bb32a87f0204a3f13c75ea5071b0f9b8136 100644 (file)
@@ -156,9 +156,20 @@ _notmuch_database_relative_path (notmuch_database_t *notmuch,
                                 const char *path);
 
 notmuch_status_t
-_notmuch_database_find_parent_id (notmuch_database_t *notmuch,
-                                 const char *path,
-                                 unsigned int *parent_id);
+_notmuch_database_split_path (void *ctx,
+                             const char *path,
+                             const char **directory,
+                             const char **basename);
+
+notmuch_status_t
+_notmuch_database_find_directory_id (notmuch_database_t *database,
+                                    const char *path,
+                                    unsigned int *directory_id);
+
+const char *
+_notmuch_database_get_directory_path (void *ctx,
+                                     notmuch_database_t *notmuch,
+                                     unsigned int doc_id);
 
 /* thread.cc */
 
@@ -199,7 +210,7 @@ _notmuch_message_gen_terms (notmuch_message_t *message,
                            const char *prefix_name,
                            const char *text);
 
-void
+notmuch_status_t
 _notmuch_message_set_filename (notmuch_message_t *message,
                               const char *filename);