X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-client.h;h=f7524e596c8dc16341c52733e61232b6f691d9e8;hp=d17cdf01567ac89c91a99a55c49cad8f11e5ec82;hb=5bdb8549f619bbcd9fcd6161749dabbb1710dab9;hpb=d0da7a0a1c24b937eb754e8f73e5cf7e3857f24a diff --git a/notmuch-client.h b/notmuch-client.h index d17cdf01..f7524e59 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -495,4 +495,18 @@ void notmuch_exit_if_unmatched_db_uuid (notmuch_database_t *notmuch); void notmuch_process_shared_options (const char* subcommand_name); int notmuch_minimal_options (const char* subcommand_name, int argc, char **argv); + + +/* the state chosen by the user invoking one of the notmuch + * subcommands that does indexing */ +struct _notmuch_client_indexing_cli_choices { + bool try_decrypt; + bool try_decrypt_set; + notmuch_indexopts_t * opts; +}; +extern struct _notmuch_client_indexing_cli_choices indexing_cli_choices; +extern const notmuch_opt_desc_t notmuch_shared_indexing_options []; +notmuch_status_t +notmuch_process_shared_indexing_options (notmuch_database_t *notmuch, notmuch_config_t *config); + #endif