#include <bindings.dsl.h>
#include <apr_mmap.h>
+#include "bindings.apr.ring.h"
module Bindings.APR.MMap where
#strict_import
# field cntxt , Ptr <apr_pool_t>
# field mm , Ptr ()
# field size , <apr_size_t>
-# field link.next, Ptr <apr_mmap_t>
-# field link.prev, Ptr <apr_mmap_t>
+# apr_ring_entry_field link, <apr_mmap_t>
#stoptype
#if APR_HAS_MMAP
cbits/helper_apr_user.c
cbits/helper_apr_version.c
+ Include-Dirs:
+ include
+
+ Install-Includes:
+ include/bindings.apr.ring.h
+
Extensions:
ForeignFunctionInterface
--- /dev/null
+#ifndef __BINDINGS_APR_RING_H__
+#define __BINDINGS_APR_RING_H__
+
+#define hsc_apr_ring_entry_field(NAME, TYPE) \
+ hsc_field(NAME.next, Ptr TYPE) \
+ hsc_field(NAME.prev, Ptr TYPE)
+
+#define hsc_apr_ring_head_t(NAME, TYPE) \
+ hsc_starttype(NAME) \
+ hsc_field(next, Ptr TYPE) \
+ hsc_field(prev, Ptr TYPE) \
+ hsc_stoptype(dummy)
+
+#endif