summaryrefslogtreecommitdiffstats
path: root/gdbus
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-06 15:45:28 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-06 15:45:28 +0100
commit9fb751d2128e128fe1f321f2cc2e018000a542f6 (patch)
tree2642d397ea7f4ba50cf7fa4e1879137ddf3c745a /gdbus
parentbe0ba88ce4a4c37821f1ffa46ff6411d278297c1 (diff)
Add missing gdbus function declarations
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/gdbus.h9
-rw-r--r--gdbus/mainloop.c6
-rw-r--r--gdbus/watch.c7
3 files changed, 22 insertions, 0 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index 5ee5c1ad..e0d653a5 100644
--- a/gdbus/gdbus.h
+++ b/gdbus/gdbus.h
@@ -34,9 +34,15 @@ extern "C" {
typedef void (* GDBusWatchFunction) (DBusConnection *connection,
void *user_data);
+typedef gboolean (* GDBusSignalFunction) (DBusConnection *connection,
+ DBusMessage *message, void *user_data);
+
DBusConnection *g_dbus_setup_bus(DBusBusType type, const char *name,
DBusError *error);
+gboolean g_dbus_request_name(DBusConnection *connection, const char *name,
+ DBusError *error);
+
gboolean g_dbus_check_service(DBusConnection *connection, const char *name);
gboolean g_dbus_set_disconnect_function(DBusConnection *connection,
@@ -120,6 +126,9 @@ guint g_dbus_add_service_watch(DBusConnection *connection, const char *name,
guint g_dbus_add_disconnect_watch(DBusConnection *connection, const char *name,
GDBusWatchFunction function,
void *user_data, GDBusDestroyFunction destroy);
+guint g_dbus_add_signal_watch(DBusConnection *connection,
+ const char *rule, GDBusSignalFunction function,
+ void *user_data, GDBusDestroyFunction destroy);
gboolean g_dbus_remove_watch(DBusConnection *connection, guint tag);
void g_dbus_remove_all_watches(DBusConnection *connection);
diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c
index 2e9948df..9e493268 100644
--- a/gdbus/mainloop.c
+++ b/gdbus/mainloop.c
@@ -275,6 +275,12 @@ DBusConnection *g_dbus_setup_bus(DBusBusType type, const char *name,
return conn;
}
+gboolean g_dbus_request_name(DBusConnection *connection, const char *name,
+ DBusError *error)
+{
+ return TRUE;
+}
+
gboolean g_dbus_check_service(DBusConnection *connection, const char *name)
{
DBusMessage *message, *reply;
diff --git a/gdbus/watch.c b/gdbus/watch.c
index 857d8d71..ec3be640 100644
--- a/gdbus/watch.c
+++ b/gdbus/watch.c
@@ -311,6 +311,13 @@ guint g_dbus_add_disconnect_watch(DBusConnection *connection, const char *name,
user_data, destroy);
}
+guint g_dbus_add_signal_watch(DBusConnection *connection,
+ const char *rule, GDBusSignalFunction function,
+ void *user_data, GDBusDestroyFunction destroy)
+{
+ return 0;
+}
+
gboolean g_dbus_remove_watch(DBusConnection *connection, guint id)
{
struct name_data *data;