{-# LANGUAGE ForeignFunctionInterface #-}
module Torch.FFI.THC.Stream where
import Foreign
import Foreign.C.Types
import Data.Word
import Data.Int
import Torch.Types.TH
import Torch.Types.THC
foreign import ccall "THCStream.h THCStream_new"
c_THCStream_new :: CInt -> IO (Ptr C'THCStream)
foreign import ccall "THCStream.h THCStream_defaultStream"
c_THCStream_defaultStream :: CInt -> IO (Ptr C'THCStream)
foreign import ccall "THCStream.h THCStream_newWithPriority"
c_THCStream_newWithPriority :: CInt -> CInt -> IO (Ptr C'THCStream)
foreign import ccall "THCStream.h THCStream_free"
c_THCStream_free :: Ptr C'THCStream -> IO ()
foreign import ccall "THCStream.h THCStream_retain"
c_THCStream_retain :: Ptr C'THCStream -> IO ()
foreign import ccall "THCStream.h &THCStream_new"
p_THCStream_new :: FunPtr (CInt -> IO (Ptr C'THCStream))
foreign import ccall "THCStream.h &THCStream_defaultStream"
p_THCStream_defaultStream :: FunPtr (CInt -> IO (Ptr C'THCStream))
foreign import ccall "THCStream.h &THCStream_newWithPriority"
p_THCStream_newWithPriority :: FunPtr (CInt -> CInt -> IO (Ptr C'THCStream))
foreign import ccall "THCStream.h &THCStream_free"
p_THCStream_free :: FunPtr (Ptr C'THCStream -> IO ())
foreign import ccall "THCStream.h &THCStream_retain"
p_THCStream_retain :: FunPtr (Ptr C'THCStream -> IO ())