From 1a291c3482e7fdb498c178650d318b991b27a3d2 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 22 Oct 2007 14:11:04 +0000 Subject: Add skeleton for AVRCP support --- audio/manager.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'audio/manager.c') diff --git a/audio/manager.c b/audio/manager.c index f5a67cac..2b628544 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -59,6 +59,7 @@ #include "headset.h" #include "gateway.h" #include "sink.h" +#include "control.h" #include "manager.h" typedef enum { @@ -224,6 +225,9 @@ static gboolean server_is_enabled(uint16_t svc) break; case AUDIO_SINK_SVCLASS_ID: return enabled->sink; + case AV_REMOTE_TARGET_SVCLASS_ID: + case AV_REMOTE_SVCLASS_ID: + return enabled->control; default: ret = FALSE; break; @@ -1617,6 +1621,9 @@ int audio_init(DBusConnection *conn, struct enabled_interfaces *enable, if (a2dp_init(conn, sources, sinks) < 0) goto failed; + if (enable->control && control_init(conn) < 0) + goto failed; + if (!dbus_connection_register_interface(conn, AUDIO_MANAGER_PATH, AUDIO_MANAGER_INTERFACE, manager_methods, -- cgit