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

mpd_malloc struct mpd_entity* mpd_entity_begin ( const struct mpd_pair pair  )  [read]

Begins parsing a new entity.

pair the first pair in this entity
the new mpd_entity object, or NULL on error (out of memory)

Definition at line 155 of file entity.c.

References mpd_entity_begin().

Referenced by mpd_entity_begin(), and mpd_recv_entity().

      struct mpd_entity *entity;
      bool success;

      entity = malloc(sizeof(*entity));
      if (entity == NULL)
            /* out of memory */
            return NULL;

      success = mpd_entity_feed_first(entity, pair);
      if (!success) {
            return NULL;

      return entity;

Generated by  Doxygen 1.6.0   Back to index