}
static int parse_device_variant(GVariant *v, int *device_id, const char **device_type, int *direction, int *state,
- const char **device_name, int *vendor_id, int *product_id, bool *is_running, int *stream_id, int *stream_num)
+ const char **device_name, int *vendor_id, int *product_id, gboolean *is_running, int *stream_id, int *stream_num)
{
const char *v_type;
GVariant *array_v;
int stream_id[MAX_STREAM_ON_DEVICE];
int stream_num;
int vendor_id, product_id;
- bool is_running = FALSE;
+ gboolean is_running = FALSE;
v_type = g_variant_get_type_string(params);
g_variant_get(params, "(&s&su)", &direction, &volume_type_str, &volume_level);
((mm_sound_volume_changed_wrapper_cb)(cb_data->user_cb))(direction, volume_type_str, volume_level, cb_data->user_data);
} else if (event == AUDIO_EVENT_DEVICE_CONNECTED) {
- bool is_connected = false;
+ gboolean is_connected = FALSE;
if (g_variant_type_equal(v_type, "(u(isiisiibai)b)") == FALSE) {
debug_error("Device connection changed signature not matching : %s", v_type);
g_variant_iter_next(&iter, "b", &is_connected);
((mm_sound_device_connected_wrapper_cb)(cb_data->user_cb))(device_id, device_type, direction,
- state, name, vendor_id, product_id, is_running, stream_id, stream_num, is_connected, cb_data->user_data);
- _notify_signal_handled(event, event_id, cb_data->subs_id, g_variant_new("(ib)", device_id, is_connected));
+ state, name, vendor_id, product_id, (bool)is_running, stream_id, stream_num, (bool)is_connected, cb_data->user_data);
+ _notify_signal_handled(event, event_id, cb_data->subs_id, g_variant_new("(ib)", device_id, (bool)is_connected));
} else if (event == AUDIO_EVENT_DEVICE_INFO_CHANGED) {
int changed_device_info_type = 0;
g_variant_iter_next(&iter, "i", &changed_device_info_type);
((mm_sound_device_info_changed_wrapper_cb)(cb_data->user_cb))(device_id, device_type, direction,
- state, name, vendor_id, product_id, is_running, stream_id, stream_num, changed_device_info_type, cb_data->user_data);
+ state, name, vendor_id, product_id, (bool)is_running, stream_id, stream_num, changed_device_info_type, cb_data->user_data);
} else if (event == AUDIO_EVENT_DEVICE_STATE_CHANGED) {
if (g_variant_type_equal(v_type, "(u(isiisiibai))") == FALSE) {
}
((mm_sound_device_state_changed_wrapper_cb)(cb_data->user_cb))(device_id, device_type, direction,
- state, name, vendor_id, product_id, is_running, stream_id, stream_num, cb_data->user_data);
+ state, name, vendor_id, product_id, (bool)is_running, stream_id, stream_num, cb_data->user_data);
} else if (event == AUDIO_EVENT_DEVICE_RUNNING_CHANGED) {
if (g_variant_type_equal(v_type, "(u(isiisiibai))") == FALSE) {
}
((mm_sound_device_running_changed_wrapper_cb)(cb_data->user_cb))(device_id, device_type, direction,
- state, name, vendor_id, product_id, is_running, stream_id, stream_num, cb_data->user_data);
+ state, name, vendor_id, product_id, (bool)is_running, stream_id, stream_num, cb_data->user_data);
} else if (event == AUDIO_EVENT_FOCUS_CHANGED) {
} else if (event == AUDIO_EVENT_FOCUS_WATCH) {
} else if (event == AUDIO_EVENT_TEST) {