]> gitweb @ CieloNegro.org - bindings-apr-util.git/commitdiff
Bindings.APR.RMM
authorPHO <pho@cielonegro.org>
Tue, 21 Sep 2010 14:37:56 +0000 (23:37 +0900)
committerPHO <pho@cielonegro.org>
Tue, 21 Sep 2010 14:37:56 +0000 (23:37 +0900)
Bindings/APR/RMM.hsc [new file with mode: 0644]
bindings-apr-util.cabal

diff --git a/Bindings/APR/RMM.hsc b/Bindings/APR/RMM.hsc
new file mode 100644 (file)
index 0000000..7eb27c5
--- /dev/null
@@ -0,0 +1,24 @@
+#include <bindings.dsl.h>
+#include <apr_rmm.h>
+
+module Bindings.APR.RMM where
+#strict_import
+import Bindings.APR
+import Bindings.APR.AnyLock
+import Bindings.APR.ErrNo
+import Bindings.APR.Pools
+
+#opaque_t apr_rmm_t
+#integral_t apr_rmm_off_t
+
+#ccall apr_rmm_init    , Ptr (Ptr <apr_rmm_t>) -> Ptr <apr_anylock_t> -> Ptr () -> <apr_size_t> -> Ptr <apr_pool_t> -> IO <apr_status_t>
+#ccall apr_rmm_destroy , Ptr <apr_rmm_t> -> IO <apr_status_t>
+#ccall apr_rmm_attach  , Ptr (Ptr <apr_rmm_t>) -> Ptr <apr_anylock_t> -> Ptr () -> Ptr <apr_pool_t> -> IO <apr_status_t>
+#ccall apr_rmm_detach  , Ptr <apr_rmm_t> -> IO <apr_status_t>
+#ccall apr_rmm_malloc  , Ptr <apr_rmm_t> -> <apr_size_t> -> IO <apr_rmm_off_t>
+#ccall apr_rmm_realloc , Ptr <apr_rmm_t> -> Ptr () -> <apr_size_t> -> IO <apr_rmm_off_t>
+#ccall apr_rmm_calloc  , Ptr <apr_rmm_t> -> <apr_size_t> -> IO <apr_rmm_off_t>
+#ccall apr_rmm_free    , Ptr <apr_rmm_t> -> <apr_rmm_off_t> -> IO <apr_status_t>
+#ccall apr_rmm_addr_get, Ptr <apr_rmm_t> -> <apr_rmm_off_t> -> IO (Ptr ())
+#ccall apr_rmm_offset_get  , Ptr <apr_rmm_t> -> Ptr () -> IO <apr_rmm_off_t>
+#ccall apr_rmm_overhead_get, CInt -> IO <apr_size_t>
index 7fe6de370970290665366a9c0e170cd0ae7becff..afa79fcf46c29b6760c72285990998ee74374d1e 100644 (file)
@@ -46,6 +46,7 @@ Library
         Bindings.APR.MD5
         Bindings.APR.MemCache
         Bindings.APR.Queue
+        Bindings.APR.RMM
         Bindings.APR.ResList
         Bindings.APR.XLate