aboutsummaryrefslogtreecommitdiffstats
path: root/src/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/context.h b/src/context.h
index 63af1d10..e98e7bea 100644
--- a/src/context.h
+++ b/src/context.h
@@ -42,8 +42,14 @@ typedef enum
} ctx_op_data_id_t;
+/* "gpgmeres" in ASCII. */
+#define CTX_OP_DATA_MAGIC 0x736572656d677067ULL
struct ctx_op_data
{
+ /* A magic word just to make sure people don't deallocate something
+ that ain't a result structure. */
+ unsigned long long magic;
+
/* The next element in the linked list, or NULL if this is the last
element. Used by op data structures linked into a context. */
struct ctx_op_data *next;