From 59eecf421e42cb929794f31e6387dbfb5b6a543b Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 15 Jun 2009 17:05:47 +0000 Subject: 2009-06-15 Marcus Brinkmann * gpgme.h.in (gpgme_result_ref, gpgme_result_unref): Add prototypes. * gpgme.def, libgpgme.vers (gpgme_result_ref, gpgme_result_unref): Add these. * context.h (struct ctx_op_data): Add member "references". * gpgme.c (gpgme_result_ref, gpgme_result_unref): New functions. (_gpgme_release_result): Use gpgme_result_unref. * op-support.c (_gpgme_op_data_lookup): Initialize references. --- src/context.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/context.h') diff --git a/src/context.h b/src/context.h index 472b8beb..63af1d10 100644 --- a/src/context.h +++ b/src/context.h @@ -45,7 +45,7 @@ typedef enum struct ctx_op_data { /* The next element in the linked list, or NULL if this is the last - element. */ + element. Used by op data structures linked into a context. */ struct ctx_op_data *next; /* The type of the hook data, which can be used by a routine to @@ -58,6 +58,9 @@ struct ctx_op_data /* The hook that points to the operation data. */ void *hook; + + /* The number of outstanding references. */ + int references; }; typedef struct ctx_op_data *ctx_op_data_t; -- cgit v1.2.3