diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-11-23 14:24:18 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-11-24 11:40:41 -0800 |
commit | 8f05128deaec01a9a65b940d2073b9f2ab5c31f3 (patch) | |
tree | e7b50c6d28b0e055aa6166cc37e9415d9b013200 /binding/bluetooth-api.h | |
parent | 2702c40734efa883bfd1f0cbc4f08a8fe12f1a2a (diff) |
binding: bluetooth: add default_adapter verb
Allow setting of default adapter for use by other verbs within
the binding. This allows to select an adapter on boards with more than one.
Bug-AGL: SPEC-1630
Change-Id: Iec77b0abaa9f4c092dc5c827522efb1744953fce
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/bluetooth-api.h')
-rw-r--r-- | binding/bluetooth-api.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/binding/bluetooth-api.h b/binding/bluetooth-api.h index cd6a775..5fa417a 100644 --- a/binding/bluetooth-api.h +++ b/binding/bluetooth-api.h @@ -40,6 +40,7 @@ #define BLUEZ_ROOT_PATH(_t) \ ({ \ + call_work_lock(ns); \ const char *__t = (_t); \ size_t __len = strlen(BLUEZ_PATH) + 1 + \ strlen(__t) + 1; \ @@ -47,6 +48,7 @@ __tpath = alloca(__len + 1 + 1); \ snprintf(__tpath, __len + 1, \ BLUEZ_PATH "/%s", __t); \ + call_work_unlock(ns); \ __tpath; \ }) @@ -120,6 +122,8 @@ static inline gboolean is_mediaplayer1_interface(const char *path) return ret; } +struct bluetooth_state *bluetooth_get_userdata(afb_req_t request); + struct call_work *call_work_create_unlocked(struct bluetooth_state *ns, const char *access_type, const char *type_arg, const char *method, const char *bluez_method, |