summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2013-02-09 22:15:53 +0100
committerSebastian Reichel <sre@ring0.de>2013-02-09 22:15:53 +0100
commite6468b3514d51256259cc20d2bea3bb4edb67ff5 (patch)
treec0f75ddc6d9f6818f36383992031369c1da0998c
parent5e0f885f9d0f48f5644810278b184e1999f21c99 (diff)
downloadserial-barcode-scanner-e6468b3514d51256259cc20d2bea3bb4edb67ff5.tar.bz2
vapi/gpgme: add support for ImportStatus
-rw-r--r--vapi/gpgme.vapi63
1 files changed, 60 insertions, 3 deletions
diff --git a/vapi/gpgme.vapi b/vapi/gpgme.vapi
index d8eaf46..7d1e30e 100644
--- a/vapi/gpgme.vapi
+++ b/vapi/gpgme.vapi
@@ -962,6 +962,63 @@ namespace GPG {
public KeylistResult op_keylist_result();
}
+ [Flags]
+ [CCode (cname="unsigned int")]
+ public enum ImportStatusFlags {
+ /**
+ * The key was new.
+ */
+ [CCode (cname = "GPGME_IMPORT_NEW")]
+ NEW,
+ /**
+ * The key contained new user IDs.
+ */
+ [CCode (cname = "GPGME_IMPORT_UID")]
+ UID,
+ /**
+ * The key contained new signatures.
+ */
+ [CCode (cname = "GPGME_IMPORT_SIG")]
+ SIG,
+ /**
+ * The key contained new sub keys.
+ */
+ [CCode (cname = "GPGME_IMPORT_SUBKEY")]
+ SUBKEY,
+ /**
+ * The key contained a secret key.
+ */
+ [CCode (cname = "GPGME_IMPORT_SECRET")]
+ SECRET
+ }
+
+ [Compact]
+ [CCode (cname = "struct _gpgme_import_status")]
+ public class ImportStatus {
+ /**
+ * This is a pointer to the next status structure in the linked list, or null
+ * if this is the last element.
+ */
+ public ImportStatus? next;
+
+ /**
+ * fingerprint of the key that was considered.
+ */
+ public string fpr;
+
+ /**
+ * If the import was not successful, this is the error value that caused the
+ * import to fail. Otherwise the error code is GPG_ERR_NO_ERROR.
+ */
+ public GPGError.ErrorCode result;
+
+ /**
+ * Flags what parts of the key have been imported. May be 0, if the key has
+ * already been known.
+ */
+ public ImportStatusFlags status;
+ }
+
[Compact]
[CCode (cname = "struct _gpgme_op_import_result")]
public class ImportResult {
@@ -1031,11 +1088,11 @@ namespace GPG {
public int not_imported;
/*
- * A list of gpgme import status t objects which
- * contain more information about the keys for
+ * A linked list of ImportStatus objects which
+ * contains more information about the keys for
* which an import was attempted.
- * gpgme_import_status_t imports
*/
+ public ImportStatus imports;
}
[Compact]