entity.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-3-Clause
// Copyright The Music Player Daemon Project
#ifndef MPD_ENTITY_H
#define MPD_ENTITY_H
#include "song.h"
#include "directory.h"
#include "compiler.h"
struct mpd_pair;
enum mpd_entity_type {
MPD_ENTITY_TYPE_UNKNOWN,
MPD_ENTITY_TYPE_DIRECTORY,
MPD_ENTITY_TYPE_SONG,
MPD_ENTITY_TYPE_PLAYLIST,
};
struct mpd_entity;
#ifdef __cplusplus
extern "C" {
#endif
void
mpd_entity_free(struct mpd_entity *entity);
mpd_pure
enum mpd_entity_type
mpd_entity_get_type(const struct mpd_entity *entity);
mpd_pure
const struct mpd_directory *
mpd_entity_get_directory(const struct mpd_entity *entity);
mpd_pure
const struct mpd_song *
mpd_entity_get_song(const struct mpd_entity *entity);
mpd_pure
const struct mpd_playlist *
mpd_entity_get_playlist(const struct mpd_entity *entity);
mpd_malloc
struct mpd_entity *
mpd_entity_begin(const struct mpd_pair *pair);
bool
mpd_entity_feed(struct mpd_entity *entity, const struct mpd_pair *pair);
mpd_malloc
struct mpd_entity *
mpd_recv_entity(struct mpd_connection *connection);
#ifdef __cplusplus
}
#endif
#endif
directory.h
MPD client library.
mpd_entity_begin
struct mpd_entity * mpd_entity_begin(const struct mpd_pair *pair)
mpd_entity_get_type
enum mpd_entity_type mpd_entity_get_type(const struct mpd_entity *entity)
mpd_entity_type
mpd_entity_type
Definition entity.h:22
MPD_ENTITY_TYPE_UNKNOWN
@ MPD_ENTITY_TYPE_UNKNOWN
Definition entity.h:27
MPD_ENTITY_TYPE_SONG
@ MPD_ENTITY_TYPE_SONG
Definition entity.h:37
MPD_ENTITY_TYPE_DIRECTORY
@ MPD_ENTITY_TYPE_DIRECTORY
Definition entity.h:32
MPD_ENTITY_TYPE_PLAYLIST
@ MPD_ENTITY_TYPE_PLAYLIST
Definition entity.h:42
mpd_entity_get_directory
const struct mpd_directory * mpd_entity_get_directory(const struct mpd_entity *entity)
mpd_entity_free
void mpd_entity_free(struct mpd_entity *entity)
mpd_entity_feed
bool mpd_entity_feed(struct mpd_entity *entity, const struct mpd_pair *pair)
mpd_entity_get_playlist
const struct mpd_playlist * mpd_entity_get_playlist(const struct mpd_entity *entity)
mpd_recv_entity
struct mpd_entity * mpd_recv_entity(struct mpd_connection *connection)
mpd_entity_get_song
const struct mpd_song * mpd_entity_get_song(const struct mpd_entity *entity)
song.h
MPD client library.
mpd_connection
mpd_directory
mpd_entity
mpd_pair
Definition pair.h:16
mpd_playlist
mpd_song