aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h.in
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2009-11-10 14:49:35 +0000
committerMarcus Brinkmann <[email protected]>2009-11-10 14:49:35 +0000
commitcda07b9ab4f09ac87bc1aebbbe113f125eedeb02 (patch)
tree53b0a5bc6d03bbea4b0fce70ea3454777907ad4c /src/gpgme.h.in
parent2009-11-10 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-cda07b9ab4f09ac87bc1aebbbe113f125eedeb02.tar.gz
gpgme-cda07b9ab4f09ac87bc1aebbbe113f125eedeb02.zip
2009-11-10 Marcus Brinkmann <[email protected]>
* gpgme.h.in (gpgme_get_sub_protocol): Add prototype. * gpgme.def, libgpgme.vers: Add gpgme_get_sub_protocol. * context.h (struct gpgme_context): New member sub_protocol. * gpgme.c (gpgme_set_sub_protocol): Set CTX->sub_protocol. (gpgme_get_sub_protocol): New function. * op-support.c (_gpgme_op_reset): Set sub protocol.
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r--src/gpgme.h.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 2a3acd47..13a33992 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -810,8 +810,10 @@ gpgme_protocol_t gpgme_get_protocol (gpgme_ctx_t ctx);
prococol (for example, an UISERVER can support OpenPGP and CMS).
This is reset to the default with gpgme_set_protocol. */
gpgme_error_t gpgme_set_sub_protocol (gpgme_ctx_t ctx,
- gpgme_protocol_t proto);
+ gpgme_protocol_t proto);
+/* Get the sub protocol. */
+gpgme_protocol_t gpgme_get_sub_protocol (gpgme_ctx_t ctx);
/* Get the string describing protocol PROTO, or NULL if invalid. */
const char *gpgme_get_protocol_name (gpgme_protocol_t proto);