summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-manager.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2006-10-26 14:44:17 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2006-10-26 14:44:17 +0000
commitc8ddd523db6f67bb240946ff6cd466422ad87aed (patch)
treeb824d84060b8c7cb15495691965f307c178043ac /hcid/dbus-manager.c
parent061e326e1dfa990dabc3eb32c47c6c7ae08b47ac (diff)
Added Manager.GetInterfaceNames and changed service registration method prototype
Diffstat (limited to 'hcid/dbus-manager.c')
-rw-r--r--hcid/dbus-manager.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/hcid/dbus-manager.c b/hcid/dbus-manager.c
index 518a0d35..87799309 100644
--- a/hcid/dbus-manager.c
+++ b/hcid/dbus-manager.c
@@ -218,14 +218,16 @@ static DBusHandlerResult list_services(DBusConnection *conn,
static DBusHandlerResult register_service(DBusConnection *conn,
DBusMessage *msg, void *data)
{
+ const char *path, *name, *description;
DBusMessage *message;
- const char *path;
DBusError err;
int reg_err;
dbus_error_init(&err);
dbus_message_get_args(msg, &err,
DBUS_TYPE_STRING, &path,
+ DBUS_TYPE_STRING, &name,
+ DBUS_TYPE_STRING, &description,
DBUS_TYPE_INVALID);
if (dbus_error_is_set(&err)) {
@@ -235,7 +237,8 @@ static DBusHandlerResult register_service(DBusConnection *conn,
}
reg_err = register_service_agent(conn, dbus_message_get_sender(msg),
- path);
+ path, name, description);
+
if (reg_err < 0)
return error_failed(conn, msg, -reg_err);