ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ganeti.Curl.Internal

Description

Hsc2hs definitions for Storable interfaces.

Synopsis

Documentation

data CurlMsgCode #

Data representing a CURLMSG enum.

Constructors

CurlMsgNone 
CurlMsgDone 
CurlMsgUnknown CInt

Haskell specific code for unknown codes

Instances

Instances details
Show CurlMsgCode # 
Instance details

Defined in Ganeti.Curl.Internal

Methods

showsPrec :: Int -> CurlMsgCode -> ShowS

show :: CurlMsgCode -> String

showList :: [CurlMsgCode] -> ShowS

Eq CurlMsgCode # 
Instance details

Defined in Ganeti.Curl.Internal

Methods

(==) :: CurlMsgCode -> CurlMsgCode -> Bool

(/=) :: CurlMsgCode -> CurlMsgCode -> Bool

toMsgCode :: CInt -> CurlMsgCode #

Convert a CInt CURLMSG code (as returned by the C library) to a CurlMsgCode. When an unknown code is received, the special CurlMsgUnknown constructor will be used.

fromMsgCode :: CurlMsgCode -> CInt #

Convert a CurlMsgCode to a CInt.

data CurlMsg #

Data representing a struct CURLMsg.

Constructors

CurlMsg 

Fields

Instances

Instances details
Storable CurlMsg #

Partial Storable instance for CurlMsg; we do not extract all fields, only the one we are interested in.

Instance details

Defined in Ganeti.Curl.Internal

Methods

sizeOf :: CurlMsg -> Int

alignment :: CurlMsg -> Int

peekElemOff :: Ptr CurlMsg -> Int -> IO CurlMsg

pokeElemOff :: Ptr CurlMsg -> Int -> CurlMsg -> IO ()

peekByteOff :: Ptr b -> Int -> IO CurlMsg

pokeByteOff :: Ptr b -> Int -> CurlMsg -> IO ()

peek :: Ptr CurlMsg -> IO CurlMsg

poke :: Ptr CurlMsg -> CurlMsg -> IO ()

errorBufferSize :: Int #

Minimum buffer size for CurlErrorBuffer.

data CurlMCode #

Multi interface error codes.

Constructors

CurlmCallMultiPerform 
CurlmOK 
CurlmBadHandle 
CurlmBadEasyHandle 
CurlmOutOfMemory 
CurlmInternalError 
CurlmBadSocket 
CurlmUnknownOption 
CurlmUnknown CInt

Haskell specific code denoting undefined codes (e.g. when libcurl has defined new codes that are not implemented yet)

Instances

Instances details
Show CurlMCode # 
Instance details

Defined in Ganeti.Curl.Internal

Methods

showsPrec :: Int -> CurlMCode -> ShowS

show :: CurlMCode -> String

showList :: [CurlMCode] -> ShowS

Eq CurlMCode # 
Instance details

Defined in Ganeti.Curl.Internal

Methods

(==) :: CurlMCode -> CurlMCode -> Bool

(/=) :: CurlMCode -> CurlMCode -> Bool

toMCode :: CInt -> CurlMCode #

Convert a CInt CURLMcode (as returned by the C library) to a CurlMCode. When an unknown code is received, the special CurlmUnknown constructor will be used.