]> git.rm.cloudns.org Git - xonotic/d0_blind_id.git/commitdiff
export setmallocfuncs properly
authorRudolf Polzer <divverent@xonotic.org>
Tue, 25 Oct 2011 14:10:05 +0000 (16:10 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 25 Oct 2011 14:10:05 +0000 (16:10 +0200)
d0.h
d0_blind_id.c
d0_blind_id.h

diff --git a/d0.h b/d0.h
index 9ccf540e04b9abdb036f95b5f3bc0ae00b2d737d..a6b551ba6968466f5bf1003bd1f000cd29beb698 100644 (file)
--- a/d0.h
+++ b/d0.h
@@ -56,8 +56,8 @@ extern d0_destroymutex_t *d0_destroymutex;
 extern d0_lockmutex_t *d0_lockmutex;
 extern d0_unlockmutex_t *d0_unlockmutex;
 
-D0_EXPORT void d0_setmallocfuncs(d0_malloc_t *m, d0_free_t *f);
-D0_EXPORT void d0_setmutexfuncs(d0_createmutex_t *c, d0_destroymutex_t *d, d0_lockmutex_t *l, d0_unlockmutex_t *u);
+void d0_setmallocfuncs(d0_malloc_t *m, d0_free_t *f);
+void d0_setmutexfuncs(d0_createmutex_t *c, d0_destroymutex_t *d, d0_lockmutex_t *l, d0_unlockmutex_t *u);
 
 extern const char *d0_bsd_license_notice;
 
index 58cdd5ee1544079189430f45aa7dc3b86607dbdc..f33084cb912d77fe467da0dd7c9e979ae0c9d3b1 100644 (file)
@@ -1417,3 +1417,12 @@ void d0_blind_id_util_sha256(char *out, const char *in, size_t n)
        SHA256_Update(&context, (const unsigned char *) in, n);
        return SHA256_Final((unsigned char *) out, &context);
 }
+
+void d0_blind_id_setmallocfuncs(d0_malloc_t *m, d0_free_t *f)
+{
+       d0_setmallocfuncs(m, f);
+}
+void d0_blind_id_setmutexfuncs(d0_createmutex_t *c, d0_destroymutex_t *d, d0_lockmutex_t *l, d0_unlockmutex_t *u)
+{
+       d0_setmutexfuncs(c, d, l, u);
+}
index bea924581e2a7daf61a2fe20ab360ed1f05f5aaa..cbb0b2c932cb3a3c921ef6969522ba6250d54ece 100644 (file)
@@ -82,4 +82,8 @@ D0_EXPORT void d0_blind_id_SHUTDOWN(void);
 
 D0_EXPORT void d0_blind_id_util_sha256(char *out, const char *in, size_t n);
 
+// for exporting
+D0_EXPORT void d0_blind_id_setmallocfuncs(d0_malloc_t *m, d0_free_t *f);
+D0_EXPORT void d0_blind_id_setmutexfuncs(d0_createmutex_t *c, d0_destroymutex_t *d, d0_lockmutex_t *l, d0_unlockmutex_t *u);
+
 #endif