Home | History | Annotate | Download | only in doc

Lines Matching full:dbus

316         DBus identifies interfaces with a simple namespaced string,
328 represent a remote object in another process. The low-level DBus API involves manually creating
332 object, the binding converts it into a DBus method call message, waits for the reply
549 A method call in DBus consists of two messages; a method call message sent from process A to process B,
561 A method invocation in DBus happens as follows:
637 A signal in DBus consists of a single message, sent by one process to any number of other processes.
651 A signal in DBus happens as follows:
696 D-Bus objects may support the interface <literal>org.freedesktop.DBus.Introspectable</literal>.
711 <literal>&lt;dbus/dbus-glib.h&gt;</literal>.
1021 /* Create a proxy object for the "bus driver" (name "org.freedesktop.DBus") */
1066 is created for the object "/org/freedesktop/DBus" with
1067 interface <literal>org.freedesktop.DBus</literal>
1068 on the service <literal>org.freedesktop.DBus</literal>.
1319 can be automatically created to ease the use of a remote DBus object.
1340 Run <literal>dbus-binding-tool --mode=glib-client
1343 file. For example: <command>dbus-binding-tool --mode=glib-client
1383 <literal>org.freedesktop.DBus.GLib.NoReply</literal>, which sets the
1410 &lt;annotation name="org.freedesktop.DBus.GLib.CSymbol" value="my_object"/&gt;
1413 &lt;annotation name="org.freedesktop.DBus.GLib.CSymbol" value="my_object_many_args"/&gt;
1435 Once you have written this XML, run <literal>dbus-binding-tool --mode=glib-server <replaceable>FILENAME</replaceable> &gt; <replaceable>HEADER_NAME</replaceable>.</literal> to
1436 generate a header file. For example: <command>dbus-binding-tool --mode=glib-server my-object.xml &gt; my-object-glue.h</command>.
1501 <literal>org.freedesktop.DBus.GLib.CSymbol</literal> but there are other
1505 <term><literal>org.freedesktop.DBus.GLib.CSymbol</literal></term>
1510 name DBus generates.
1515 <term><literal>org.freedesktop.DBus.GLib.Async</literal></term>
1561 <term><literal>org.freedesktop.DBus.GLib.Const</literal></term>
1568 being freed by DBus after the message is sent.
1573 <term><literal>org.freedesktop.DBus.GLib.ReturnVal</literal></term>
1609 &lt;annotation name="org.freedesktop.DBus.GLib.ReturnVal" value=""/&gt;
1625 &lt;annotation name="org.freedesktop.DBus.GLib.ReturnVal" value="error"/&gt;
1674 <entry><literal>dbus.Byte</literal></entry>
1678 <entry><literal>dbus.Boolean</literal></entry>
1682 <entry><literal>dbus.Int16</literal></entry>
1686 <entry><literal>dbus.UInt16</literal></entry>
1690 <entry><literal>dbus.Int32</literal></entry>
1694 <entry><literal>dbus.UInt32</literal></entry>
1698 <entry><literal>dbus.Int64</literal></entry>
1702 <entry><literal>dbus.UInt64</literal></entry>
1706 <entry><literal>dbus.Double</literal></entry>
1710 <entry><literal>dbus.String</literal></entry>
1714 <entry><literal>dbus.ObjectPath</literal></entry>
1749 <entry><literal>dbus.Array</literal></entry>
1759 <programlisting>emptyint32array = dbus.Array([], type=dbus.Int32)</programlisting>
1763 <programlisting>emptyint32array = dbus.Array([], signature="i")</programlisting>
1765 Note that dbus.Array derives from list so it acts just like a python list.
1771 <entry><literal>dbus.Struct</literal></entry>
1778 <entry><literal>dbus.Dictionary</literal></entry>
1788 <programlisting>emptystringstringdict = dbus.Dictionary({}, key_type=dbus.String, value_type=dbus.Value)</programlisting>
1792 <programlisting>emptystringstringdict = dbus.Dictionary({}, signature="ss")</programlisting>
1794 Note that dbus.Dictionary derives from dict so it acts just like a python dictionary.
1800 <entry><literal>dbus.Variant</literal></entry>
1804 To send a variant you must first wrap it in a<literal>dbus.Variant</literal>. If no type or signiture is
1818 import dbus
1820 bus = dbus.SessionBus()
1821 proxy_obj = bus.bus.get_object('org.freedesktop.DBus', '/org/freedesktop/DBus')
1822 dbus_iface = dbus.Interface(proxy_obj, 'org.freedesktop.DBus')
1837 proxy_obj.ListNames(dbus_interface = 'org.freedesktop.DBus')
1849 import dbus
1850 if getattr(dbus, 'version', (0,0,0)) >= (0,41,0):
1851 import dbus.glib
1859 bus = dbus.SessionBus()
1860 proxy_obj = bus.bus.get_object('org.freedesktop.DBus', '/org/freedesktop/DBus')
1861 dbus_iface = dbus.Interface(proxy_obj, 'org.freedesktop.DBus')
1876 You will also notice that I check the version of the dbus bindings before importing dbus.glib. In older versions
1893 import dbus
1894 if getattr(dbus, 'version', (0,0,0)) >= (0,41,0):
1895 import dbus.glib
1906 bus = dbus.SystemBus()
1909 hal_manager = dbus.Interface(hal_manager_obj,
1961 'org.freedesktop.DBus',
1962 'org.freedesktop.DBus',
1963 '/org/freedesktop/DBus',
1998 <sect2 id="python-inheriting-from-dbus-object">
1999 <title>Inheriting From dbus.service.Object</title>
2002 a Python object that inherits from dbus.service.Object. The following is the start of an example
2006 import dbus
2007 import dbus.service
2008 if getattr(dbus, 'version', (0,0,0)) >= (0,41,0):
2009 import dbus.glib
2011 class HelloWorldObject(dbus.service.Object):
2013 dbus.service.Object.__init__(self, bus_name, object_path)
2015 session_bus = dbus.SessionBus()
2016 bus_name = dbus.service.BusName('org.freedesktop.HelloWorld', bus=session_bus)
2025 We pass that bus name to the HelloWorldObject object which inherits from dbus.service.Object.
2035 import dbus
2036 import dbus.service
2037 if getattr(dbus, 'version', (0,0,0)) >= (0,41,0):
2038 import dbus.glib
2040 class HelloWorldObject(dbus.service.Object):
2042 dbus.service.Object.__init__(self, bus_name, object_path)
2044 @dbus.service.method('org.freedesktop.HelloWorldIFace')
2048 session_bus = dbus.SessionBus()
2049 bus_name = dbus.service.BusName('org.freedesktop.HelloWorld', bus=session_bus)
2071 import dbus
2073 bus = dbus.SessionBus()
2075 iface = dbus.Interface(proxy_obj, 'org.freedesktop.HelloWorldIFace')
2085 @dbus.service.method('org.freedesktop.HelloWorldIFace')
2089 @dbus.service.method('org.freedesktop.HelloWorldIFace')
2093 @dbus.service.method('org.freedesktop.HelloWorldIFace')
2097 @dbus.service.method('org.freedesktop.HelloWorldIFace')
2109 import dbus
2110 import dbus.service
2111 if getattr(dbus, 'version', (0,0,0)) >= (0,41,0):
2112 import dbus.glib
2114 class HelloWorldObject(dbus.service.Object):
2116 dbus.service.Object.__init__(self, bus_name, object_path)
2118 @dbus.service.method('org.freedesktop.HelloWorldIFace')
2122 @dbus.service.signal('org.freedesktop.HelloWorldIFace')
2126 session_bus = dbus.SessionBus()
2127 bus_name = dbus.service.BusName('org.freedesktop.HelloWorld', bus=session_bus)
2137 Adding a @dbus.service.signal decorator to a method turns it into a signal emitter. You can put code
2148 the bindings to provide a default implementation for the org.freedesktop.DBus.Introspectable interface.
2155 @dbus.service.method('org.freedesktop.HelloWorldGoodbyeIFace')
2165 import dbus
2167 bus = dbus.SessionBus()
2183 feel free to post on the <ulink url="http://lists.freedesktop.org/mailman/listinfo/dbus/">mailing list</ulink>.