From 84742d86ab2fd3e5b5b601f073351454b993575e Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 21 Dec 2009 08:14:52 -0800 Subject: 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. --- lib/notmuch-private.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib/notmuch-private.h') 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 */ -- cgit v1.2.3