]> gitweb @ CieloNegro.org - bindings-apr.git/blobdiff - include/bindings.apr.inherit.h
bindings.apr.inherit.h
[bindings-apr.git] / include / bindings.apr.inherit.h
diff --git a/include/bindings.apr.inherit.h b/include/bindings.apr.inherit.h
new file mode 100644 (file)
index 0000000..149be59
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef __BINDINGS_APR_INHERIT_H__
+#define __BINDINGS_APR_INHERIT_H__
+#include <bindings.dsl.h>
+
+#define hsc_apr_inherit_set(TYPE)                       \
+    hsc_ccall(                                          \
+        apr_ ## TYPE ## _inherit_set,                   \
+        Ptr <apr_ ## TYPE ## _t> -> IO <apr_status_t>)
+
+#define hsc_apr_inherit_unset(TYPE)                     \
+    hsc_ccall(                                          \
+        apr_ ## TYPE ## _inherit_unset,                 \
+        Ptr <apr_ ## TYPE ## _t> -> IO <apr_status_t>)
+
+#endif