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

bool mpd_directory_feed ( struct mpd_directory directory,
const struct mpd_pair pair 
)

Parses the pair, adding its information to the specified mpd_directory object.

Returns:
true if the pair was parsed and added to the directory (or if the pair was not understood and ignored), false if this pair is the beginning of the next directory

Definition at line 115 of file directory.c.

References mpd_directory_feed(), mpd_pair::name, and mpd_pair::value.

Referenced by mpd_directory_feed(), mpd_entity_feed(), and mpd_recv_directory().

{
      assert(pair != NULL);
      assert(pair->name != NULL);
      assert(pair->value != NULL);

      if (strcmp(pair->name, "directory") == 0)
            return false;

      /* ignore all other pairs - that might be attributes which we
         don't support yet */

      (void)directory;

      return true;
}


Generated by  Doxygen 1.6.0   Back to index