aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/engine.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2006-12-17 16:40:09 +0000
committerMarcus Brinkmann <[email protected]>2006-12-17 16:40:09 +0000
commitf9bf0d5b796c779312102a48997988048ceb485d (patch)
tree96f4559b633ad3b49cd1adca1d22e69e3c276869 /gpgme/engine.h
parent2006-12-03 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-f9bf0d5b796c779312102a48997988048ceb485d.tar.gz
gpgme-f9bf0d5b796c779312102a48997988048ceb485d.zip
2006-12-17 Marcus Brinkmann <[email protected]>
* engine.h (_gpgme_engine_new): Remove arguments lc_ctype and lc_messages from prototype. (_gpgme_engine_set_locale): New prototype. * engine.c (_gpgme_engine_set_locale): New function. * op-support.c (_gpgme_op_reset): Call _gpgme_engine_set_locale. * engine-backend.h (struct engine_ops): Add new member SET_LOCALE. Remove arguments lc_messages and lc_ctype from member NEW. * engine-gpgsm.c (struct engine_gpgsm): New members lc_ctype_set and lc_messages_set. (gpgsm_new): Remove lc_messages and lc_ctype arguments. (gpgsm_set_locale): New function. (_gpgme_engine_ops_gpgsm): Add gpgsm_set_locale. * rungpg.c (struct engine_gpg): Add new members lc_messages and lc_ctype. (gpg_release): Release lc_messages and lc_ctype if set. (gpg_new): Remove lc_messages and lc_ctype arguments. (gpg_set_locale): New function. (_gpgme_engine_ops_gpg): Add gpg_set_locale. (add_arg): Implement in terms of: (add_arg_ext): New function. (start): Set lc-messages and lc-ctype arguments here.
Diffstat (limited to '')
-rw-r--r--gpgme/engine.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gpgme/engine.h b/gpgme/engine.h
index be9c9b73..893e5914 100644
--- a/gpgme/engine.h
+++ b/gpgme/engine.h
@@ -51,9 +51,11 @@ gpgme_error_t _gpgme_set_engine_info (gpgme_engine_info_t info,
gpgme_error_t _gpgme_engine_new (gpgme_engine_info_t info,
- engine_t *r_engine,
- const char *lc_ctype,
- const char *lc_messages);
+ engine_t *r_engine);
+
+gpgme_error_t _gpgme_engine_set_locale (engine_t engine, int category,
+ const char *value);
+
void _gpgme_engine_release (engine_t engine);
void _gpgme_engine_set_status_handler (engine_t engine,
engine_status_handler_t fnc,