aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/notmuch-private.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-12-21 08:14:52 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-01-06 10:32:05 -0800
commit84742d86ab2fd3e5b5b601f073351454b993575e (patch)
tree591bcc847d515878547c498fcdda5981882f79d8 /lib/notmuch-private.h
parent4c1cca888fc89cd5c072a2df609d6d6d47acdfaf (diff)
database: Split _find_parent_id into _split_path and _find_directory_id
Some pending commits want the _split_path functionality separate from mapping a directory to a document ID. The split_path function now returns the basename as well as the directory name.
Diffstat (limited to 'lib/notmuch-private.h')
-rw-r--r--lib/notmuch-private.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
index 56929ffa..9f470c9f 100644
--- a/lib/notmuch-private.h
+++ b/lib/notmuch-private.h
@@ -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 */