udbus-0.2.1: Small DBus implementation

Portabilityunknown
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellNone

Network.DBus.Actions

Contents

Description

 

Synopsis

Documentation

authenticate :: DBusContext -> ByteString -> IO ()Source

authenticate to DBus using a raw bytestring.

authenticateUID :: DBusContext -> Int -> IO ()Source

authenticate to DBus using a UID.

connectSession :: IO HandleSource

connect to the dbus session bus define by the environment variable DBUS_SESSION_BUS_ADDRESS

connectSystem :: IO HandleSource

connect to the dbus system bus

contextNew :: Handle -> IO DBusContextSource

create a new DBus context from an handle

contextNewWith :: DBusTransport -> IO DBusContextSource

create a new DBus context from a transport

busGetSession :: IO DBusContextSource

create a new DBus context on session bus

busGetSystem :: IO DBusContextSource

create a new DBus context on system bus

busGetNextSerial :: DBusContext -> IO SerialSource

get the next serial usable, and increment the serial state.

busClose :: DBusContext -> IO ()Source

close this DBus context

messageSend :: DBusContext -> DBusMessage -> IO SerialSource

send one message to the bus note that the serial of the message sent is allocated here.

messageSendWithSerial :: DBusContext -> Serial -> DBusMessage -> IO ()Source

send one message to the bus with a predefined serial number.

messageRecv :: DBusContext -> IO DBusMessageSource

receive one single message from the bus it is not necessarily the reply from a previous sent message.

from Message module

data MessageFlag Source

dbus message flags

type Serial = Word32Source

dbus serial number

read a message body

readBody :: DBusMessage -> BodySource

read message's body using the signature field as reference

readBodyWith :: DBusMessage -> Signature -> BodySource

read message's body with a defined signature

from Signature module

type SignatureElem = TypeSource

Deprecated: use Type instead

type Signature = [Type]Source

A list of signature element

serializeSignature :: Signature -> ByteStringSource

serialize a signature

from Type module