summaryrefslogtreecommitdiffstats
path: root/gdbus/gdbus.h
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/gdbus.h
parent9e9f9adde3085582f81da3b681e6fe5bb62679d3 (diff)
Add prototypes for interface registration
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r--gdbus/gdbus.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index 48f7fceb..f5087b15 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,