1 /* Gnome Music Player Client (GMPC) 2 * Copyright (C) 2004-2011 Qball Cow <qball@gmpclient.org> 3 * Project homepage: http://gmpclient.org/ 4 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 15 * You should have received a copy of the GNU General Public License along 16 * with this program; if not, write to the Free Software Foundation, Inc., 17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 */ 19 #ifndef __ADVANCED_SEARCH_H__ 20 #define __ADVANCED_SEARCH_H__ 21 22 /** 23 * Initialize the advanced_search system. 24 */ 25 void advanced_search_init(void); 26 /** 27 * Update the advanced_search regex to include only the supported tags 28 */ 29 void advanced_search_update_taglist(void); 30 /** 31 * Destroy all the advanced_search system and clean all allocated memory. 32 */ 33 void advanced_search_destroy(void); 34 /** 35 * Execute query. 36 * @param query the query to execute. 37 * @param playlist set to TRUE to search only songs in the playlist. 38 * 39 * @returns the search result in a #MpdData list. 40 */ 41 MpdData *advanced_search(const gchar *query, int playlist); 42 43 #endif 44