X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fnotmuch.h;h=310a8b8a313226b89455133b85feea139a944e37;hb=07b6220a5595bf4556e636709220121d6405e9e9;hp=c5f7dcb4b9f10f28b4eab46e4844d7f06680fc05;hpb=7a20f26f919a5c30fc53a7cf6f8dd4fbc08dd409;p=notmuch diff --git a/lib/notmuch.h b/lib/notmuch.h index c5f7dcb4..310a8b8a 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -1752,7 +1752,7 @@ notmuch_filenames_t * notmuch_directory_get_child_files (notmuch_directory_t *directory); /** - * Get a notmuch_filenams_t iterator listing all the filenames of + * Get a notmuch_filenames_t iterator listing all the filenames of * sub-directories in the database within the given directory. * * The returned filenames will be the basename-entries only (not @@ -1761,6 +1761,16 @@ notmuch_directory_get_child_files (notmuch_directory_t *directory); notmuch_filenames_t * notmuch_directory_get_child_directories (notmuch_directory_t *directory); +/** + * Delete directory document from the database, and destroy the + * notmuch_directory_t object. Assumes any child directories and files + * have been deleted by the caller. + * + * @since libnotmuch 4.3 (notmuch 0.21) + */ +notmuch_status_t +notmuch_directory_delete (notmuch_directory_t *directory); + /** * Destroy a notmuch_directory_t object. */