aboutsummaryrefslogtreecommitdiffstats
path: root/src/wreadln.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-07 13:27:31 +0100
committerMax Kellermann <max@duempel.org>2008-11-07 13:27:31 +0100
commit54674384020f5d8019ca71f6c283d18ba32d5171 (patch)
tree8684aa7a9ccd18c808ad265e7c7bb9e283833cdc /src/wreadln.c
parent9e8806dadee58efe36151a6bca22d65487ed02ee (diff)
downloadmpd-54674384020f5d8019ca71f6c283d18ba32d5171.tar.gz
mpd-54674384020f5d8019ca71f6c283d18ba32d5171.tar.xz
mpd-54674384020f5d8019ca71f6c283d18ba32d5171.zip
disable more features with --enable-mini
Disable lots of smaller features which don't have a separate configure option: - xterm title - screen list - horizontal scrolling - MPD version number check - key binding checks - character set conversion - bitrate display - highlighting in the file browser - completion / history
Diffstat (limited to 'src/wreadln.c')
-rw-r--r--src/wreadln.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wreadln.c b/src/wreadln.c
index 7abfc4ac2..df5b55e8c 100644
--- a/src/wreadln.c
+++ b/src/wreadln.c
@@ -72,9 +72,11 @@ struct wreadln {
/** max items stored in the history list */
static const guint wrln_max_history_length = 32;
+#ifndef NCMPC_MINI
void *wrln_completion_callback_data = NULL;
wrln_gcmp_pre_cb_t wrln_pre_completion_callback = NULL;
wrln_gcmp_post_cb_t wrln_post_completion_callback = NULL;
+#endif
/** converts a byte position to a screen column */
static unsigned
@@ -396,6 +398,10 @@ _wreadln(WINDOW *w,
gint key = 0;
size_t i;
+#ifdef NCMPC_MINI
+ (void)gcmp;
+#endif
+
/* turn off echo */
noecho();
/* make shure the cursor is visible */
@@ -458,6 +464,7 @@ _wreadln(WINDOW *w,
break;
case TAB:
+#ifndef NCMPC_MINI
if (gcmp) {
char *prefix = NULL;
GList *list;
@@ -477,6 +484,7 @@ _wreadln(WINDOW *w,
wrln_post_completion_callback(gcmp, wr.line, list,
wrln_completion_callback_data);
}
+#endif
break;
case KEY_CTRL_G: