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

Safe HaskellNone
LanguageHaskell2010

DBus.MainLoop

Synopsis

Documentation

objectRoot :: Objects -> Handler Source

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

checkAlive :: DBusConnection -> IO Bool Source

Check whether connection is alive

waitFor :: DBusConnection -> IO () Source

Wait until connection is closed

data ConnectionType Source

Which Bus to connect to

Constructors

System

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

Session

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

Address String

The bus at the give addresss

connectBus Source

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