diff options
| author | Marcus Brinkmann <[email protected]> | 2009-06-15 17:05:47 +0000 | 
|---|---|---|
| committer | Marcus Brinkmann <[email protected]> | 2009-06-15 17:05:47 +0000 | 
| commit | 59eecf421e42cb929794f31e6387dbfb5b6a543b (patch) | |
| tree | 6cd59c2639f6a81fb1a998b871b571a21e23fc27 /src/context.h | |
| parent | Improved W32 SetForegroundWindow hacks. (diff) | |
| download | gpgme-59eecf421e42cb929794f31e6387dbfb5b6a543b.tar.gz gpgme-59eecf421e42cb929794f31e6387dbfb5b6a543b.zip | |
2009-06-15  Marcus Brinkmann  <[email protected]>
	* 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.
Diffstat (limited to '')
| -rw-r--r-- | src/context.h | 5 | 
1 files changed, 4 insertions, 1 deletions
| 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; | 
