aboutsummaryrefslogtreecommitdiffstats
path: root/src/context.h
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/context.h
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 '')
-rw-r--r--src/context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/context.h b/src/context.h
index 6818e7e4..6ab0154a 100644
--- a/src/context.h
+++ b/src/context.h
@@ -89,6 +89,9 @@ struct gpgme_context
/* The running engine process. */
engine_t engine;
+ /* Engine's sub protocol. */
+ gpgme_protocol_t sub_protocol;
+
/* True if armor mode should be used. */
unsigned int use_armor : 1;