X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-client.h;h=e1efbe0c82520e1fc186c40f4a1eb3b9ef2634b3;hp=afb0ddf9b946d42952dbf0188a56ba389525adea;hb=3c13bc0321baaf340663779d6fce2b1f34c1c2c3;hpb=f735a85c28a3c6b6e38ecaba04029a917c6d6830 diff --git a/notmuch-client.h b/notmuch-client.h index afb0ddf9..e1efbe0c 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -138,10 +138,16 @@ chomp_newline (char *str) * this. New (required) map fields can be added without increasing * this. */ -#define NOTMUCH_FORMAT_CUR 1 +#define NOTMUCH_FORMAT_CUR 2 /* The minimum supported structured output format version. Requests * for format versions below this will return an error. */ #define NOTMUCH_FORMAT_MIN 1 +/* The minimum non-deprecated structured output format version. + * Requests for format versions below this will print a stern warning. + * Must be between NOTMUCH_FORMAT_MIN and NOTMUCH_FORMAT_CUR, + * inclusive. + */ +#define NOTMUCH_FORMAT_MIN_ACTIVE 1 /* The output format version requested by the caller on the command * line. If no format version is requested, this will be set to @@ -204,6 +210,9 @@ notmuch_tag_command (notmuch_config_t *config, int argc, char *argv[]); int notmuch_config_command (notmuch_config_t *config, int argc, char *argv[]); +int +notmuch_compact_command (notmuch_config_t *config, int argc, char *argv[]); + const char * notmuch_time_relative_date (const void *ctx, time_t then); @@ -432,5 +441,18 @@ mime_node_child (mime_node_t *parent, int child); mime_node_t * mime_node_seek_dfs (mime_node_t *node, int n); +typedef enum dump_formats { + DUMP_FORMAT_AUTO, + DUMP_FORMAT_BATCH_TAG, + DUMP_FORMAT_SUP +} dump_format_t; + +int +notmuch_database_dump (notmuch_database_t *notmuch, + const char *output_file_name, + const char *query_str, + dump_format_t output_format, + notmuch_bool_t gzip_output); + #include "command-line-arguments.h" #endif