module Bindings.APR where
#strict_import
-{- I'm not sure if these are really useful... (PHO)
+{- I'm not sure if these are really helpful... (PHO)
-}
#num APR_HAS_INLINE
#num APR_UINT64_MAX
#num APR_SIZE_MAX
-#pointer APR_SSIZE_T_FMT
-#pointer APR_SIZE_T_FMT
-#pointer APR_OFF_T_FMT
-#pointer APR_PID_T_FMT
-#pointer APR_INT64_T_FMT
-#pointer APR_UINT64_T_FMT
-#pointer APR_UINT64_T_HEX_FMT
+#globalarray APR_SSIZE_T_FMT , CChar
+#globalarray APR_SIZE_T_FMT , CChar
+#globalarray APR_OFF_T_FMT , CChar
+#globalarray APR_PID_T_FMT , CChar
+#globalarray APR_INT64_T_FMT , CChar
+#globalarray APR_UINT64_T_FMT , CChar
+#globalarray APR_UINT64_T_HEX_FMT, CChar
#num APR_PROC_MUTEX_IS_GLOBAL
-#pointer APR_EOL_STR
+#globalarray APR_EOL_STR , CChar
#opaque_t apr_wait_t
#num APR_PATH_MAX
-#pointer APR_DSOPATH
+#globalarray APR_DSOPATH, CChar
#num APR_MAX_SECS_TO_LINGER
#num APRMAXHOSTLEN
-#pointer APR_ANYADDR
+#globalarray APR_ANYADDR, CChar
#num APR_SO_LINGER
#num APR_SO_KEEPALIVE
#globalvar apr_day_snames , Ptr (Ptr CChar)
#integral_t apr_time_t
-#pointer APR_TIME_T_FMT
+#globalarray APR_TIME_T_FMT, CChar
#integral_t apr_interval_time_t
#integral_t apr_short_interval_time_t
#cinline APR_VERSION_AT_LEAST, CInt -> CInt -> CInt -> IO CInt
-#pointer APR_IS_DEV_STRING
-#pointer APR_VERSION_STRING
+#globalarray APR_VERSION_STRING, CChar
#if !defined(APR_VERSION_ONLY)
Bindings.APR.Want
C-Sources:
+ cbits/helper_apr.c
cbits/helper_apr_errno.c
cbits/helper_apr_general.c
cbits/helper_apr_global_mutex.c
cbits/helper_apr_pools.c
cbits/helper_apr_lib.c
cbits/helper_apr_mmap.c
+ cbits/helper_apr_network_io.c
cbits/helper_apr_portable.c
cbits/helper_apr_signal.c
cbits/helper_apr_time.c
--- /dev/null
+#include <bindings.cmacros.h>
+#include <apr.h>
+
+BC_GLOBALARRAY(APR_SSIZE_T_FMT , char)
+BC_GLOBALARRAY(APR_SIZE_T_FMT , char)
+BC_GLOBALARRAY(APR_OFF_T_FMT , char)
+BC_GLOBALARRAY(APR_PID_T_FMT , char)
+BC_GLOBALARRAY(APR_INT64_T_FMT , char)
+BC_GLOBALARRAY(APR_UINT64_T_FMT , char)
+BC_GLOBALARRAY(APR_UINT64_T_HEX_FMT, char)
+
+BC_GLOBALARRAY(APR_EOL_STR , char)
+BC_GLOBALARRAY(APR_DSOPATH , char)
--- /dev/null
+#include <bindings.cmacros.h>
+#include <apr_network_io.h>
+
+BC_GLOBALARRAY(APR_ANYADDR, char)
#include <bindings.cmacros.h>
#include <apr_time.h>
+BC_GLOBALARRAY(APR_TIME_T_FMT, char)
+
BC_INLINE1(apr_time_sec , apr_time_t, apr_time_t)
BC_INLINE1(apr_time_usec, apr_time_t, apr_time_t)
BC_INLINE1(apr_time_msec, apr_time_t, apr_time_t)
#include <apr_version.h>
BC_INLINE3(APR_VERSION_AT_LEAST, int, int, int, int)
+
+BC_GLOBALARRAY(APR_VERSION_STRING, char)