| Safe Haskell | Safe-Infered |
|---|
Ganeti.Curl.Internal
Description
Hsc2hs definitions for Storable interfaces.
- data CurlMsgCode
- = CurlMsgNone
- | CurlMsgDone
- | CurlMsgUnknown CInt
- data CurlMsg = CurlMsg {
- cmMessage :: CurlMsgCode
- cmHandle :: CurlH
- cmResult :: CurlCode
- errorBufferSize :: Int
- data CurlMCode
- toMsgCode :: CInt -> CurlMsgCode
- fromMsgCode :: CurlMsgCode -> CInt
- toMCode :: CInt -> CurlMCode
Documentation
data CurlMsgCode Source
Data representing a CURLMSG enum.
Constructors
| CurlMsgNone | |
| CurlMsgDone | |
| CurlMsgUnknown CInt | Haskell specific code for unknown codes |
Instances
| Eq CurlMsgCode | |
| Show CurlMsgCode |
Data representing a struct CURLMsg.
Constructors
| CurlMsg | |
Fields
| |
errorBufferSize :: IntSource
Minimum buffer size for CurlErrorBuffer.
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) |
toMsgCode :: CInt -> CurlMsgCodeSource
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 -> CIntSource
Convert a CurlMsgCode to a CInt.
toMCode :: CInt -> CurlMCodeSource
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.