aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/notmuch-private.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-12-21 15:09:56 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-01-06 10:32:05 -0800
commit498edff50373785c9dcc889d0fb6bc9bfc13dfcb (patch)
tree931b1b52f0b4f7ee2a336ef37a8558869640fcff /lib/notmuch-private.h
parent1376a90db622b71e0997fca52c50ccf34faeed22 (diff)
database: Abstract _filename_to_direntry from _add_message
The code to map a filename to a direntry is something that we're going to want in a future _remove_message function, so put it in a new function _notmuch_database_filename_to_direntry .
Diffstat (limited to 'lib/notmuch-private.h')
-rw-r--r--lib/notmuch-private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
index e9712832..cb93c397 100644
--- a/lib/notmuch-private.h
+++ b/lib/notmuch-private.h
@@ -171,6 +171,12 @@ _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);
+
/* thread.cc */
notmuch_thread_t *