diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-03-14 20:05:52 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-03-14 20:05:52 +0000 |
commit | fbf89763779b6ebad6ed956d8c81bfdeb8317122 (patch) | |
tree | 8d9718f48ab49180e7b6e0714144600e144c42cc /hcid/agent.c | |
parent | dc59cbaf3eab30d8962a5690810ac9453a7294db (diff) |
agent_release is already called through agent_free and doesn't need to be public
Diffstat (limited to 'hcid/agent.c')
-rw-r--r-- | hcid/agent.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/hcid/agent.c b/hcid/agent.c index 2dab62e5..e0111b0b 100644 --- a/hcid/agent.c +++ b/hcid/agent.c @@ -88,6 +88,24 @@ static DBusConnection *connection = NULL; static void send_cancel_request(struct agent_request *req); +static void agent_release(struct agent *agent) +{ + DBusMessage *message; + + debug("Releasing agent %s, %s", agent->name, agent->path); + + message = dbus_message_new_method_call(agent->name, agent->path, + "org.bluez.Agent", "Release"); + if (message == NULL) { + error("Couldn't allocate D-Bus message"); + return; + } + + dbus_message_set_no_reply(message, TRUE); + + send_message_and_unref(connection, message); +} + static void agent_free(struct agent *agent) { if (!agent) @@ -549,24 +567,6 @@ static void send_cancel_request(struct agent_request *req) agent_request_free(req); } -void agent_release(struct agent *agent) -{ - DBusMessage *message; - - debug("Releasing agent %s, %s", agent->name, agent->path); - - message = dbus_message_new_method_call(agent->name, agent->path, - "org.bluez.Agent", "Release"); - if (message == NULL) { - error("Couldn't allocate D-Bus message"); - return; - } - - dbus_message_set_no_reply(message, TRUE); - - send_message_and_unref(connection, message); -} - gboolean agent_matches(struct agent *agent, const char *name, const char *path) { if (g_str_equal(agent->name, name) && g_str_equal(agent->path, path)) |