diff options
author | David Bremner <david@tethera.net> | 2014-03-28 22:14:51 -0300 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-04-12 07:59:44 -0300 |
commit | 3c13bc0321baaf340663779d6fce2b1f34c1c2c3 (patch) | |
tree | 482e64a162df828622440c1818bf58624bff2435 /notmuch-client.h | |
parent | 69867c33fa946514e9de6efff0541762b2755484 (diff) |
dump: support gzipped and atomic output
The main goal is to support gzipped output for future internal
calls (e.g. from notmuch-new) to notmuch_database_dump.
The additional dependency is not very heavy since xapian already pulls
in zlib.
We want the dump to be "atomic", in the sense that after running the
dump file is either present and complete, or not present. This avoids
certain classes of mishaps involving overwriting a good backup with a
bad or partial one.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index d1106482..e1efbe0c 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -450,7 +450,9 @@ typedef enum dump_formats { int notmuch_database_dump (notmuch_database_t *notmuch, const char *output_file_name, - const char *query_str, dump_format_t output_format); + const char *query_str, + dump_format_t output_format, + notmuch_bool_t gzip_output); #include "command-line-arguments.h" #endif |