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-2025 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
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 *parse_search_expression_to_list(const char *expression, enum search_type type);
30void free_search_expression_list(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.
struct t_list * parse_search_expression_to_list(const char *expression, enum search_type type)
Definition search.c:95
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:276
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:174
search_type
Definition search.h:24
void free_search_expression_list(struct t_list *expr_list)
Definition search.c:160
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:367
Webradio functions.
Custom libmpdclient include.
Definition album.c:46
Definition list.h:32
Definition fields.h:20
Definition webradio.h:69
Definition webradio.h:61