From: PHO Date: Tue, 21 Sep 2010 14:31:07 +0000 (+0900) Subject: Bindings.APR.Queue X-Git-Tag: RELEASE-0.1~8 X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=b1aadff325debe370648cef68c45d898655f3855;p=bindings-apr-util.git Bindings.APR.Queue --- diff --git a/Bindings/APR/Queue.hsc b/Bindings/APR/Queue.hsc new file mode 100644 index 0000000..7be6737 --- /dev/null +++ b/Bindings/APR/Queue.hsc @@ -0,0 +1,19 @@ +#include +#include + +module Bindings.APR.Queue where +#strict_import +import Bindings.APR +import Bindings.APR.ErrNo +import Bindings.APR.Pools + +#opaque_t apr_queue_t + +#ccall apr_queue_create , Ptr (Ptr ) -> CUInt -> Ptr -> IO +#ccall apr_queue_push , Ptr -> Ptr () -> IO +#ccall apr_queue_pop , Ptr -> Ptr (Ptr ()) -> IO +#ccall apr_queue_trypush, Ptr -> Ptr () -> IO +#ccall apr_queue_trypop , Ptr -> Ptr (Ptr ()) -> IO +#ccall apr_queue_size , Ptr -> IO CUInt +#ccall apr_queue_interrupt_all, Ptr -> IO +#ccall apr_queue_term , Ptr -> IO diff --git a/bindings-apr-util.cabal b/bindings-apr-util.cabal index 6186431..7fe6de3 100644 --- a/bindings-apr-util.cabal +++ b/bindings-apr-util.cabal @@ -45,6 +45,7 @@ Library Bindings.APR.MD4 Bindings.APR.MD5 Bindings.APR.MemCache + Bindings.APR.Queue Bindings.APR.ResList Bindings.APR.XLate