X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Fbuilddeps%2Fdp.linux64%2Finclude%2Fd0_blind_id%2Fd0.h;fp=misc%2Fbuilddeps%2Fdp.linux64%2Finclude%2Fd0_blind_id%2Fd0.h;h=bde14876fd0fab8d2e789c4f564a1d17ab3a9c5b;hp=f6082d261f65b6a40606122f50c92b2d4f564a18;hb=7687bb2ce878c6514bf2950d5f971486dd146c7f;hpb=75598a3c77c88c8d6ec9d031bc2eb0eb8ef85d05 diff --git a/misc/builddeps/dp.linux64/include/d0_blind_id/d0.h b/misc/builddeps/dp.linux64/include/d0_blind_id/d0.h index f6082d26..bde14876 100644 --- a/misc/builddeps/dp.linux64/include/d0_blind_id/d0.h +++ b/misc/builddeps/dp.linux64/include/d0_blind_id/d0.h @@ -30,7 +30,7 @@ * SUCH DAMAGE. * * $Format:commit %H$ - * $Id: 9a7b912057b836675f4e24f08514cad53fa46d2a $ + * $Id: a6b551ba6968466f5bf1003bd1f000cd29beb698 $ */ #ifndef __D0_H__ @@ -42,8 +42,23 @@ #define D0_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #define D0_BOOL int -extern void *(*d0_malloc)(size_t len); -extern void (*d0_free)(void *p); +typedef void *(d0_malloc_t)(size_t len); +typedef void (d0_free_t)(void *p); +typedef void *(d0_createmutex_t)(void); +typedef void (d0_destroymutex_t)(void *); +typedef int (d0_lockmutex_t)(void *); // zero on success +typedef int (d0_unlockmutex_t)(void *); // zero on success + +extern d0_malloc_t *d0_malloc; +extern d0_free_t *d0_free; +extern d0_createmutex_t *d0_createmutex; +extern d0_destroymutex_t *d0_destroymutex; +extern d0_lockmutex_t *d0_lockmutex; +extern d0_unlockmutex_t *d0_unlockmutex; + +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; #endif