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

mpd_malloc struct mpd_directory* mpd_directory_begin ( const struct mpd_pair pair  )  [read]

Begins parsing a new directory.

pair the first pair in this directory (name must be "directory")
the new mpd_entity object, or NULL on error (out of memory, or pair name is not "directory")

Definition at line 102 of file directory.c.

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

Referenced by mpd_directory_begin(), and mpd_recv_directory().

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

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

      return mpd_directory_new(pair->value);

Generated by  Doxygen 1.6.0   Back to index