summaryrefslogtreecommitdiffstats
path: root/hcid/agent.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-04-09 21:48:30 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-04-09 21:48:30 +0000
commite17ea9f35ae810afd33b332978d5882953696cfd (patch)
tree6250fc0e87e017fa8846e54d9b0204a1f11f1b5f /hcid/agent.c
parenta1c12f0ffeeb1bd2ab9cb287ce4e16125492c521 (diff)
Added new function for plugin authorization
Diffstat (limited to 'hcid/agent.c')
-rw-r--r--hcid/agent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hcid/agent.c b/hcid/agent.c
index af350661..3b85ebd4 100644
--- a/hcid/agent.c
+++ b/hcid/agent.c
@@ -339,7 +339,7 @@ done:
}
int agent_authorize(struct agent *agent,
- struct device *device,
+ const char *path,
const char *uuid,
agent_cb cb,
void *user_data)
@@ -351,7 +351,7 @@ int agent_authorize(struct agent *agent,
req = agent_request_new(agent, AGENT_REQUEST_AUTHORIZE, cb, user_data);
- req->call = agent_call_authorize(agent, device->path, uuid);
+ req->call = agent_call_authorize(agent, path, uuid);
if (!req->call) {
agent_request_free(req);
return DBUS_HANDLER_RESULT_NEED_MEMORY;
@@ -360,7 +360,7 @@ int agent_authorize(struct agent *agent,
dbus_pending_call_set_notify(req->call, simple_agent_reply, req, NULL);
agent->request = req;
- debug("authorize request was sent for %s", device->path);
+ debug("authorize request was sent for %s", path);
return 0;
}