summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-05-03 08:35:14 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-05-03 08:35:14 +0000
commite15f8a21a971920558a6f463586b16a0ee49ad79 (patch)
tree91d6771d0979c43e5390dc1de0ba79cd0638ba25 /apps/gui
parent9c1ab1f0572da9d68f45fc8cb6c361cee0b33376 (diff)
downloadrockbox-e15f8a21a971920558a6f463586b16a0ee49ad79.zip
rockbox-e15f8a21a971920558a6f463586b16a0ee49ad79.tar.gz
rockbox-e15f8a21a971920558a6f463586b16a0ee49ad79.tar.bz2
rockbox-e15f8a21a971920558a6f463586b16a0ee49ad79.tar.xz
Made source files #include the header file that they implement to make sure they are in sync. Made some local functions static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17312 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/color_picker.c1
-rw-r--r--apps/gui/gwps-common.c2
-rw-r--r--apps/gui/list.c1
-rw-r--r--apps/gui/splash.c9
4 files changed, 8 insertions, 5 deletions
diff --git a/apps/gui/color_picker.c b/apps/gui/color_picker.c
index b883349..a788cba 100644
--- a/apps/gui/color_picker.c
+++ b/apps/gui/color_picker.c
@@ -32,6 +32,7 @@
#include "splash.h"
#include "action.h"
#include "icon.h"
+#include "color_picker.h"
/* structure for color info */
struct rgb_pick
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 9582a48..ed4ca17 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -64,7 +64,7 @@
/* draws the statusbar on the given wps-screen */
#ifdef HAVE_LCD_BITMAP
-void gui_wps_statusbar_draw(struct gui_wps *wps, bool force)
+static void gui_wps_statusbar_draw(struct gui_wps *wps, bool force)
{
bool draw = global_settings.statusbar;
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 2c84966..6b42295 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -38,6 +38,7 @@
#include "misc.h"
#include "talk.h"
#include "viewport.h"
+#include "list.h"
#ifdef HAVE_LCD_CHARCELLS
#define SCROLL_LIMIT 1
diff --git a/apps/gui/splash.c b/apps/gui/splash.c
index c690777..df0446e 100644
--- a/apps/gui/splash.c
+++ b/apps/gui/splash.c
@@ -25,6 +25,7 @@
#include "lang.h"
#include "settings.h"
#include "talk.h"
+#include "splash.h"
#ifndef MAX
#define MAX(a, b) (((a)>(b))?(a):(b))
@@ -185,7 +186,7 @@ static void splash(struct screen * screen, const char *fmt, va_list ap)
}
void gui_splash(struct screen * screen, int ticks,
- const unsigned char *fmt, ...)
+ const char *fmt, ...)
{
va_list ap;
va_start( ap, fmt );
@@ -196,21 +197,21 @@ void gui_splash(struct screen * screen, int ticks,
sleep(ticks);
}
-void gui_syncsplash(int ticks, const unsigned char *fmt, ...)
+void gui_syncsplash(int ticks, const char *fmt, ...)
{
va_list ap;
int i;
#if !defined(SIMULATOR) || CONFIG_CODEC == SWCODEC
long id;
/* fmt may be a so called virtual pointer. See settings.h. */
- if((id = P2ID(fmt)) >= 0)
+ if((id = P2ID((unsigned char *)fmt)) >= 0)
/* If fmt specifies a voicefont ID, and voice menus are
enabled, then speak it. */
cond_talk_ids_fq(id);
#endif
/* If fmt is a lang ID then get the corresponding string (which
still might contain % place holders). */
- fmt = P2STR(fmt);
+ fmt = P2STR((unsigned char *)fmt);
va_start( ap, fmt );
FOR_NB_SCREENS(i)
splash(&(screens[i]), fmt, ap);