summaryrefslogtreecommitdiffstats
path: root/hcid/agent.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-03-20 19:52:55 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-03-20 19:52:55 +0000
commitd5dd4c0246576a171b1067ae098bb751c4f261c6 (patch)
tree8f6d70dca11b949785c90a25d67317272068ad4e /hcid/agent.c
parent9f18f0a1905bc091f37999bf4cb418cdbcfaedb7 (diff)
Add adapter to agent_create.
Diffstat (limited to 'hcid/agent.c')
-rw-r--r--hcid/agent.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hcid/agent.c b/hcid/agent.c
index f7fdca1d..edd8cf05 100644
--- a/hcid/agent.c
+++ b/hcid/agent.c
@@ -150,14 +150,15 @@ static gboolean agent_timeout(struct agent *agent)
return FALSE;
}
-struct agent *agent_create(const char *name, const char *path,
- const char *address,
+struct agent *agent_create(struct adapter *adapter, const char *name,
+ const char *path, const char *address,
agent_remove_cb cb, void *remove_cb_data)
{
struct agent *agent;
agent = g_new0(struct agent, 1);
+ agent->adapter = adapter;
agent->name = g_strdup(name);
agent->path = g_strdup(path);
agent->remove_cb = cb;