diff --git a/src/list_window.h b/src/list_window.h
index bac5d5e77d6aadbeddb3315e8107b260942d7750..2e1f76956ff1f24dfcebd0b7a94578248f806f9d 100644 (file)
--- a/src/list_window.h
+++ b/src/list_window.h
/* ncmpc (Ncurses MPD Client)
* (c) 2004-2010 The Music Player Daemon Project
* 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 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.
-*/
+ */
#ifndef LIST_WINDOW_H
#define LIST_WINDOW_H
(*list_window_paint_callback_t)(WINDOW *w, unsigned i,
unsigned y, unsigned width,
bool selected,
- void *data);
+ const void *data);
struct list_window {
WINDOW *w;
struct list_window *list_window_init(WINDOW *w,
unsigned width, unsigned height);
-/* destroy a list window (returns NULL) */
+/* destroy a list window */
void list_window_free(struct list_window *lw);
/* reset a list window (selected=0, start=0) */
void
list_window_paint2(const struct list_window *lw,
list_window_paint_callback_t paint_callback,
- void *callback_data);
+ const void *callback_data);
/* perform basic list window commands (movement) */
bool