Copyright | (c) Eric Mertens, 2016 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Marshaling types and functions for the C API
- data FgnExtension = FgnExtension {}
- type StartExtension = Ptr () -> CString -> IO (Ptr ())
- type StopExtension = Ptr () -> Ptr () -> IO ()
- type ProcessMessage = Ptr () -> Ptr () -> Ptr FgnMsg -> IO MessageResult
- type ProcessCommand = Ptr () -> Ptr () -> Ptr FgnCmd -> IO ()
- data FgnStringLen = FgnStringLen !CString !CSize
- data FgnMsg = FgnMsg {}
- data FgnCmd = FgnCmd {
- fcParams :: Ptr FgnStringLen
- fcParamN :: CSize
- type Dynamic a = FunPtr a -> a
- runStartExtension :: Dynamic StartExtension
- runStopExtension :: Dynamic StopExtension
- runProcessMessage :: Dynamic ProcessMessage
- runProcessCommand :: Dynamic ProcessCommand
- newtype MessageCode = MessageCode CInt
- normalMessage :: MessageCode
- errorMessage :: MessageCode
- newtype MessageResult = MessageResult CInt
- passMessage :: MessageResult
- dropMessage :: MessageResult
Extension record
data FgnExtension Source #
struct glirc_extension
FgnExtension | |
|
type StartExtension Source #
type ProcessMessage Source #
type ProcessCommand Source #
Strings
data FgnStringLen Source #
struct glirc_string
Messages
struct glirc_message
FgnMsg | |
|
Commands
struct glirc_command