From 30b84ed96f8fc03fc5a73bbe97a86d76899ab8cc Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Fri, 14 Jun 2019 17:56:41 -0700 Subject: binding: bluetooth-map: add message access support Add support for retrieving messages, and listing handles of messages located in folders. SPEC-2512 Change-Id: Ia345488b51f5cac1e1c2fd508305d7ffda794251 Signed-off-by: Matt Ranostay --- binding/bluetooth-map-api.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'binding/bluetooth-map-api.h') diff --git a/binding/bluetooth-map-api.h b/binding/bluetooth-map-api.h index d5b20a1..5e373ba 100644 --- a/binding/bluetooth-map-api.h +++ b/binding/bluetooth-map-api.h @@ -116,6 +116,14 @@ static inline gboolean transfer_property_dbus2json(json_object *jprop, jprop, key, var, is_config, error); } +static inline gboolean message_property_dbus2json(json_object *jprop, + const gchar *key, GVariant *var, gboolean *is_config, + GError **error) +{ + return bluez_property_dbus2json(BLUEZ_AT_MESSAGE, + jprop, key, var, is_config, error); +} + static inline json_object *object_properties(struct map_state *ns, GError **error) { -- cgit 1.2.3-korg