Add/Update translations
[gmpc-dynamic-playlist.git] / src / search.h
blobf4eee1ef49e3f626011697f08d0b6ef508fb46af
1 #ifndef _DYN_LIST_PLUGIN_SEARCH
2 #define _DYN_LIST_PLUGIN_SEARCH
4 #include <gmpc/plugin.h>
6 #define STATUS_COUNT 4
7 typedef enum
9 NotFound = 0 << 0,
10 Found = 1 << 0,
11 Song = 1 << 1,
12 Artist = 1 << 2,
13 Genre = 1 << 3
14 } status;
16 typedef enum
18 ArtistOf = 0,
19 Same = 1
20 } searchStyle;
22 gboolean tryToAdd_genre(const gchar* l_genre);
23 gboolean tryToAdd_comment(const gchar* l_comment);
24 gboolean tryToAdd_random();
25 void search(mpd_Song* l_song, gint l_remains, gboolean l_force_no_delay);
26 void search_easy();
27 void search_start(mpd_Song* l_song);
28 void reset_search_delay();
30 void init_search();
31 gboolean is_searching();
32 gboolean is_search_delayed();
33 gboolean will_search_delay();
35 void set_search_active(gboolean l_value);
36 void set_search_active_easy(gpointer l_data, const gchar* l_param);
37 gboolean get_search_active();
39 guint8 get_queue_songs();
40 void set_queue_songs(guint8 l_value);
42 void set_local_search_genre(gboolean l_value);
43 gboolean get_local_search_genre();
45 void set_local_search_genre_style(searchStyle l_value);
46 searchStyle get_local_search_genre_style();
48 void set_local_search_comment(gboolean l_value);
49 gboolean get_local_search_comment();
51 guint8 get_delay_time();
52 void set_delay_time(guint8 l_value);
54 gboolean get_search_artist();
55 void set_search_artist(gboolean l_value);
56 gboolean get_search_artist_same();
57 void set_search_artist_same(gboolean l_value);
58 gint get_search_artist_max();
59 void set_search_artist_max(gint l_value);
61 gboolean get_search_song();
62 void set_search_song(gboolean l_value);
63 gint get_search_song_max();
64 void set_search_song_max(gint l_value);
66 gboolean get_search_genre();
67 void set_search_genre(gboolean l_value);
68 gboolean get_search_genre_same();
69 void set_search_genre_same(gboolean l_value);
70 gint get_search_genre_max();
71 void set_search_genre_max(gint l_value);
73 #endif
75 /* vim:set ts=4 sw=4: */