libmpdclient 2.22
entity.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2// Copyright The Music Player Daemon Project
3
10#ifndef MPD_ENTITY_H
11#define MPD_ENTITY_H
12
13#include "song.h"
14#include "directory.h"
15#include "compiler.h"
16
17struct mpd_pair;
18
28
33
38
43};
44
51struct mpd_entity;
52
53#ifdef __cplusplus
54extern "C" {
55#endif
56
60void
62
66mpd_pure
68mpd_entity_get_type(const struct mpd_entity *entity);
69
77mpd_pure
78const struct mpd_directory *
80
88mpd_pure
89const struct mpd_song *
90mpd_entity_get_song(const struct mpd_entity *entity);
91
99mpd_pure
100const struct mpd_playlist *
102
109mpd_malloc
110struct mpd_entity *
111mpd_entity_begin(const struct mpd_pair *pair);
112
121bool
122mpd_entity_feed(struct mpd_entity *entity, const struct mpd_pair *pair);
123
130mpd_malloc
131struct mpd_entity *
132mpd_recv_entity(struct mpd_connection *connection);
133
134#ifdef __cplusplus
135}
136#endif
137
138#endif
MPD client library.
struct mpd_entity * mpd_entity_begin(const struct mpd_pair *pair)
enum mpd_entity_type mpd_entity_get_type(const struct mpd_entity *entity)
mpd_entity_type
Definition entity.h:22
@ MPD_ENTITY_TYPE_UNKNOWN
Definition entity.h:27
@ MPD_ENTITY_TYPE_SONG
Definition entity.h:37
@ MPD_ENTITY_TYPE_DIRECTORY
Definition entity.h:32
@ MPD_ENTITY_TYPE_PLAYLIST
Definition entity.h:42
const struct mpd_directory * mpd_entity_get_directory(const struct mpd_entity *entity)
void mpd_entity_free(struct mpd_entity *entity)
bool mpd_entity_feed(struct mpd_entity *entity, const struct mpd_pair *pair)
const struct mpd_playlist * mpd_entity_get_playlist(const struct mpd_entity *entity)
struct mpd_entity * mpd_recv_entity(struct mpd_connection *connection)
const struct mpd_song * mpd_entity_get_song(const struct mpd_entity *entity)
MPD client library.