d-bus-0.0.1: Permissively licensed D-Bus client library

Safe HaskellNone

DBus.MainLoop

Synopsis

Documentation

objectRoot :: Object -> HandlerSource

Create a message handler that dispatches matches to the methods in a root object

checkAlive :: DBusConnection -> IO BoolSource

Check whether connection is alive

waitFor :: DBusConnection -> IO ()Source

Wait until connection is closed

data ConnectionType Source

Which Bus to connect to

Constructors

Session

The well-known system bus. First the environmental variable DBUS_SESSION_BUS_ADDRESS is checked and if it doesn't exist the address unix:path=\var/run/dbus/system_bus_socket/ is used

System

The well-known system bus. Refers to the address stored in the environmental variable DBUS_SESSION_BUS_ADDRESS

Address String

The bus at the give addresss

connectBusSource

Arguments

:: ConnectionType

Bus to connect to

-> MethodCallHandler

Handler for incoming method calls

-> SignalHandler

Handler for incoming signals

-> IO DBusConnection 

Create a new connection to a message bus