]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch-private.h
database: Split _find_parent_id into _split_path and _find_directory_id
[notmuch] / lib / notmuch-private.h
index 56929ffa87cb67343fba6bb623832c7410971ded..9f470c9f9e389d9ff19c6ceced0ad08bcddd724e 100644 (file)
@@ -156,9 +156,15 @@ _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);
 
 /* thread.cc */