This patch adds the initial implementation of the GetProperties method
of the Handsfree Audio Card. This version supports the Bluetooth address
of the remote peer only.
---
src/handsfree-audio.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index fcebce8..f8c598f 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -285,7 +285,19 @@ void ofono_handsfree_audio_unref(void)
static DBusMessage *card_get_properties(DBusConnection *conn,
DBusMessage *msg, void *user_data)
{
- return __ofono_error_not_implemented(msg);
+ struct audio_card *card = user_data;
+ DBusMessage *reply;
+ DBusMessageIter iter;
+
+ reply = dbus_message_new_method_return(msg);
+ if (reply == NULL)
+ return NULL;
+
+ dbus_message_iter_init_append(reply, &iter);
+
+ card_append_properties(&iter, card);
+
+ return reply;
}
static const GDBusMethodTable card_methods[] = {
--
1.7.11.7
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono