]> gitweb @ CieloNegro.org - bindings-apr-util.git/commitdiff
Bindings.APR.UUID
authorPHO <pho@cielonegro.org>
Wed, 6 Oct 2010 16:01:54 +0000 (01:01 +0900)
committerPHO <pho@cielonegro.org>
Wed, 6 Oct 2010 16:01:54 +0000 (01:01 +0900)
Bindings/APR/UUID.hsc [new file with mode: 0644]
bindings-apr-util.cabal

diff --git a/Bindings/APR/UUID.hsc b/Bindings/APR/UUID.hsc
new file mode 100644 (file)
index 0000000..41208a8
--- /dev/null
@@ -0,0 +1,16 @@
+#include <bindings.dsl.h>
+#include <apr_uuid.h>
+
+module Bindings.APR.UUID where
+#strict_import
+import Bindings.APR.ErrNo
+
+#starttype apr_uuid_t
+#  array_field data, CUChar
+#stoptype
+
+#num APR_UUID_FORMATTED_LENGTH
+
+#ccall apr_uuid_get   , Ptr <apr_uuid_t> -> IO ()
+#ccall apr_uuid_format, Ptr CChar -> Ptr <apr_uuid_t> -> IO ()
+#ccall apr_uuid_parse , Ptr <apr_uuid_t> -> Ptr CChar -> IO <apr_status_t>
index 08809f3ffede85829b182159d24d46671a69286d..a78f1ac59c3af61c9479efc5c136389188238a45 100644 (file)
@@ -53,6 +53,7 @@ Library
         Bindings.APR.StrMatch
         Bindings.APR.Thread.Pool
         Bindings.APR.URI
+        Bindings.APR.UUID
         Bindings.APR.XLate
 
     C-Sources: