a2dp: Remove experimental flag for remote MediaEndpoint
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 18 Oct 2019 10:51:54 +0000 (13:51 +0300)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:57:59 +0000 (14:27 +0530)
This makes the MediaEndpoint and stable API for remote endpoints which
aligns with RegisterApplication API which is already stable.

Change-Id: I8469aa2926289d1c68f69d2442acb0c17f2d36ec
Signed-off-by: himanshu <h.himanshu@samsung.com>
profiles/audio/a2dp.c

index fe6c9d6..f404a56 100644 (file)
@@ -1853,7 +1853,7 @@ static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg,
 }
 
 static const GDBusMethodTable sep_methods[] = {
-       { GDBUS_EXPERIMENTAL_ASYNC_METHOD("SetConfiguration",
+       { GDBUS_ASYNC_METHOD("SetConfiguration",
                                        GDBUS_ARGS({ "endpoint", "o" },
                                                { "properties", "a{sv}" } ),
                                        NULL, set_configuration) },
@@ -1929,14 +1929,10 @@ static gboolean get_device(const GDBusPropertyTable *property,
 }
 
 static const GDBusPropertyTable sep_properties[] = {
-       { "UUID", "s", get_uuid, NULL, NULL,
-                                       G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
-       { "Codec", "y", get_codec, NULL, NULL,
-                                       G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
-       { "Capabilities", "ay", get_capabilities, NULL, NULL,
-                                       G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
-       { "Device", "o", get_device, NULL, NULL,
-                                       G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
+       { "UUID", "s", get_uuid, NULL, NULL },
+       { "Codec", "y", get_codec, NULL, NULL },
+       { "Capabilities", "ay", get_capabilities, NULL, NULL },
+       { "Device", "o", get_device, NULL, NULL },
        { }
 };
 
@@ -1954,9 +1950,6 @@ static void register_remote_sep(void *data, void *user_data)
        sep->chan = chan;
        sep->sep = rsep;
 
-       if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL))
-               goto done;
-
        if (asprintf(&sep->path, "%s/sep%d",
                                device_get_path(chan->device),
                                avdtp_get_seid(rsep)) < 0) {