diff options
author | Marcus Brinkmann <[email protected]> | 2005-10-06 10:44:26 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2005-10-06 10:44:26 +0000 |
commit | a336bc6834099b62b17c6e772763328145537dc2 (patch) | |
tree | 62d95d4eb907caf187c7cb981adaed31d855e94d /doc/gpgme.texi | |
parent | Update some items. (diff) | |
download | gpgme-a336bc6834099b62b17c6e772763328145537dc2.tar.gz gpgme-a336bc6834099b62b17c6e772763328145537dc2.zip |
doc/
2005-10-06 Marcus Brinkmann <[email protected]>
* gpgme.texi (Destroying Data Buffers): Document gpgme_free.
gpgme/
2005-10-06 Marcus Brinkmann <[email protected]>
* gpgme.h (gpgme_free): New prototype.
* data-mem.c (gpgme_free): New function.
* libgpgme.vers (GPGME_1.1): Add gpgme_free.
* gpgme.def: Add gpgme_free.
Diffstat (limited to '')
-rw-r--r-- | doc/gpgme.texi | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/gpgme.texi b/doc/gpgme.texi index a44cc60f..fc3a0f38 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -1711,15 +1711,23 @@ The function @code{gpgme_data_release_and_get_mem} is like @code{gpgme_data_release}, except that it returns the data buffer and its length that was provided by the object. -The user has to release the buffer with @code{free}. In case the user -provided the data buffer in non-copy mode, a copy will be made for -this purpose. +The user has to release the buffer with @code{gpgme_free}. In case +the user provided the data buffer in non-copy mode, a copy will be +made for this purpose. In case an error returns, or there is no suitable data buffer that can be returned to the user, the function will return @code{NULL}. @end deftypefun +@deftypefun void gpgme_free (@w{void *@var{buffer}}) +The function @code{gpgme_free} releases the memory returned by +@code{gpgme_data_release_and_get_mem}. It should be used instead of +the system libraries @code{free} function in case different allocators +are used in a single program. +@end deftypefun + + @node Manipulating Data Buffers @section Manipulating Data Buffers @cindex data buffer, manipulation |