2009-08-20 16:18:52 +02:00
|
|
|
--- awesome D-Bus API
|
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008-2009 Julien Danjou
|
2014-05-26 21:26:52 +02:00
|
|
|
-- @release @AWESOME_VERSION@
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @module dbus
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Register a D-Bus name to receive message from.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param bus A string indicating if we are using system or session bus.
|
|
|
|
-- @param name A string with the name of the D-Bus name to register.
|
|
|
|
-- @return True if everything worked fine, false otherwise.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function request_name
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Release a D-Bus name.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param bus A string indicating if we are using system or session bus.
|
|
|
|
-- @param name A string with the name of the D-Bus name to unregister.
|
|
|
|
-- @return True if everything worked fine, false otherwise.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function release_name
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Add a match rule to match messages going through the message bus.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param bus A string indicating if we are using system or session bus.
|
|
|
|
-- @param name A string with the name of the match rule.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function add_match
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Remove a previously added match rule "by value"
|
|
|
|
-- (the most recently-added identical rule gets removed).
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param bus A string indicating if we are using system or session bus.
|
|
|
|
-- @param name A string with the name of the match rule.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function remove_match
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Add a signal receiver on the D-Bus.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param interface A string with the interface name.
|
|
|
|
-- @param func The function to call.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function connect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
|
2009-12-01 10:01:50 +01:00
|
|
|
--- Remove a signal receiver on the D-Bus.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param interface A string with the interface name.
|
|
|
|
-- @param func The function to call.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function disconnect_signal
|
2015-01-02 20:07:22 +01:00
|
|
|
|
|
|
|
-- Emit a signal on the D-Bus.
|
|
|
|
-- @param bus A string indicating if we are using system or session bus.
|
|
|
|
-- @param path A string with the dbus path.
|
|
|
|
-- @param interface A string with the dbus interface.
|
|
|
|
-- @param method A string with the dbus method name.
|
|
|
|
-- @param type_1st_arg type of 1st argument
|
|
|
|
-- @param value_1st_arg value of 1st argument
|
|
|
|
-- @param type_2nd_arg type of 2nd argument
|
|
|
|
-- @param value_2nd_arg value of 2nd argument
|
|
|
|
-- ... etc
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function emit_signal
|