dbus-th-0.1.0.0: TemplateHaskell generator of DBus bindings

Safe HaskellNone

DBus.TH

Synopsis

Documentation

module Data.Int

module Data.Word

data Proxy

data Client

data Variant

Variants may contain any other built‐in D‐Bus value. Besides representing native VARIANT values, they allow type‐safe storage and deconstruction of heterogeneous collections.

connectSession :: IO Client

Connect to the bus specified in the environment variable DBUS_SESSION_BUS_ADDRESS, which must be set.

connectSystem :: IO Client

Connect to the bus specified in the environment variable DBUS_SYSTEM_BUS_ADDRESS, or to unix:path=/var/run/dbus/system_bus_socket if DBUS_SYSTEM_BUS_ADDRESS is not set.

data Signature Source

Function signature

Constructors

Return Name 
Name :-> Signature 

data Function Source

Function with DBus name and Haskell name

Constructors

Function 

Fields

fnName :: String

Function name to use in Haskell

fnDBusName :: String

Function name to use in DBus

fnSignature :: Signature

Function signature

(=::) :: String -> Signature -> FunctionSource

Create a Function from it's name and Signature. Sets fnDBusName == fnName.

as :: Function -> String -> FunctionSource

Set specific Haskell name for Function.

interfaceSource

Arguments

:: String

Interface name

-> Maybe String

Prefix

-> [Function]

List of functions

-> Q [Dec] 

Generate bindings for methods in specific DBus interface. If second argument is (Just prefix), then prefix will be added to the beginning of all DBus names and removed from all Haskell names.