{-# LINE 1 "Bindings/APR/XLate.hsc" #-}

{-# LINE 2 "Bindings/APR/XLate.hsc" #-}

{-# LINE 3 "Bindings/APR/XLate.hsc" #-}

module Bindings.APR.XLate where
import Foreign.Ptr (Ptr,FunPtr,plusPtr)
import Foreign.Ptr (wordPtrToPtr,castPtrToFunPtr)
import Foreign.Storable
import Foreign.C.Types
import Foreign.C.String (CString,CStringLen,CWString,CWStringLen)
import Foreign.Marshal.Alloc (alloca)
import Foreign.Marshal.Array (peekArray,pokeArray)
import Data.Int
import Data.Word

{-# LINE 6 "Bindings/APR/XLate.hsc" #-}
import Bindings.APR
import Bindings.APR.ErrNo
import Bindings.APR.Pools

data C'apr_xlate_t = C'apr_xlate_t

{-# LINE 11 "Bindings/APR/XLate.hsc" #-}

foreign import ccall "apr_xlate_open" c'apr_xlate_open
  :: Ptr (Ptr C'apr_xlate_t) -> Ptr CChar -> Ptr CChar -> Ptr C'apr_pool_t -> IO C'apr_status_t
foreign import ccall "&apr_xlate_open" p'apr_xlate_open
  :: FunPtr (Ptr (Ptr C'apr_xlate_t) -> Ptr CChar -> Ptr CChar -> Ptr C'apr_pool_t -> IO C'apr_status_t)

{-# LINE 13 "Bindings/APR/XLate.hsc" #-}

c'APR_DEFAULT_CHARSET = wordPtrToPtr 0
c'APR_DEFAULT_CHARSET :: Ptr a

{-# LINE 15 "Bindings/APR/XLate.hsc" #-}
c'APR_LOCALE_CHARSET = wordPtrToPtr 1
c'APR_LOCALE_CHARSET :: Ptr a

{-# LINE 16 "Bindings/APR/XLate.hsc" #-}

foreign import ccall "apr_xlate_sb_get" c'apr_xlate_sb_get
  :: Ptr C'apr_xlate_t -> Ptr CInt -> IO C'apr_status_t
foreign import ccall "&apr_xlate_sb_get" p'apr_xlate_sb_get
  :: FunPtr (Ptr C'apr_xlate_t -> Ptr CInt -> IO C'apr_status_t)

{-# LINE 18 "Bindings/APR/XLate.hsc" #-}
foreign import ccall "apr_xlate_conv_buffer" c'apr_xlate_conv_buffer
  :: Ptr C'apr_xlate_t -> Ptr CChar -> Ptr C'apr_size_t -> Ptr CChar -> Ptr C'apr_size_t -> IO C'apr_status_t
foreign import ccall "&apr_xlate_conv_buffer" p'apr_xlate_conv_buffer
  :: FunPtr (Ptr C'apr_xlate_t -> Ptr CChar -> Ptr C'apr_size_t -> Ptr CChar -> Ptr C'apr_size_t -> IO C'apr_status_t)

{-# LINE 19 "Bindings/APR/XLate.hsc" #-}


{-# LINE 23 "Bindings/APR/XLate.hsc" #-}

foreign import ccall "apr_xlate_conv_byte" c'apr_xlate_conv_byte
  :: Ptr C'apr_xlate_t -> CUChar -> IO C'apr_int32_t
foreign import ccall "&apr_xlate_conv_byte" p'apr_xlate_conv_byte
  :: FunPtr (Ptr C'apr_xlate_t -> CUChar -> IO C'apr_int32_t)

{-# LINE 25 "Bindings/APR/XLate.hsc" #-}
foreign import ccall "apr_xlate_close" c'apr_xlate_close
  :: Ptr C'apr_xlate_t -> IO C'apr_status_t
foreign import ccall "&apr_xlate_close" p'apr_xlate_close
  :: FunPtr (Ptr C'apr_xlate_t -> IO C'apr_status_t)

{-# LINE 26 "Bindings/APR/XLate.hsc" #-}