int _bt_avrcp_transport_set_property(int type, unsigned int value)
{
- GValue *attr_value = NULL;
GDBusProxy *proxy = NULL;
GError *error = NULL;
GVariant *reply, *param;
uint16_t property_level = (uint16_t)value;
- g_value_init(attr_value, G_TYPE_STRING);
-
switch (type) {
case DELAY:
param = g_variant_new("q", property_level);
break;
default:
BT_ERR("Invalid property type: %d", type);
- g_value_unset(attr_value);
return BLUETOOTH_ERROR_INTERNAL;
}
}
g_variant_unref(reply);
- g_value_unset(attr_value);
return BLUETOOTH_ERROR_NONE;
}