summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-05-27 07:06:07 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-05-27 07:06:07 +0000
commit5567809ce0381ebfc22d77e5df31624d23c591dc (patch)
tree3bc2537c203bfbc25089ce62a6921ca1cb1f4f27 /gdbus
parent9e9f9adde3085582f81da3b681e6fe5bb62679d3 (diff)
downloadbluez-5567809ce0381ebfc22d77e5df31624d23c591dc.tar.gz
Add prototypes for interface registration
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/gdbus.h12
-rw-r--r--gdbus/object.c17
2 files changed, 29 insertions, 0 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index 48f7fceb3..f5087b15c 100644
--- a/gdbus/gdbus.h
+++ b/gdbus/gdbus.h
@@ -122,6 +122,8 @@ static inline DBusHandlerResult send_message_and_unref(DBusConnection *conn,
return DBUS_HANDLER_RESULT_HANDLED;
}
+typedef void (* GDBusDestroyFunction) (void *user_data);
+
typedef DBusMessage * (* GDBusMethodFunction) (DBusConnection *connection,
DBusMessage *message, void *user_data);
@@ -159,6 +161,16 @@ typedef struct {
GDBusPropertyFlags flags;
} GDBusPropertyTable;
+gboolean g_dbus_register_interface(DBusConnection *connection,
+ const char *path, const char *name,
+ GDBusMethodTable *methods,
+ GDBusSignalTable *signals,
+ GDBusPropertyTable *properties,
+ void *user_data,
+ GDBusDestroyFunction destroy);
+gboolean g_dbus_unregister_interface(DBusConnection *connection,
+ const char *path, const char *name);
+
typedef void (*name_cb_t)(const char *name, void *user_data);
guint name_listener_add(DBusConnection *connection, const char *name,
diff --git a/gdbus/object.c b/gdbus/object.c
index 12ba66a9e..738a63852 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -658,3 +658,20 @@ fail:
dbus_message_unref(signal);
return ret;
}
+
+gboolean g_dbus_register_interface(DBusConnection *connection,
+ const char *path, const char *name,
+ GDBusMethodTable *methods,
+ GDBusSignalTable *signals,
+ GDBusPropertyTable *properties,
+ void *user_data,
+ GDBusDestroyFunction destroy)
+{
+ return FALSE;
+}
+
+gboolean g_dbus_unregister_interface(DBusConnection *connection,
+ const char *path, const char *name)
+{
+ return FALSE;
+}