summaryrefslogtreecommitdiff
path: root/src/profile.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-11-14 12:34:26 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-11-14 12:34:26 +0200
commit54c07e307016863a6d9c7b5a330cda78d108b32c (patch)
treeeb5f6038cae816ff49021a941facc504a89da4bd /src/profile.h
parent2d56d5e87b132b4f7ba33b87cebd1f0065e23325 (diff)
downloadbluez-54c07e307016863a6d9c7b5a330cda78d108b32c.tar.gz
core: Add connection priority to btd_profile
Diffstat (limited to 'src/profile.h')
-rw-r--r--src/profile.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/profile.h b/src/profile.h
index d7b1ba14a..6991041d3 100644
--- a/src/profile.h
+++ b/src/profile.h
@@ -23,6 +23,10 @@
#define BTD_UUIDS(args...) ((const char *[]) { args, NULL } )
+#define BTD_PROFILE_PRIORITY_LOW 0
+#define BTD_PROFILE_PRIORITY_MEDIUM 1
+#define BTD_PROFILE_PRIORITY_HIGH 2
+
struct btd_profile;
typedef void (*btd_profile_cb)(struct btd_profile *profile,
@@ -30,6 +34,7 @@ typedef void (*btd_profile_cb)(struct btd_profile *profile,
struct btd_profile {
const char *name;
+ int priority;
const char *local_uuid;
const char **remote_uuids;