diff --git a/src/filelist.h b/src/filelist.h
index 63c2758ff0dea7753193aeb533fa7c3ee86fa7ab..f8ada59e3ad8cdeecb22abb9215f648c92f41280 100644 (file)
--- a/src/filelist.h
+++ b/src/filelist.h
/* ncmpc (Ncurses MPD Client)
/* ncmpc (Ncurses MPD Client)
- * (c) 2004-2010 The Music Player Daemon Project
+ * (c) 2004-2017 The Music Player Daemon Project
* Project homepage: http://musicpd.org
* Project homepage: http://musicpd.org
-
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
-
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-*/
+ */
#ifndef FILELIST_H
#define FILELIST_H
#ifndef FILELIST_H
#define FILELIST_H
+#include "Compiler.h"
+
#include <glib.h>
struct mpd_connection;
#include <glib.h>
struct mpd_connection;
return filelist_length(filelist) == 0;
}
return filelist_length(filelist) == 0;
}
+gcc_pure
static inline struct filelist_entry *
filelist_get(const struct filelist *filelist, guint i)
{
static inline struct filelist_entry *
filelist_get(const struct filelist *filelist, guint i)
{
void
filelist_move(struct filelist *filelist, struct filelist *from);
void
filelist_move(struct filelist *filelist, struct filelist *from);
+gcc_pure
gint
compare_filelist_entry_path(gconstpointer filelist_entry1,
gconstpointer filelist_entry2);
gint
compare_filelist_entry_path(gconstpointer filelist_entry1,
gconstpointer filelist_entry2);
void
filelist_no_duplicates(struct filelist *filelist);
void
filelist_no_duplicates(struct filelist *filelist);
+gcc_pure
int
int
-filelist_find_song(struct filelist *flist, const struct mpd_song *song);
+filelist_find_song(const struct filelist *flist, const struct mpd_song *song);
+gcc_pure
int
int
-filelist_find_directory(struct filelist *filelist, const char *name);
+filelist_find_directory(const struct filelist *filelist, const char *name);
/**
* Receives entities from the connection, and appends them to the
/**
* Receives entities from the connection, and appends them to the