Lines Matching refs:ctrlr
55 struct controller ctrlr; member
246 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->discover_player) { in mcc_discover_mcs_cb()
247 mprx.ctrlr.cbs->discover_player(&mprx.remote_player, err); in mcc_discover_mcs_cb()
262 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->player_name_recv) { in mcc_read_player_name_cb()
263 mprx.ctrlr.cbs->player_name_recv(&mprx.remote_player, err, name); in mcc_read_player_name_cb()
278 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->icon_id_recv) { in mcc_read_icon_obj_id_cb()
279 mprx.ctrlr.cbs->icon_id_recv(&mprx.remote_player, err, id); in mcc_read_icon_obj_id_cb()
293 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->icon_url_recv) { in mcc_read_icon_url_cb()
294 mprx.ctrlr.cbs->icon_url_recv(&mprx.remote_player, err, url); in mcc_read_icon_url_cb()
308 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_changed_recv) { in mcc_track_changed_ntf_cb()
309 mprx.ctrlr.cbs->track_changed_recv(&mprx.remote_player, err); in mcc_track_changed_ntf_cb()
322 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_title_recv) { in mcc_read_track_title_cb()
323 mprx.ctrlr.cbs->track_title_recv(&mprx.remote_player, err, title); in mcc_read_track_title_cb()
337 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_duration_recv) { in mcc_read_track_duration_cb()
338 mprx.ctrlr.cbs->track_duration_recv(&mprx.remote_player, err, dur); in mcc_read_track_duration_cb()
352 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_position_recv) { in mcc_read_track_position_cb()
353 mprx.ctrlr.cbs->track_position_recv(&mprx.remote_player, err, pos); in mcc_read_track_position_cb()
367 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_position_write) { in mcc_set_track_position_cb()
368 mprx.ctrlr.cbs->track_position_write(&mprx.remote_player, err, pos); in mcc_set_track_position_cb()
382 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->playback_speed_recv) { in mcc_read_playback_speed_cb()
383 mprx.ctrlr.cbs->playback_speed_recv(&mprx.remote_player, err, speed); in mcc_read_playback_speed_cb()
397 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->playback_speed_write) { in mcc_set_playback_speed_cb()
398 mprx.ctrlr.cbs->playback_speed_write(&mprx.remote_player, err, speed); in mcc_set_playback_speed_cb()
412 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->seeking_speed_recv) { in mcc_read_seeking_speed_cb()
413 mprx.ctrlr.cbs->seeking_speed_recv(&mprx.remote_player, err, speed); in mcc_read_seeking_speed_cb()
427 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_segments_id_recv) { in mcc_read_segments_obj_id_cb()
428 mprx.ctrlr.cbs->track_segments_id_recv(&mprx.remote_player, err, id); in mcc_read_segments_obj_id_cb()
440 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->current_track_id_recv) { in mcc_read_current_track_obj_id_cb()
441 mprx.ctrlr.cbs->current_track_id_recv(&mprx.remote_player, err, id); in mcc_read_current_track_obj_id_cb()
455 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->next_track_id_recv) { in mcc_read_next_track_obj_id_cb()
456 mprx.ctrlr.cbs->next_track_id_recv(&mprx.remote_player, err, id); in mcc_read_next_track_obj_id_cb()
470 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->parent_group_id_recv) { in mcc_read_parent_group_obj_id_cb()
471 mprx.ctrlr.cbs->parent_group_id_recv(&mprx.remote_player, err, id); in mcc_read_parent_group_obj_id_cb()
483 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->current_group_id_recv) { in mcc_read_current_group_obj_id_cb()
484 mprx.ctrlr.cbs->current_group_id_recv(&mprx.remote_player, err, id); in mcc_read_current_group_obj_id_cb()
501 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->playing_order_recv) { in mcc_read_playing_order_cb()
502 mprx.ctrlr.cbs->playing_order_recv(&mprx.remote_player, err, order); in mcc_read_playing_order_cb()
516 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->playing_order_write) { in mcc_set_playing_order_cb()
517 mprx.ctrlr.cbs->playing_order_write(&mprx.remote_player, err, order); in mcc_set_playing_order_cb()
531 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->playing_orders_supported_recv) { in mcc_read_playing_orders_supported_cb()
532 mprx.ctrlr.cbs->playing_orders_supported_recv(&mprx.remote_player, err, orders); in mcc_read_playing_orders_supported_cb()
546 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->media_state_recv) { in mcc_read_media_state_cb()
547 mprx.ctrlr.cbs->media_state_recv(&mprx.remote_player, err, state); in mcc_read_media_state_cb()
562 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->command_send) { in mcc_send_cmd_cb()
563 mprx.ctrlr.cbs->command_send(&mprx.remote_player, err, cmd); in mcc_send_cmd_cb()
578 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->command_recv) { in mcc_cmd_ntf_cb()
579 mprx.ctrlr.cbs->command_recv(&mprx.remote_player, err, ntf); in mcc_cmd_ntf_cb()
592 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->commands_supported_recv) { in mcc_read_opcodes_supported_cb()
593 mprx.ctrlr.cbs->commands_supported_recv(&mprx.remote_player, err, opcodes); in mcc_read_opcodes_supported_cb()
607 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->search_send) { in mcc_send_search_cb()
608 mprx.ctrlr.cbs->search_send(&mprx.remote_player, err, search); in mcc_send_search_cb()
620 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->search_recv) { in mcc_search_ntf_cb()
621 mprx.ctrlr.cbs->search_recv(&mprx.remote_player, err, result_code); in mcc_search_ntf_cb()
633 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->search_results_id_recv) { in mcc_read_search_results_obj_id_cb()
634 mprx.ctrlr.cbs->search_results_id_recv(&mprx.remote_player, err, id); in mcc_read_search_results_obj_id_cb()
648 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->content_ctrl_id_recv) { in mcc_read_content_control_id_cb()
649 mprx.ctrlr.cbs->content_ctrl_id_recv(&mprx.remote_player, err, ccid); in mcc_read_content_control_id_cb()
669 mprx.ctrlr.cbs = ctrl_cbs; in media_proxy_ctrl_register()
672 if (mprx.ctrlr.cbs->local_player_instance) { in media_proxy_ctrl_register()
673 mprx.ctrlr.cbs->local_player_instance(&mprx.local_player, 0); in media_proxy_ctrl_register()
806 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->player_name_recv) { in media_proxy_ctrl_get_player_name()
809 mprx.ctrlr.cbs->player_name_recv(&mprx.local_player, 0, name); in media_proxy_ctrl_get_player_name()
842 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->icon_id_recv) { in media_proxy_ctrl_get_icon_id()
845 mprx.ctrlr.cbs->icon_id_recv(&mprx.local_player, 0, id); in media_proxy_ctrl_get_icon_id()
877 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->icon_url_recv) { in media_proxy_ctrl_get_icon_url()
880 mprx.ctrlr.cbs->icon_url_recv(player, 0, url); in media_proxy_ctrl_get_icon_url()
912 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_title_recv) { in media_proxy_ctrl_get_track_title()
915 mprx.ctrlr.cbs->track_title_recv(player, 0, title); in media_proxy_ctrl_get_track_title()
947 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_duration_recv) { in media_proxy_ctrl_get_track_duration()
951 mprx.ctrlr.cbs->track_duration_recv(player, 0, duration); in media_proxy_ctrl_get_track_duration()
983 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_position_recv) { in media_proxy_ctrl_get_track_position()
987 mprx.ctrlr.cbs->track_position_recv(player, 0, position); in media_proxy_ctrl_get_track_position()
1021 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_position_write) { in media_proxy_ctrl_set_track_position()
1022 mprx.ctrlr.cbs->track_position_write(player, 0, position); in media_proxy_ctrl_set_track_position()
1054 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->playback_speed_recv) { in media_proxy_ctrl_get_playback_speed()
1057 mprx.ctrlr.cbs->playback_speed_recv(player, 0, speed); in media_proxy_ctrl_get_playback_speed()
1091 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->playback_speed_write) { in media_proxy_ctrl_set_playback_speed()
1092 mprx.ctrlr.cbs->playback_speed_write(player, 0, speed); in media_proxy_ctrl_set_playback_speed()
1124 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->seeking_speed_recv) { in media_proxy_ctrl_get_seeking_speed()
1127 mprx.ctrlr.cbs->seeking_speed_recv(player, 0, speed); in media_proxy_ctrl_get_seeking_speed()
1159 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_segments_id_recv) { in media_proxy_ctrl_get_track_segments_id()
1163 mprx.ctrlr.cbs->track_segments_id_recv(player, 0, id); in media_proxy_ctrl_get_track_segments_id()
1195 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->current_track_id_recv) { in media_proxy_ctrl_get_current_track_id()
1198 mprx.ctrlr.cbs->current_track_id_recv(player, 0, id); in media_proxy_ctrl_get_current_track_id()
1238 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->current_track_id_write) { in media_proxy_ctrl_set_current_track_id()
1239 mprx.ctrlr.cbs->current_track_id_write(player, 0, id); in media_proxy_ctrl_set_current_track_id()
1272 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->next_track_id_recv) { in media_proxy_ctrl_get_next_track_id()
1275 mprx.ctrlr.cbs->next_track_id_recv(player, 0, id); in media_proxy_ctrl_get_next_track_id()
1315 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->next_track_id_write) { in media_proxy_ctrl_set_next_track_id()
1316 mprx.ctrlr.cbs->next_track_id_write(player, 0, id); in media_proxy_ctrl_set_next_track_id()
1349 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->parent_group_id_recv) { in media_proxy_ctrl_get_parent_group_id()
1352 mprx.ctrlr.cbs->parent_group_id_recv(player, 0, id); in media_proxy_ctrl_get_parent_group_id()
1384 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->current_group_id_recv) { in media_proxy_ctrl_get_current_group_id()
1387 mprx.ctrlr.cbs->current_group_id_recv(player, 0, id); in media_proxy_ctrl_get_current_group_id()
1427 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->current_group_id_write) { in media_proxy_ctrl_set_current_group_id()
1428 mprx.ctrlr.cbs->current_group_id_write(player, 0, id); in media_proxy_ctrl_set_current_group_id()
1461 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->playing_order_recv) { in media_proxy_ctrl_get_playing_order()
1464 mprx.ctrlr.cbs->playing_order_recv(player, 0, order); in media_proxy_ctrl_get_playing_order()
1499 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->playing_order_write) { in media_proxy_ctrl_set_playing_order()
1500 mprx.ctrlr.cbs->playing_order_write(player, 0, order); in media_proxy_ctrl_set_playing_order()
1532 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->playing_orders_supported_recv) { in media_proxy_ctrl_get_playing_orders_supported()
1536 mprx.ctrlr.cbs->playing_orders_supported_recv(player, 0, orders); in media_proxy_ctrl_get_playing_orders_supported()
1569 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->media_state_recv) { in media_proxy_ctrl_get_media_state()
1572 mprx.ctrlr.cbs->media_state_recv(player, 0, state); in media_proxy_ctrl_get_media_state()
1606 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->command_send) { in media_proxy_ctrl_send_command()
1607 mprx.ctrlr.cbs->command_send(player, 0, cmd); in media_proxy_ctrl_send_command()
1639 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->commands_supported_recv) { in media_proxy_ctrl_get_commands_supported()
1643 mprx.ctrlr.cbs->commands_supported_recv(player, 0, opcodes); in media_proxy_ctrl_get_commands_supported()
1680 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->search_send) { in media_proxy_ctrl_send_search()
1681 mprx.ctrlr.cbs->search_send(player, 0, search); in media_proxy_ctrl_send_search()
1713 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->search_results_id_recv) { in media_proxy_ctrl_get_search_results_id()
1717 mprx.ctrlr.cbs->search_results_id_recv(player, 0, id); in media_proxy_ctrl_get_search_results_id()
1749 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->content_ctrl_id_recv) { in media_proxy_ctrl_get_content_ctrl_id()
1752 mprx.ctrlr.cbs->content_ctrl_id_recv(player, 0, ccid); in media_proxy_ctrl_get_content_ctrl_id()
1945 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->local_player_instance) { in media_proxy_pl_register()
1946 mprx.ctrlr.cbs->local_player_instance(&mprx.local_player, 0); in media_proxy_pl_register()
1960 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->player_name_recv) { in media_proxy_pl_name_cb()
1961 mprx.ctrlr.cbs->player_name_recv(&mprx.local_player, 0, name); in media_proxy_pl_name_cb()
1971 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->player_name_recv) { in media_proxy_pl_icon_url_cb()
1972 mprx.ctrlr.cbs->icon_url_recv(&mprx.local_player, 0, url); in media_proxy_pl_icon_url_cb()
1982 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_changed_recv) { in media_proxy_pl_track_changed_cb()
1983 mprx.ctrlr.cbs->track_changed_recv(&mprx.local_player, 0); in media_proxy_pl_track_changed_cb()
1993 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_title_recv) { in media_proxy_pl_track_title_cb()
1994 mprx.ctrlr.cbs->track_title_recv(&mprx.local_player, 0, title); in media_proxy_pl_track_title_cb()
2004 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_duration_recv) { in media_proxy_pl_track_duration_cb()
2005 mprx.ctrlr.cbs->track_duration_recv(&mprx.local_player, 0, duration); in media_proxy_pl_track_duration_cb()
2015 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->track_position_recv) { in media_proxy_pl_track_position_cb()
2016 mprx.ctrlr.cbs->track_position_recv(&mprx.local_player, 0, position); in media_proxy_pl_track_position_cb()
2026 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->playback_speed_recv) { in media_proxy_pl_playback_speed_cb()
2027 mprx.ctrlr.cbs->playback_speed_recv(&mprx.local_player, 0, speed); in media_proxy_pl_playback_speed_cb()
2037 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->seeking_speed_recv) { in media_proxy_pl_seeking_speed_cb()
2038 mprx.ctrlr.cbs->seeking_speed_recv(&mprx.local_player, 0, speed); in media_proxy_pl_seeking_speed_cb()
2049 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->current_track_id_recv) { in media_proxy_pl_current_track_id_cb()
2050 mprx.ctrlr.cbs->current_track_id_recv(&mprx.local_player, 0, id); in media_proxy_pl_current_track_id_cb()
2060 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->next_track_id_recv) { in media_proxy_pl_next_track_id_cb()
2061 mprx.ctrlr.cbs->next_track_id_recv(&mprx.local_player, 0, id); in media_proxy_pl_next_track_id_cb()
2071 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->parent_group_id_recv) { in media_proxy_pl_parent_group_id_cb()
2072 mprx.ctrlr.cbs->parent_group_id_recv(&mprx.local_player, 0, id); in media_proxy_pl_parent_group_id_cb()
2082 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->current_group_id_recv) { in media_proxy_pl_current_group_id_cb()
2083 mprx.ctrlr.cbs->current_group_id_recv(&mprx.local_player, 0, id); in media_proxy_pl_current_group_id_cb()
2094 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->playing_order_recv) { in media_proxy_pl_playing_order_cb()
2095 mprx.ctrlr.cbs->playing_order_recv(&mprx.local_player, 0, order); in media_proxy_pl_playing_order_cb()
2105 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->media_state_recv) { in media_proxy_pl_media_state_cb()
2106 mprx.ctrlr.cbs->media_state_recv(&mprx.local_player, 0, state); in media_proxy_pl_media_state_cb()
2121 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->command_recv) { in media_proxy_pl_command_cb()
2122 mprx.ctrlr.cbs->command_recv(&mprx.local_player, 0, cmd_ntf); in media_proxy_pl_command_cb()
2132 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->commands_supported_recv) { in media_proxy_pl_commands_supported_cb()
2133 mprx.ctrlr.cbs->commands_supported_recv(&mprx.local_player, 0, opcodes); in media_proxy_pl_commands_supported_cb()
2144 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->search_recv) { in media_proxy_pl_search_cb()
2145 mprx.ctrlr.cbs->search_recv(&mprx.local_player, 0, result_code); in media_proxy_pl_search_cb()
2155 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->search_results_id_recv) { in media_proxy_pl_search_results_id_cb()
2156 mprx.ctrlr.cbs->search_results_id_recv(&mprx.local_player, 0, id); in media_proxy_pl_search_results_id_cb()