Org freedesktop DBus.

From Openmoko

(Difference between revisions)
Jump to: navigation, search
 
Line 107: Line 107:
 
</pre>
 
</pre>
  
[[Category:Application Developer]]
+
[[Category:D-Bus]]

Latest revision as of 23:32, 31 July 2008

[edit] Overview

Bus name: org.freedesktop.DBus
Object name: /
  interface org.freedesktop.DBus.Introspectable
    (data:s) Introspect()
  interface org.freedesktop.DBus
    (arg3:u) RequestName(arg1:s,arg2:u)
    (arg2:u) ReleaseName(arg1:s)
    (arg3:u) StartServiceByName(arg1:s,arg2:u)
    (arg1:s) Hello()
    (arg2:b) NameHasOwner(arg1:s)
    (arg1:as) ListNames()
    (arg1:as) ListActivatableNames()
    () AddMatch(arg1:s)
    () RemoveMatch(arg1:s)
    (arg2:s) GetNameOwner(arg1:s)
    (arg2:as) ListQueuedOwners(arg1:s)
    (arg2:u) GetConnectionUnixUser(arg1:s)
    (arg2:u) GetConnectionUnixProcessID(arg1:s)
    (arg2:ay) GetConnectionSELinuxSecurityContext(arg1:s)
    () ReloadConfig()
    NameOwnerChanged(arg1:s,arg2:s,arg3:s)
    NameLost(arg1:s)
    NameAcquired(arg1:s)

[edit] Introspect XML

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
  <interface name="org.freedesktop.DBus.Introspectable">
    <method name="Introspect">
      <arg name="data" direction="out" type="s"/>
    </method>
  </interface>
  <interface name="org.freedesktop.DBus">
    <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="Hello">
      <arg direction="out" type="s"/>
    </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="GetConnectionSELinuxSecurityContext">
      <arg direction="in" type="s"/>
      <arg direction="out" type="ay"/>
    </method>
    <method name="ReloadConfig">
    </method>
    <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>
</node>
Personal tools

Overview

Bus name: org.freedesktop.DBus
Object name: /
  interface org.freedesktop.DBus.Introspectable
    (data:s) Introspect()
  interface org.freedesktop.DBus
    (arg3:u) RequestName(arg1:s,arg2:u)
    (arg2:u) ReleaseName(arg1:s)
    (arg3:u) StartServiceByName(arg1:s,arg2:u)
    (arg1:s) Hello()
    (arg2:b) NameHasOwner(arg1:s)
    (arg1:as) ListNames()
    (arg1:as) ListActivatableNames()
    () AddMatch(arg1:s)
    () RemoveMatch(arg1:s)
    (arg2:s) GetNameOwner(arg1:s)
    (arg2:as) ListQueuedOwners(arg1:s)
    (arg2:u) GetConnectionUnixUser(arg1:s)
    (arg2:u) GetConnectionUnixProcessID(arg1:s)
    (arg2:ay) GetConnectionSELinuxSecurityContext(arg1:s)
    () ReloadConfig()
    NameOwnerChanged(arg1:s,arg2:s,arg3:s)
    NameLost(arg1:s)
    NameAcquired(arg1:s)

Introspect XML

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
  <interface name="org.freedesktop.DBus.Introspectable">
    <method name="Introspect">
      <arg name="data" direction="out" type="s"/>
    </method>
  </interface>
  <interface name="org.freedesktop.DBus">
    <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="Hello">
      <arg direction="out" type="s"/>
    </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="GetConnectionSELinuxSecurityContext">
      <arg direction="in" type="s"/>
      <arg direction="out" type="ay"/>
    </method>
    <method name="ReloadConfig">
    </method>
    <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>
</node>