diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-11-06 23:02:11 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-11-12 03:58:47 -0800 |
commit | a5fe25e7496cf4a8369e1f34e66c9e55d2c95ed1 (patch) | |
tree | b999b55195278036550836f1336eb9f805cc00a6 /binding/bluetooth-api.h | |
parent | 50078d83552f02051a5706b3dfea0953eff3a02b (diff) |
binding: bluetooth: add new avrcp controls verb
Since MediaPlayer1 controls are part of bluez it makes sense
to keep them here for now
Bug-AGL: SPEC-1630
Change-Id: Ia02341179a322082357b0e7eff07264e34197d57
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/bluetooth-api.h')
-rw-r--r-- | binding/bluetooth-api.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/binding/bluetooth-api.h b/binding/bluetooth-api.h index f8ce9d8..0d72afc 100644 --- a/binding/bluetooth-api.h +++ b/binding/bluetooth-api.h @@ -33,6 +33,7 @@ #define BLUEZ_AGENT_INTERFACE BLUEZ_SERVICE ".Agent1" #define BLUEZ_AGENTMANAGER_INTERFACE BLUEZ_SERVICE ".AgentManager1" #define BLUEZ_DEVICE_INTERFACE BLUEZ_SERVICE ".Device1" +#define BLUEZ_MEDIAPLAYER_INTERFACE BLUEZ_SERVICE ".MediaPlayer1" #define BLUEZ_OBJECT_PATH "/" #define BLUEZ_PATH "/org/bluez" @@ -64,6 +65,7 @@ #define BLUEZ_AT_DEVICE "device" #define BLUEZ_AT_AGENT "agent" #define BLUEZ_AT_AGENTMANAGER "agent-manager" +#define BLUEZ_AT_MEDIAPLAYER "mediaplayer" #define BLUEZ_DEFAULT_ADAPTER "hci0" @@ -184,6 +186,14 @@ static inline GVariant *agentmanager_call(struct bluetooth_state *ns, method, params, error); } +static inline GVariant *mediaplayer_call(struct bluetooth_state *ns, + const char *player, const char *method, + GVariant *params, GError **error) +{ + return bluez_call(ns, BLUEZ_AT_MEDIAPLAYER, player, + method, params, error); +} + static inline gboolean adapter_set_property(struct bluetooth_state *ns, const char *adapter, gboolean is_json_name, const char *name, json_object *jval, GError **error) @@ -235,4 +245,6 @@ void bluez_decode_call_error(struct bluetooth_state *ns, const char *method, GError **error); + + #endif /* BLUETOOTH_API_H */ |