udbus-0.2.0: Small DBus implementation

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

Network.DBus

Contents

Description

 

Synopsis

handle connections to DBus

establishSource

Arguments

:: IO DBusContext

function to create a new dbus context (busGetSystem or busGetSession)

-> (DBusContext -> IO ())

function to authenticate to dbus

-> IO DBusConnection 

Establish a new connection to dbus, using the two functions to first establish a new context, and second to authenticate to the bus. this will automatically create a mainloop thread.

data DBusConnection Source

opaque type representing a connection to DBus and a receiving dispatcher thread. maintain table to route message between handlers.

Types

type Signature = [Type]Source

A list of signature element

type SignatureElem = TypeSource

Deprecated: use Type instead

newtype BusName Source

Constructors

BusName 

Fields

unBusName :: String
 

newtype Member Source

Constructors

Member 

Fields

unMember :: String
 

standard way to interact with dbus

main loop creation

interact with the connection

calltableFromList :: [(Member, Interface, a)] -> DispatchTable aSource

registerPath :: DBusConnection -> ObjectPath -> DispatchTable Callback -> IO ()Source

Deprecated: use registerCall

unregisterPath :: DBusConnection -> ObjectPath -> IO ()Source

Deprecated: use unregisterCall

registerCall :: DBusConnection -> ObjectPath -> DispatchTable Callback -> IO ()Source

registerSignal :: DBusConnection -> ObjectPath -> DispatchTable Signalback -> IO ()Source

create a new context on system or session bus

busGetSystem :: IO DBusContextSource

create a new DBus context on system bus

busGetSession :: IO DBusContextSource

create a new DBus context on session bus

authenticate methods available

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

authenticate to DBus using a raw bytestring.

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

authenticate to DBus using a UID.

authenticateWithRealUID :: DBusContext -> IO ()Source

use the real user UID to authenticate to DBus.