int ret = MEDIA_CONTROLLER_ERROR_NONE;
- ret = mc_client_unset_server_updated_cb(g_mc_client);
- assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
-
ret = mc_client_set_server_updated_cb(g_mc_client, _mc_client_server_state_updated_cb, NULL);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
int ret = MEDIA_CONTROLLER_ERROR_NONE;
- ret = mc_client_unset_server_updated_cb(g_mc_client);
- assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
-
ret = mc_client_set_server_updated_cb(NULL, _mc_client_server_state_updated_cb, NULL);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER);
int ret = MEDIA_CONTROLLER_ERROR_NONE;
+ ret = mc_client_set_server_updated_cb(g_mc_client, _mc_client_server_state_updated_cb, NULL);
+ assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
+
ret = mc_client_unset_server_updated_cb(g_mc_client);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
int ret = MEDIA_CONTROLLER_ERROR_NONE;
+ ret = mc_client_set_playback_updated_cb(g_mc_client, _mc_client_playback_updated_cb, NULL);
+ assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
+
ret = mc_client_unset_playback_updated_cb(g_mc_client);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
int ret = MEDIA_CONTROLLER_ERROR_NONE;
+ ret = mc_client_set_metadata_updated_cb(g_mc_client, _mc_client_metadata_updated_cb, NULL);
+ assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
+
ret = mc_client_unset_metadata_updated_cb(g_mc_client);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
int ret = MEDIA_CONTROLLER_ERROR_NONE;
+ ret = mc_client_set_shuffle_mode_updated_cb(g_mc_client, _mc_client_shuffle_mode_updated_cb, NULL);
+ assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
+
ret = mc_client_unset_shuffle_mode_updated_cb(g_mc_client);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
int ret = MEDIA_CONTROLLER_ERROR_NONE;
+ ret = mc_client_set_repeat_mode_updated_cb(g_mc_client, _mc_client_repeat_mode_updated_cb, NULL);
+ assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
+
ret = mc_client_unset_repeat_mode_updated_cb(g_mc_client);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
int ret = MEDIA_CONTROLLER_ERROR_NONE;
+ ret = mc_client_set_playback_ability_updated_cb(g_mc_client, _mc_client_playback_ability_updated_cb, NULL);
+ assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
+
ret = mc_client_unset_playback_ability_updated_cb(g_mc_client);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
int ret = MEDIA_CONTROLLER_ERROR_NONE;
+ ret = mc_client_set_shuffle_ability_updated_cb(g_mc_client, _mc_client_shuffle_ability_updated_cb, NULL);
+ assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
+
ret = mc_client_unset_shuffle_ability_updated_cb(g_mc_client);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
int ret = MEDIA_CONTROLLER_ERROR_NONE;
+ ret = mc_client_set_repeat_ability_updated_cb(g_mc_client, _mc_client_repeat_ability_updated_cb, NULL);
+ assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
+
ret = mc_client_unset_repeat_ability_updated_cb(g_mc_client);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
int ret = MEDIA_CONTROLLER_ERROR_NONE;
+ ret = mc_client_set_ability_support_updated_cb(g_mc_client, _mc_client_ability_updated_cb, NULL);
+ assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
+
ret = mc_client_unset_ability_support_updated_cb(g_mc_client);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
int ret = MEDIA_CONTROLLER_ERROR_NONE;
+ ret = mc_client_set_display_mode_updated_cb(g_mc_client, _mc_client_display_mode_updated_cb, NULL);
+ assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
+
ret = mc_client_unset_display_mode_updated_cb(g_mc_client);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
int ret = MEDIA_CONTROLLER_ERROR_NONE;
+ ret = mc_client_set_display_rotation_updated_cb(g_mc_client, _mc_client_display_rotation_updated_cb, NULL);
+ assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);
+
ret = mc_client_unset_display_rotation_updated_cb(g_mc_client);
assert_eq(ret, MEDIA_CONTROLLER_ERROR_NONE);