summaryrefslogtreecommitdiffstats
path: root/hcid/agent.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-06-05 11:50:35 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-06-05 11:50:35 +0000
commit94f7643c52193c905edaff767c2e9a31b9102a73 (patch)
treea180e64bba234feecf4496c5a7246dd35bbc264d /hcid/agent.c
parent41e8f6dc730096d303b71175adc508a66126ea06 (diff)
Add support for fetching IO capability from an agent
Diffstat (limited to 'hcid/agent.c')
-rw-r--r--hcid/agent.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hcid/agent.c b/hcid/agent.c
index 2335f09c..5706ea94 100644
--- a/hcid/agent.c
+++ b/hcid/agent.c
@@ -518,6 +518,11 @@ failed:
return -1;
}
+uint8_t agent_get_io_capability(struct agent *agent)
+{
+ return agent->capability;
+}
+
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))