aboutsummaryrefslogtreecommitdiffstats
path: root/src/extra-stati.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-02-03 19:49:41 +0000
committerWerner Koch <[email protected]>2011-02-03 19:49:41 +0000
commit55ad4d80e278e56bd5bc4fbac837db34edd70bde (patch)
treea19adba91d8e04ff97447fac84decd4f8bdb48d6 /src/extra-stati.h
parentTypo fixes spotted by Daiki Ueno. (diff)
downloadgpgme-55ad4d80e278e56bd5bc4fbac837db34edd70bde.tar.gz
gpgme-55ad4d80e278e56bd5bc4fbac837db34edd70bde.zip
Add support for non-API GnuPG status codes.
As an example stub code for DECRYTPION_INFO has been added. Note that the status codes in gpgme.h do only make sense for the edit interactor interface and thus certain codes don't need to be part of the public interface.
Diffstat (limited to 'src/extra-stati.h')
-rw-r--r--src/extra-stati.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/extra-stati.h b/src/extra-stati.h
new file mode 100644
index 00000000..59cccf98
--- /dev/null
+++ b/src/extra-stati.h
@@ -0,0 +1,29 @@
+/* extra-stati.lst - Extra GnuPG status codes.
+ Copyright 2011 g10 Code GmbH
+
+ This file is free software; as a special exception the author gives
+ unlimited permission to copy and/or distribute it, with or without
+ modifications, as long as this notice is preserved.
+
+ This file is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY, to the extent permitted by law; without even
+ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE. */
+
+/* A list of internal status code to be processed by mkstatus. Those
+ * status codes are not part of the API but internally required by
+ * gpgme. We use a second enum type here but make sure that the
+ * values don't clash with those of gpgme_status_code_t.
+ */
+
+enum
+ {
+ /* This value is the first used one. It needs to be larger than
+ the last value of gpgme_status_code_t. There is no need to
+ explictly list the values because they are internal only. */
+ _GPGME_STATUS_FIRST_EXTRA = 192,
+
+ GPGME_STATUS_DECRYPTION_INFO,
+
+ _GPGME_STATUS_LAST_EXTRA
+ };