Stability | experimental |
---|
This module parses libevent http://monkey.org/~provos/libevent tagged data structures as implimented in libevent-1.4.0-beta. These data structures are described in a .rpc file.
- data RPCFile = RPCFile {
- rpcstructs :: [RPCStruct]
- data RPCStruct = RPCStruct {
- structname :: String
- structelems :: [RPCElem]
- data RPCElem = RPCElem {}
- data Presence
- data Type
- parseRPCFile :: FilePath -> IO (Either ParseError RPCFile)
- parseRPC :: String -> Either ParseError RPCFile
Data structures
This is a libevent .rpc file - just a list of the structures within
RPCFile | |
|
An RPC structure has a name and a list of elements
RPCStruct | |
|
An RPC element is a tagged member
Parsing functions
parseRPCFile :: FilePath -> IO (Either ParseError RPCFile)Source
Parse the given filename