aboutsummaryrefslogtreecommitdiffstats
path: root/src/visibility.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-11-17 10:00:39 +0000
committerWerner Koch <[email protected]>2017-11-17 10:00:39 +0000
commit80c18e1b212cc91946864db7a53da50e9f91b861 (patch)
tree2a925cf0e741bee400c033b2f922f8f0d55412cf /src/visibility.c
parentcore: Add logging API. (diff)
downloadlibgpg-error-80c18e1b212cc91946864db7a53da50e9f91b861.tar.gz
libgpg-error-80c18e1b212cc91946864db7a53da50e9f91b861.zip
core: New API functions gpgrt_malloc, gpgrt_calloc, and gpgrt_realloc.
* src/visibility.c (gpgrt_realloc): New API function. (gpgrt_malloc): New API function. (gpgrt_calloc): New API function. * src/visibility.h: Add corresponding macros. * src/gpg-error.def.in: Add them. * src/gpg-error.vers: Add them. * src/init.c (_gpgrt_calloc): New. * src/gpg-error.h.in: Add prototypes. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/visibility.c')
-rw-r--r--src/visibility.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/visibility.c b/src/visibility.c
index 569c3e6..6172769 100644
--- a/src/visibility.c
+++ b/src/visibility.c
@@ -504,6 +504,24 @@ gpgrt_read_line (estream_t stream,
max_length);
}
+void *
+gpgrt_realloc (void *a, size_t n)
+{
+ return _gpgrt_realloc (a, n);
+}
+
+void *
+gpgrt_malloc (size_t n)
+{
+ return _gpgrt_malloc (n);
+}
+
+void *
+gpgrt_calloc (size_t n, size_t m)
+{
+ return _gpgrt_calloc (n, m);
+}
+
void
gpgrt_free (void *a)
{