libmpdclient 2.22
search.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2// Copyright The Music Player Daemon Project
3
12#ifndef LIBMPDCLIENT_SEARCH_H
13#define LIBMPDCLIENT_SEARCH_H
14
15#include "connection.h"
16#include "tag.h"
17#include "position.h"
18#include "compiler.h"
19
20#include <stdbool.h>
21#include <time.h>
22
35};
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
51bool
52mpd_search_db_songs(struct mpd_connection *connection, bool exact);
53
63bool
64mpd_search_add_db_songs(struct mpd_connection *connection, bool exact);
65
78bool
80 const char *playlist_name);
81
92bool
93mpd_search_queue_songs(struct mpd_connection *connection, bool exact);
94
105bool
106mpd_search_db_tags(struct mpd_connection *connection, enum mpd_tag_type type);
107
117bool mpd_count_db_songs(struct mpd_connection *connection);
118
129bool
131
142bool
144 enum mpd_operator oper,
145 const char *value);
146
155bool
157 enum mpd_operator oper,
158 const char *value);
159
169bool
171 enum mpd_operator oper,
172 enum mpd_tag_type type,
173 const char *value);
174
183bool
185 enum mpd_operator oper,
186 const char *value);
187
198bool
200 enum mpd_operator oper,
201 time_t value);
202
213bool
215 enum mpd_operator oper,
216 time_t value);
217
228bool
230 const char *expression);
231
241bool
243 enum mpd_tag_type type);
244
256bool
258 const char *name, bool descending);
259
271bool
273 enum mpd_tag_type type, bool descending);
274
285bool
287 unsigned start, unsigned end);
288
298bool
300 unsigned position, enum mpd_position_whence whence);
301
309bool
311
319void
321
331mpd_malloc
332struct mpd_pair *
333mpd_recv_pair_tag(struct mpd_connection *connection, enum mpd_tag_type type);
334
335#ifdef __cplusplus
336}
337#endif
338
339#endif
MPD client library.
MPD client library.
mpd_position_whence
Definition position.h:13
bool mpd_search_queue_songs(struct mpd_connection *connection, bool exact)
bool mpd_search_db_tags(struct mpd_connection *connection, enum mpd_tag_type type)
void mpd_search_cancel(struct mpd_connection *connection)
bool mpd_search_add_db_songs(struct mpd_connection *connection, bool exact)
bool mpd_search_add_expression(struct mpd_connection *connection, const char *expression)
bool mpd_search_add_any_tag_constraint(struct mpd_connection *connection, enum mpd_operator oper, const char *value)
bool mpd_search_add_base_constraint(struct mpd_connection *connection, enum mpd_operator oper, const char *value)
bool mpd_search_add_group_tag(struct mpd_connection *connection, enum mpd_tag_type type)
bool mpd_search_add_db_songs_to_playlist(struct mpd_connection *connection, const char *playlist_name)
bool mpd_search_commit(struct mpd_connection *connection)
bool mpd_search_add_sort_tag(struct mpd_connection *connection, enum mpd_tag_type type, bool descending)
bool mpd_search_add_modified_since_constraint(struct mpd_connection *connection, enum mpd_operator oper, time_t value)
bool mpd_search_db_songs(struct mpd_connection *connection, bool exact)
bool mpd_search_add_sort_name(struct mpd_connection *connection, const char *name, bool descending)
struct mpd_pair * mpd_recv_pair_tag(struct mpd_connection *connection, enum mpd_tag_type type)
bool mpd_search_add_window(struct mpd_connection *connection, unsigned start, unsigned end)
bool mpd_search_add_uri_constraint(struct mpd_connection *connection, enum mpd_operator oper, const char *value)
bool mpd_search_add_position(struct mpd_connection *connection, unsigned position, enum mpd_position_whence whence)
bool mpd_count_db_songs(struct mpd_connection *connection)
bool mpd_search_add_tag_constraint(struct mpd_connection *connection, enum mpd_operator oper, enum mpd_tag_type type, const char *value)
mpd_operator
Definition search.h:28
@ MPD_OPERATOR_DEFAULT
Definition search.h:34
bool mpd_searchcount_db_songs(struct mpd_connection *connection)
bool mpd_search_add_added_since_constraint(struct mpd_connection *connection, enum mpd_operator oper, time_t value)
mpd_tag_type
Definition tag.h:25