summaryrefslogtreecommitdiffstats
path: root/common/dbus-helper.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-05-07 10:52:10 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-05-07 10:52:10 +0000
commit55466e2f43cf52b563954a9c2d1a722f6c646f7c (patch)
tree28d0addef2787b7b467e4fe4606cf4217ca55775 /common/dbus-helper.h
parent9306a904c561b8d6552c0de2584ee875d2034751 (diff)
Implement generic signal sending function which also checks for signal interface, name and paramter type conformance
Diffstat (limited to 'common/dbus-helper.h')
-rw-r--r--common/dbus-helper.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/dbus-helper.h b/common/dbus-helper.h
index 49db1c58..4dd9d155 100644
--- a/common/dbus-helper.h
+++ b/common/dbus-helper.h
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
+#include <stdarg.h>
#define DBUS_TYPE_STRING_ARRAY_AS_STRING (DBUS_TYPE_ARRAY_AS_STRING DBUS_TYPE_STRING_AS_STRING)
#define DBUS_TYPE_BYTE_ARRAY_AS_STRING (DBUS_TYPE_ARRAY_AS_STRING DBUS_TYPE_BYTE_AS_STRING)
@@ -71,3 +72,13 @@ dbus_bool_t dbus_connection_unregister_interface(DBusConnection *connection,
void dbus_message_iter_append_dict_entry(DBusMessageIter *dict,
const char *key, int type, void *val);
+dbus_bool_t dbus_connection_emit_signal(DBusConnection *conn, const char *path,
+ const char *interface, const char *name,
+ int first, ...);
+
+dbus_bool_t dbus_connection_emit_signal_valist(DBusConnection *conn,
+ const char *path,
+ const char *interface,
+ const char *name,
+ int first,
+ va_list var_args);