Search implementation.
More...
#include "src/lib/album.h"
#include "src/lib/fields.h"
#include "src/lib/mpdclient.h"
#include "src/lib/webradio.h"
#include <stdbool.h>
Go to the source code of this file.
|
| enum | search_type { SEARCH_TYPE_SONG
, SEARCH_TYPE_WEBRADIO
} |
◆ search_type
Types of struct to search
◆ search_expression_album()
Implements search expressions for albums.
- Parameters
-
| album | pointer to album struct |
| expr_list | expression list returned by parse_search_expression |
| any_tag_types | tags for special "any" tag in expression |
- Returns
- expression result
◆ search_expression_free()
| void search_expression_free |
( |
struct t_list * | expr_list | ) |
|
Frees the search expression list
- Parameters
-
| expr_list | pointer to the list |
◆ search_expression_parse()
| struct t_list * search_expression_parse |
( |
const char * | expression, |
|
|
enum search_type | type ) |
Public functions Parses a mpd search expression string to a list
- Parameters
-
| expression | mpd search expression |
| type | type of struct for the search expression |
- Returns
- list of the expression or NULL on error
◆ search_expression_song()
| bool search_expression_song |
( |
const struct mpd_song * | song, |
|
|
const struct t_list * | expr_list, |
|
|
const struct t_mympd_mpd_tags * | any_tag_types ) |
Implements search expressions for mpd songs.
- Parameters
-
| song | pointer to mpd song struct |
| expr_list | expression list returned by parse_search_expression |
| any_tag_types | tags for special "any" tag in expression |
- Returns
- expression result
◆ search_expression_webradio()
Implements search expressions for webradios.
- Parameters
-
| webradio | pointer to webradio struct |
| expr_list | expression list returned by parse_search_expression |
| any_tag_types | tags for special "any" tag in expression |
- Returns
- expression result