myMPD
Internal API documentation
Loading...
Searching...
No Matches
search.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-3.0-or-later
3 myMPD (c) 2018-2026 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
10
11#ifndef MYMPD_LIB_SEARCH_H
12#define MYMPD_LIB_SEARCH_H
13
14#include "src/lib/album.h"
15#include "src/lib/fields.h"
16#include "src/lib/mpdclient.h"
17#include "src/lib/webradio.h"
18
19#include <stdbool.h>
20
25 SEARCH_TYPE_SONG,
26 SEARCH_TYPE_WEBRADIO
27};
28
29struct t_list *search_expression_parse(const char *expression, enum search_type type);
30void search_expression_free(struct t_list *expr_list);
31bool search_expression_song(const struct mpd_song *song, const struct t_list *expr_list, const struct t_mympd_mpd_tags *any_tag_types);
32bool search_expression_album(const struct t_album *album, const struct t_list *expr_list, const struct t_mympd_mpd_tags *any_tag_types);
33bool search_expression_webradio(const struct t_webradio_data *webradio, const struct t_list *expr_list, const struct t_webradio_tags *any_tag_types);
34
35#endif
Album implementation.
Fields handling.
bool search_expression_album(const struct t_album *album, const struct t_list *expr_list, const struct t_mympd_mpd_tags *any_tag_types)
Definition search.c:261
void search_expression_free(struct t_list *expr_list)
Definition search.c:161
bool search_expression_song(const struct mpd_song *song, const struct t_list *expr_list, const struct t_mympd_mpd_tags *any_tag_types)
Definition search.c:175
struct t_list * search_expression_parse(const char *expression, enum search_type type)
Definition search.c:94
search_type
Definition search.h:24
bool search_expression_webradio(const struct t_webradio_data *webradio, const struct t_list *expr_list, const struct t_webradio_tags *any_tag_types)
Definition search.c:336
Webradio functions.
Custom libmpdclient include.
Definition album.c:46
Definition list.h:33
Definition fields.h:20
Definition webradio.h:69
Definition webradio.h:61