summaryrefslogtreecommitdiff
path: root/lib/gnutls_str.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-12-06 17:14:22 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-12-06 17:14:22 +0000
commitb0d4b6150fac1f17c61058a19e86ccedc2ff87c2 (patch)
tree4ec51caa2caf3ac4b876240d7e45c80863a483fe /lib/gnutls_str.h
parent84db053194b3e76290e75e6c4a268b2143774687 (diff)
downloadgnutls-b0d4b6150fac1f17c61058a19e86ccedc2ff87c2.tar.gz
Added the new functions gnutls_get_malloc_function(), gnutls_get_free_function(). Also changed the way callback functions must allocate data. They now need to use these functions, instead of just calling malloc().
Diffstat (limited to 'lib/gnutls_str.h')
-rw-r--r--lib/gnutls_str.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gnutls_str.h b/lib/gnutls_str.h
index de2f31c614..5b5c8f1039 100644
--- a/lib/gnutls_str.h
+++ b/lib/gnutls_str.h
@@ -11,12 +11,12 @@ typedef struct {
opaque * data;
size_t max_length;
size_t length;
- REALLOC_FUNC realloc_func;
- ALLOC_FUNC alloc_func;
- FREE_FUNC free_func;
+ gnutls_realloc_function realloc_func;
+ gnutls_alloc_function alloc_func;
+ gnutls_free_function free_func;
} gnutls_string;
-void _gnutls_string_init( gnutls_string*, ALLOC_FUNC, REALLOC_FUNC, FREE_FUNC);
+void _gnutls_string_init( gnutls_string*, gnutls_alloc_function, gnutls_realloc_function, gnutls_free_function);
void _gnutls_string_clear( gnutls_string*);
/* Beware, do not clear the string, after calling this