database: Abstract _filename_to_direntry from _add_message
authorCarl Worth <cworth@cworth.org>
Mon, 21 Dec 2009 23:09:56 +0000 (15:09 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 18:32:05 +0000 (10:32 -0800)
commit498edff50373785c9dcc889d0fb6bc9bfc13dfcb
tree931b1b52f0b4f7ee2a336ef37a8558869640fcff
parent1376a90db622b71e0997fca52c50ccf34faeed22
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 .
lib/database.cc
lib/message.cc
lib/notmuch-private.h