libmpdclient  2.23
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 
17 struct mpd_pair;
18 
28 
33 
38 
43 };
44 
51 struct mpd_entity;
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
60 void
61 mpd_entity_free(struct mpd_entity *entity);
62 
66 mpd_pure
67 enum mpd_entity_type
68 mpd_entity_get_type(const struct mpd_entity *entity);
69 
77 mpd_pure
78 const struct mpd_directory *
79 mpd_entity_get_directory(const struct mpd_entity *entity);
80 
88 mpd_pure
89 const struct mpd_song *
90 mpd_entity_get_song(const struct mpd_entity *entity);
91 
99 mpd_pure
100 const struct mpd_playlist *
101 mpd_entity_get_playlist(const struct mpd_entity *entity);
102 
109 mpd_malloc
110 struct mpd_entity *
111 mpd_entity_begin(const struct mpd_pair *pair);
112 
121 bool
122 mpd_entity_feed(struct mpd_entity *entity, const struct mpd_pair *pair);
123 
130 mpd_malloc
131 struct mpd_entity *
132 mpd_recv_entity(struct mpd_connection *connection);
133 
134 #ifdef __cplusplus
135 }
136 #endif
137 
138 #endif
void mpd_entity_free(struct mpd_entity *entity)
enum mpd_entity_type mpd_entity_get_type(const struct mpd_entity *entity)
struct mpd_entity * mpd_recv_entity(struct mpd_connection *connection)
MPD client library.
const struct mpd_directory * mpd_entity_get_directory(const struct mpd_entity *entity)
struct mpd_entity * mpd_entity_begin(const struct mpd_pair *pair)
MPD client library.
mpd_entity_type
Definition: entity.h:22
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)
Definition: song.h:20
const struct mpd_song * mpd_entity_get_song(const struct mpd_entity *entity)
Definition: pair.h:16