diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-03-13 20:14:31 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-03-13 20:14:31 +0000 |
commit | 5a7676dd838717f9ce483af8e9be0acf80f2960c (patch) | |
tree | f994a0d8c15963adab9d9d141742c2eb520bef48 /hcid/passkey-agent.c | |
parent | 2da75e86f1cdb36eea83fc62f8cee58c22dc3a05 (diff) |
Fix the interface names for the passkey agent methods
Diffstat (limited to 'hcid/passkey-agent.c')
-rw-r--r-- | hcid/passkey-agent.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hcid/passkey-agent.c b/hcid/passkey-agent.c index b46ba96b..276cd546 100644 --- a/hcid/passkey-agent.c +++ b/hcid/passkey-agent.c @@ -139,10 +139,10 @@ static DBusHandlerResult release_message(DBusConnection *conn, static DBusHandlerResult agent_message(DBusConnection *conn, DBusMessage *msg, void *data) { - if (dbus_message_is_method_call(msg, INTERFACE, "Request")) + if (dbus_message_is_method_call(msg, "org.bluez.PasskeyAgent", "Request")) return request_message(conn, msg, data); - if (dbus_message_is_method_call(msg, INTERFACE, "Release")) + if (dbus_message_is_method_call(msg, "org.bluez.PasskeyAgent", "Release")) return release_message(conn, msg, data); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; @@ -198,8 +198,6 @@ static int register_agent(DBusConnection *conn, const char *agent_path, dbus_connection_flush(conn); - dbus_connection_unregister_object_path(conn, agent_path); - return 0; } @@ -244,6 +242,8 @@ static int unregister_agent(DBusConnection *conn, const char *agent_path, dbus_connection_flush(conn); + dbus_connection_unregister_object_path(conn, agent_path); + return 0; } |