From 55466e2f43cf52b563954a9c2d1a722f6c646f7c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 7 May 2007 10:52:10 +0000 Subject: Implement generic signal sending function which also checks for signal interface, name and paramter type conformance --- common/dbus-helper.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'common/dbus-helper.h') 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 #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); -- cgit