HDBus: Haskell DBus bindingsContentsIndex
DBus.Connection
Contents
Connections
Synopsis
type Connection = ForeignPtr ConnectionTag
data BusType
= Session
| System
| Starter
busGet :: BusType -> IO Connection
send :: Connection -> Message -> Word32 -> IO Word32
sendWithReplyAndBlock :: Connection -> Message -> Int -> IO Message
flush :: Connection -> IO ()
close :: Connection -> IO ()
withConnection :: BusType -> (Connection -> IO a) -> IO a
data RequestNameReply
= PrimaryOwner
| InQueue
| Exists
| AlreadyOwner
busRequestName :: Connection -> String -> [Int] -> IO RequestNameReply
Connections
type Connection = ForeignPtr ConnectionTag
data BusType
Constructors
SessionThe login session bus.
SystemThe systemwide bus.
StarterThe bus that started us, if any.
busGet :: BusType -> IO Connection
Connect to a standard bus.
send
:: Connection
-> Message
-> Word32Serial.
-> IO Word32Returned serial.
Adds a Message to the outgoing message queue.
sendWithReplyAndBlock
:: Connection
-> Message
-> IntTimeout in milliseconds.
-> IO Message
flush :: Connection -> IO ()
Block until all pending messages have been sent.
close :: Connection -> IO ()
withConnection :: BusType -> (Connection -> IO a) -> IO a
Open a connection and run an IO action, ensuring it is properly closed when you're done.
data RequestNameReply
Constructors
PrimaryOwner
InQueue
Exists
AlreadyOwner
busRequestName :: Connection -> String -> [Int] -> IO RequestNameReply
Produced by Haddock version 0.7