From e17ea9f35ae810afd33b332978d5882953696cfd Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Wed, 9 Apr 2008 21:48:30 +0000 Subject: Added new function for plugin authorization --- hcid/agent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hcid/agent.c') 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; } -- cgit