return TRUE;
}
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
static gboolean delay_exists(const GDBusPropertyTable *property, void *data)
{
struct media_transport *transport = data;
return a2dp->delay != 0;
}
+#endif
static gboolean get_delay(const GDBusPropertyTable *property,
DBusMessageIter *iter, void *data)
}
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
-static void delay_report(const GDBusPropertyTable *property,
+static void set_delay(const GDBusPropertyTable *property,
DBusMessageIter *iter, GDBusPendingPropertySet id,
void *data)
{
}
#endif
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
static gboolean volume_exists(const GDBusPropertyTable *property, void *data)
{
struct media_transport *transport = data;
return a2dp->volume <= 127;
}
+#endif
static gboolean get_volume(const GDBusPropertyTable *property,
DBusMessageIter *iter, void *data)
{ "Configuration", "ay", get_configuration },
{ "State", "s", get_state },
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
- { "Delay", "q", get_delay, delay_report, delay_exists },
+ { "Delay", "q", get_delay, set_delay },
+ { "Volume", "q", get_volume, set_volume },
#else
{ "Delay", "q", get_delay, NULL, delay_exists },
-#endif
{ "Volume", "q", get_volume, set_volume, volume_exists },
+#endif
{ "Endpoint", "o", get_endpoint, NULL, endpoint_exists,
G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
{ }