diff --git a/src/screen_search.c b/src/screen_search.c
index ff78082c7f0c3140216966b95379812f2c35b08b..9ab9a3f716f6be9e6ccb03bb43e62d931aac2791 100644 (file)
--- a/src/screen_search.c
+++ b/src/screen_search.c
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
#include "i18n.h"
#include "options.h"
#include "charset.h"
#include "utils.h"
#include "screen_utils.h"
#include "screen_browser.h"
+#include "filelist.h"
#include <ctype.h>
#include <stdlib.h>
/* the playlist has been updated -> fix highlights */
static void
-playlist_changed_callback(mpdclient_t *c, int event, gpointer data)
+playlist_changed_callback(struct mpdclient *c, int event, gpointer data)
{
browser_playlist_changed(&browser, c, event, data);
search_repaint_if_active();
}
static void
-search_clear(mpdclient_t *c,
+search_clear(struct mpdclient *c,
gboolean clear_pattern)
{
if (browser.filelist) {
}
}
-static mpdclient_filelist_t *
-filelist_search(mpdclient_t *c, G_GNUC_UNUSED int exact_match, int table,
+static struct filelist *
+filelist_search(struct mpdclient *c, G_GNUC_UNUSED int exact_match, int table,
gchar *local_pattern)
{
- mpdclient_filelist_t *list, *list2;
+ struct filelist *list, *list2;
gchar *filter_utf8 = locale_to_utf8(local_pattern);
if (table == SEARCH_ARTIST_TITLE) {
* Its ugly and MUST be redesigned before the next release!
*-----------------------------------------------------------------------
*/
-static mpdclient_filelist_t *
-search_advanced_query(char *query, mpdclient_t *c)
+static struct filelist *
+search_advanced_query(char *query, struct mpdclient *c)
{
int i,j;
char **strv;
int table[10];
char *arg[10];
- mpdclient_filelist_t *fl = NULL;
+ struct filelist *fl = NULL;
advanced_search_mode = FALSE;
if( g_strrstr(query, ":") == NULL )
}
static void
-search_new(mpdclient_t *c)
+search_new(struct mpdclient *c)
{
if (c->connection == NULL)
return;
}
static void
-open(G_GNUC_UNUSED mpdclient_t *c)
+open(G_GNUC_UNUSED struct mpdclient *c)
{
// if( pattern==NULL )
// search_new(screen, c);
}
static bool
-search_cmd(mpdclient_t *c, command_t cmd)
+search_cmd(struct mpdclient *c, command_t cmd)
{
switch (cmd) {
case CMD_SEARCH_MODE: