-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add generated client for org.freedesktop.DBus
- Loading branch information
1 parent
86a695d
commit 9e232c7
Showing
5 changed files
with
168 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
<node> | ||
<interface name="org.freedesktop.DBus"> | ||
<method name="Hello"> | ||
<arg direction="out" type="s"/> | ||
</method> | ||
<method name="RequestName"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="in" type="u"/> | ||
<arg direction="out" type="u"/> | ||
</method> | ||
<method name="ReleaseName"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="out" type="u"/> | ||
</method> | ||
<method name="StartServiceByName"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="in" type="u"/> | ||
<arg direction="out" type="u"/> | ||
</method> | ||
<method name="UpdateActivationEnvironment"> | ||
<arg direction="in" type="a{ss}"/> | ||
</method> | ||
<method name="NameHasOwner"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="out" type="b"/> | ||
</method> | ||
<method name="ListNames"> | ||
<arg direction="out" type="as"/> | ||
</method> | ||
<method name="ListActivatableNames"> | ||
<arg direction="out" type="as"/> | ||
</method> | ||
<method name="AddMatch"> | ||
<arg direction="in" type="s"/> | ||
</method> | ||
<method name="RemoveMatch"> | ||
<arg direction="in" type="s"/> | ||
</method> | ||
<method name="GetNameOwner"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="out" type="s"/> | ||
</method> | ||
<method name="ListQueuedOwners"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="out" type="as"/> | ||
</method> | ||
<method name="GetConnectionUnixUser"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="out" type="u"/> | ||
</method> | ||
<method name="GetConnectionUnixProcessID"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="out" type="u"/> | ||
</method> | ||
<method name="GetAdtAuditSessionData"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="out" type="ay"/> | ||
</method> | ||
<method name="GetConnectionSELinuxSecurityContext"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="out" type="ay"/> | ||
</method> | ||
<method name="ReloadConfig"> | ||
</method> | ||
<method name="GetId"> | ||
<arg direction="out" type="s"/> | ||
</method> | ||
<method name="GetConnectionCredentials"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="out" type="a{sv}"/> | ||
</method> | ||
<property name="Features" type="as" access="read"> | ||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/> | ||
</property> | ||
<property name="Interfaces" type="as" access="read"> | ||
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const"/> | ||
</property> | ||
<signal name="NameOwnerChanged"> | ||
<arg type="s"/> | ||
<arg type="s"/> | ||
<arg type="s"/> | ||
</signal> | ||
<signal name="NameLost"> | ||
<arg type="s"/> | ||
</signal> | ||
<signal name="NameAcquired"> | ||
<arg type="s"/> | ||
</signal> | ||
</interface> | ||
<interface name="org.freedesktop.DBus.Properties"> | ||
<method name="Get"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="in" type="s"/> | ||
<arg direction="out" type="v"/> | ||
</method> | ||
<method name="GetAll"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="out" type="a{sv}"/> | ||
</method> | ||
<method name="Set"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="in" type="s"/> | ||
<arg direction="in" type="v"/> | ||
</method> | ||
<signal name="PropertiesChanged"> | ||
<arg type="s" name="interface_name"/> | ||
<arg type="a{sv}" name="changed_properties"/> | ||
<arg type="as" name="invalidated_properties"/> | ||
</signal> | ||
</interface> | ||
<interface name="org.freedesktop.DBus.Introspectable"> | ||
<method name="Introspect"> | ||
<arg direction="out" type="s"/> | ||
</method> | ||
</interface> | ||
<interface name="org.freedesktop.DBus.Monitoring"> | ||
<method name="BecomeMonitor"> | ||
<arg direction="in" type="as"/> | ||
<arg direction="in" type="u"/> | ||
</method> | ||
</interface> | ||
<interface name="org.freedesktop.DBus.Debug.Stats"> | ||
<method name="GetStats"> | ||
<arg direction="out" type="a{sv}"/> | ||
</method> | ||
<method name="GetConnectionStats"> | ||
<arg direction="in" type="s"/> | ||
<arg direction="out" type="a{sv}"/> | ||
</method> | ||
<method name="GetAllMatchRules"> | ||
<arg direction="out" type="a{sas}"/> | ||
</method> | ||
</interface> | ||
<interface name="org.freedesktop.DBus.Peer"> | ||
<method name="GetMachineId"> | ||
<arg direction="out" type="s"/> | ||
</method> | ||
<method name="Ping"> | ||
</method> | ||
</interface> | ||
</node> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
{-# LANGUAGE TemplateHaskell #-} | ||
module DBus.TH where | ||
|
||
import DBus.Client | ||
import DBus.Generation | ||
import DBus.Client | ||
import DBus.Generation | ||
import qualified DBus.Introspection as I | ||
import System.FilePath | ||
|
||
|
||
generateSignalsFromInterface defaultGenerationParams $ | ||
buildIntrospectionInterface $ | ||
buildPropertiesInterface undefined | ||
|
||
generateFromFilePath defaultGenerationParams { genBusName = Just dbusName | ||
, genObjectPath = Just dbusPath | ||
} $ "idlxml" </> "dbus.xml" |