Lines Matching full:player

39 			      struct cras_bt_player *player)  in cras_bt_add_player()  argument
55 &player->object_path); in cras_bt_add_player()
65 DBUS_TYPE_STRING_AS_STRING, &player->playback_status); in cras_bt_add_player()
67 DBUS_TYPE_STRING_AS_STRING, &player->identity); in cras_bt_add_player()
69 DBUS_TYPE_STRING_AS_STRING, &player->loop_status); in cras_bt_add_player()
71 DBUS_TYPE_INT64_AS_STRING, &player->position); in cras_bt_add_player()
73 DBUS_TYPE_BOOLEAN_AS_STRING, &player->shuffle); in cras_bt_add_player()
75 DBUS_TYPE_BOOLEAN_AS_STRING, &player->can_go_next); in cras_bt_add_player()
77 DBUS_TYPE_BOOLEAN_AS_STRING, &player->can_go_prev); in cras_bt_add_player()
79 DBUS_TYPE_BOOLEAN_AS_STRING, &player->can_play); in cras_bt_add_player()
81 DBUS_TYPE_BOOLEAN_AS_STRING, &player->can_pause); in cras_bt_add_player()
83 DBUS_TYPE_BOOLEAN_AS_STRING, &player->can_control); in cras_bt_add_player()
98 pending_call, cras_bt_on_player_registered, player, NULL)) { in cras_bt_add_player()
106 /* Note that player properties will be used mostly for AVRCP qualification and
111 static struct cras_bt_player player = { variable
133 if (player.message_cb) in cras_bt_player_handle_message()
134 player.message_cb(msg); in cras_bt_player_handle_message()
153 player.playback_status = malloc(CRAS_PLAYER_PLAYBACK_STATUS_SIZE_MAX); in cras_bt_player_init()
154 player.identity = malloc(CRAS_PLAYER_IDENTITY_SIZE_MAX); in cras_bt_player_init()
156 strcpy(player.playback_status, CRAS_PLAYER_PLAYBACK_STATUS_DEFAULT); in cras_bt_player_init()
157 strcpy(player.identity, CRAS_PLAYER_IDENTITY_DEFAULT); in cras_bt_player_init()
158 player.position = 0; in cras_bt_player_init()
160 player.metadata = cras_bt_player_metadata_init(); in cras_bt_player_init()
233 if (title && strcmp(player.metadata->title, title)) { in cras_bt_player_parse_metadata()
234 snprintf(player.metadata->title, CRAS_PLAYER_METADATA_SIZE_MAX, in cras_bt_player_parse_metadata()
238 if (artist && strcmp(player.metadata->artist, artist)) { in cras_bt_player_parse_metadata()
239 snprintf(player.metadata->artist, CRAS_PLAYER_METADATA_SIZE_MAX, in cras_bt_player_parse_metadata()
243 if (album && strcmp(player.metadata->album, album)) { in cras_bt_player_parse_metadata()
244 snprintf(player.metadata->album, CRAS_PLAYER_METADATA_SIZE_MAX, in cras_bt_player_parse_metadata()
248 if (length && player.metadata->length != length) { in cras_bt_player_parse_metadata()
249 player.metadata->length = length; in cras_bt_player_parse_metadata()
270 conn, player.object_path, &player_vtable, &dbus_error)) { in cras_bt_player_create()
271 syslog(LOG_ERR, "Cannot register player %s", in cras_bt_player_create()
272 player.object_path); in cras_bt_player_create()
279 cras_bt_add_player(conn, adapters[i], &player); in cras_bt_player_create()
287 return cras_bt_add_player(conn, adapter, &player); in cras_bt_register_player()
297 if (!player.playback_status) in cras_bt_player_update_playback_status()
311 if (!strcasecmp(player.playback_status, status)) in cras_bt_player_update_playback_status()
314 strcpy(player.playback_status, status); in cras_bt_player_update_playback_status()
350 if (!player.identity) in cras_bt_player_update_identity()
361 if (!strcasecmp(player.identity, identity)) in cras_bt_player_update_identity()
364 strcpy(player.identity, identity); in cras_bt_player_update_identity()
404 player.position = position; in cras_bt_player_update_position()
422 DBUS_TYPE_INT64_AS_STRING, &player.position); in cras_bt_player_update_position()
443 if (!player.metadata) in cras_bt_player_update_metadata()
471 cras_bt_player_append_metadata(&dict, player.metadata->title, in cras_bt_player_update_metadata()
472 player.metadata->artist, in cras_bt_player_update_metadata()
473 player.metadata->album, in cras_bt_player_update_metadata()
474 player.metadata->length); in cras_bt_player_update_metadata()