diff options
author | Max Kellermann <max@duempel.org> | 2008-09-25 21:21:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-25 21:21:00 +0200 |
commit | 9791d3094719f1ed6c3c8ecf9c006b81d0de5370 (patch) | |
tree | a69a352e00ffa1abdfc7d26c01a724dedb5a5af9 /src/conf.c | |
parent | 3809e2f13bb6642d3a874c24df7d854aa0aea8b5 (diff) | |
download | mpd-9791d3094719f1ed6c3c8ecf9c006b81d0de5370.tar.gz mpd-9791d3094719f1ed6c3c8ecf9c006b81d0de5370.tar.xz mpd-9791d3094719f1ed6c3c8ecf9c006b81d0de5370.zip |
screen: pass screen_functions pointer to switch_screen_mode()
Trying to get rid of the screen ids. A pointer to screen_functions is
better for identifying a screen.
Diffstat (limited to 'src/conf.c')
-rw-r--r-- | src/conf.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/conf.c b/src/conf.c index c02df52cf..557024dc5 100644 --- a/src/conf.c +++ b/src/conf.c @@ -25,6 +25,7 @@ #include "support.h" #include "command.h" #include "colors.h" +#include "screen_list.h" #include <ctype.h> #include <stdio.h> @@ -81,10 +82,6 @@ typedef enum { KEY_PARSER_DONE } key_parser_state_t; - -extern gint screen_get_id(char *name); - - static gboolean str2bool(char *str) { @@ -337,7 +334,7 @@ check_screen_list(char *value) j=0; while( tmp && tmp[i] ) { tmp[i] = lowerstr(tmp[i]); - if( screen_get_id(tmp[i]) == -1 ) + if (screen_lookup_name(tmp[i]) == NULL) fprintf(stderr, _("Error: Unsupported screen \"%s\"\n"), tmp[i]); |