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

mpd_malloc struct mpd_pair* mpd_recv_pair_tag ( struct mpd_connection connection,
enum mpd_tag_type  type 
) [read]

Same as mpd_recv_pair_named(), but the pair name is specified as mpd_tag_type.

Parameters:
connection the connection to MPD
type the tag type you are looking for
Returns:
a pair, or NULL on error or if there are no more matching pairs in this response

Definition at line 303 of file search.c.

References mpd_recv_pair_named(), and mpd_recv_pair_tag().

Referenced by mpd_recv_pair_tag().

{
      const char *name;

      assert(connection != NULL);

      name = mpd_tag_name(type);
      if (name == NULL)
            return NULL;

      return mpd_recv_pair_named(connection, name);
}


Generated by  Doxygen 1.6.0   Back to index