summaryrefslogtreecommitdiff
path: root/src/agent.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-09-03 14:11:36 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-09-03 14:16:15 +0300
commit813b674bce1aab009e7f2d14d1825f603330563d (patch)
treecae198a1ee959b3cafd9f528e8c3ccacebbd77ae /src/agent.c
parentc7c092bca3f13348f2f92e72999ee585f98e7974 (diff)
downloadbluez-813b674bce1aab009e7f2d14d1825f603330563d.tar.gz
Add profile abstraction (replaces btd_device drivers)
This patch removes the btd_device_driver concept and replaces it with btd_profile. The new construct also contains the necessary parts for adapter drivers, so btd_adapter_driver is only needed for non-profile related functionality (most of which is in plugins/*). The main purpose of this new construct is to facilitate a centralized connection creation mechanism for profiles, ultimately enabling the addition of a Device.Connect() method instead of requiring a UI to know to call e.g. Input.Connect or Audio.Connect. This feature will also be extended to externally implemented profiles once the internal implementation gets more stable, such as OBEX (obexd) and HFP (oFono). The new D-Bus interface will also partially restore functionality which was previously available through the Serial interface.
Diffstat (limited to 'src/agent.c')
-rw-r--r--src/agent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/agent.c b/src/agent.c
index e54242592..b6ddd826d 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -29,6 +29,7 @@
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
+#include <stdbool.h>
#include <sys/socket.h>
#include <sys/ioctl.h>