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-common.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-common.h')
-rw-r--r-- | binding/bluetooth-common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binding/bluetooth-common.h b/binding/bluetooth-common.h index 68e747b..8b21656 100644 --- a/binding/bluetooth-common.h +++ b/binding/bluetooth-common.h @@ -60,6 +60,9 @@ struct bluetooth_state { /* mediaplayer */ gchar *mediaplayer_path; + + /* adapter */ + gchar *default_adapter; }; struct init_data { @@ -99,6 +102,11 @@ int bluetooth_register_agent(struct init_data *id); void bluetooth_unregister_agent(struct bluetooth_state *ns); +/* conf methods in bluetooth-conf.c */ + +gchar *get_default_adapter(afb_api_t api); +int set_default_adapter(afb_api_t api, const char *adapter); + /* utility methods in bluetooth-util.c */ extern gboolean auto_lowercase_keys; |