Top |
playerctl-player-nameplayerctl-player-name — Contains connection information that fully qualifies a potential connection to a player. |
Contains connection information that fully qualifies a potential connection
to a player. You should not have to construct one of these directly. You can
list the names that are available to control from the
playerctl_list_players()
function or use the
“player-names” property from a
PlayerctlPlayerManager.
Once you have gotten a player name like this, you can check the type of
player with the "name" property to see if you are interested in connecting
to it. If you are, you can pass it directly to the
playerctl_player_new_from_name()
function to get a PlayerctlPlayer that is
connected to this name and ready to command and query.
void
playerctl_player_name_free (PlayerctlPlayerName *name
);
Frees name
. If name
is NULL
, it simply returns.
PlayerctlPlayerName *
playerctl_player_name_copy (PlayerctlPlayerName *name
);
Creates a dynamically allocated name name container as a copy of
name
.
struct PlayerctlPlayerName { gchar *name; gchar *instance; PlayerctlSource source; };
Event container for when names of players appear or disapear as the controllable media player applications open and close.
the name of the type of player. |
||
the complete name and instance of the player. |
||
PlayerctlSource |
the source of the player name. |