mc_server_playback_state_command_received_cb callback = receiver->callback;
mc_retm_if(receiver->callback == NULL, "playback_state_command_received_cb is NULL");
- mc_debug("__server_playback_state_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data);
+ mc_debug("__server_playback_state_command_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data);
params = g_strsplit(message, MC_STRING_DELIMITER, 0);
mc_retm_if(params == NULL, "invalid playback state command");
if (mc_util_get_command_availabe(params[0], MC_COMMAND_PLAYBACKSTATE, NULL) != MEDIA_CONTROLLER_ERROR_NONE) {
mc_error("Error permission denied");
g_strfreev(params);
- return ;
+ return;
}
int value = 0;
if (mc_safe_strtoi(params[1], &value) != MEDIA_CONTROLLER_ERROR_NONE) {
mc_error("Error get recieved value");
g_strfreev(params);
- return ;
+ return;
}
callback(params[0], (mc_playback_states_e)value, receiver->user_data);
mc_server_playback_position_command_received_cb callback = receiver->callback;
mc_retm_if(receiver->callback == NULL, "playback_position_command_received_cb is NULL");
- mc_debug("__server_playback_state_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data);
+ mc_debug("__server_playback_position_command_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data);
params = g_strsplit(message, MC_STRING_DELIMITER, 0);
mc_retm_if(params == NULL, "invalid playback state command");
if (mc_util_get_command_availabe(params[0], MC_COMMAND_PLAYBACKPOSITION, NULL) != MEDIA_CONTROLLER_ERROR_NONE) {
mc_error("Error permission denied");
g_strfreev(params);
- return ;
+ return;
}
unsigned long long value = 0;
if (mc_safe_strtoull(params[1], &value) != MEDIA_CONTROLLER_ERROR_NONE) {
mc_error("Error get recieved value");
g_strfreev(params);
- return ;
+ return;
}
callback(params[0], value, receiver->user_data);
mc_server_shuffle_mode_command_received_cb callback = receiver->callback;
mc_retm_if(receiver->callback == NULL, "shuffle_mode_command_received_cb is NULL");
- mc_debug("__server_playback_state_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data);
+ mc_debug("__server_shuffle_mode_command_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data);
params = g_strsplit(message, MC_STRING_DELIMITER, 0);
mc_retm_if(params == NULL, "invalid playback state command");
if (mc_util_get_command_availabe(params[0], MC_COMMAND_SHUFFLE, NULL) != MEDIA_CONTROLLER_ERROR_NONE) {
mc_error("Error permission denied");
g_strfreev(params);
- return ;
+ return;
}
int value = 0;
if (mc_safe_strtoi(params[1], &value) != MEDIA_CONTROLLER_ERROR_NONE) {
mc_error("Error get recieved value");
g_strfreev(params);
- return ;
+ return;
}
callback(params[0], (mc_shuffle_mode_e)value, receiver->user_data);
mc_server_repeat_mode_command_received_cb callback = receiver->callback;
mc_retm_if(receiver->callback == NULL, "repeat_mode_command_received_cb is NULL");
- mc_debug("__server_playback_state_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data);
+ mc_debug("__server_repeat_mode_command_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data);
params = g_strsplit(message, MC_STRING_DELIMITER, 0);
mc_retm_if(params == NULL, "invalid playback state command");
if (mc_util_get_command_availabe(params[0], MC_COMMAND_REPEAT, NULL) != MEDIA_CONTROLLER_ERROR_NONE) {
mc_error("Error permission denied");
g_strfreev(params);
- return ;
+ return;
}
int value = 0;
if (mc_safe_strtoi(params[1], &value) != MEDIA_CONTROLLER_ERROR_NONE) {
mc_error("Error get recieved value");
g_strfreev(params);
- return ;
+ return;
}
callback(params[0], (mc_repeat_mode_e)value, receiver->user_data);