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

mpd_pure enum mpd_idle mpd_idle_parse_pair ( const struct mpd_pair pair  ) 

Parses a "changed" pair, which is part of MPD's response to the "idle" command.

an idle code, or 0 if the pair was not understood

Definition at line 80 of file idle.c.

References mpd_idle_name_parse(), mpd_idle_parse_pair(), mpd_pair::name, and mpd_pair::value.

Referenced by mpd_idle_parse_pair(), and mpd_recv_idle().

      assert(pair != NULL);

      if (strcmp(pair->name, "changed") != 0)
            return 0;

      return mpd_idle_name_parse(pair->value);

Generated by  Doxygen 1.6.0   Back to index