Logo Search packages:      
Sourcecode: libmpdclient version File versions  Download package

static mpd_malloc struct mpd_pair* mpd_recv_command_pair ( struct mpd_connection connection  )  [static, read]

Receives the next supported command. Call this in a loop after mpd_send_commands() or mpd_send_notcommands().

Free the return value with mpd_return_pair().

Parameters:
connection a mpd_connection
Returns:
a "command" pair, or NULL on error or if the end of the response is reached

Definition at line 82 of file capabilities.h.

References mpd_recv_pair_named().

{
      return mpd_recv_pair_named(connection, "command");
}


Generated by  Doxygen 1.6.0   Back to index