]> gitweb @ CieloNegro.org - bindings-apr.git/blobdiff - cbits/helper_apr_global_mutex.c
Better making function synonyms be macros than handmade synonyms.
[bindings-apr.git] / cbits / helper_apr_global_mutex.c
diff --git a/cbits/helper_apr_global_mutex.c b/cbits/helper_apr_global_mutex.c
new file mode 100644 (file)
index 0000000..833b330
--- /dev/null
@@ -0,0 +1,11 @@
+#include <bindings.cmacros.h>
+#include <apr_global_mutex.h>
+
+BC_INLINE4(apr_global_mutex_create    , apr_global_mutex_t**, const char*, apr_lockmech_e, apr_pool_t*, apr_status_t)
+BC_INLINE3(apr_global_mutex_child_init, apr_global_mutex_t**, const char*, apr_pool_t*, apr_status_t)
+BC_INLINE1(apr_global_mutex_lock      , apr_global_mutex_t*, apr_status_t)
+BC_INLINE1(apr_global_mutex_trylock   , apr_global_mutex_t*, apr_status_t)
+BC_INLINE1(apr_global_mutex_unlock    , apr_global_mutex_t*, apr_status_t)
+BC_INLINE1(apr_global_mutex_destroy   , apr_global_mutex_t*, apr_status_t)
+
+BC_INLINE1(apr_global_mutex_pool_get  , apr_global_mutex_t*, apr_pool_t*)