summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-07-16 10:54:37 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-07-16 10:54:37 +0000
commit1812eae051c2352226975e413f63b1cf519ba94f (patch)
tree94bed31a85f087a31321a50e0b7163d9b77340f6 /uisimulator
parent761cd95f23e23aa99b4d7f6adfb295355318517a (diff)
downloadrockbox-1812eae051c2352226975e413f63b1cf519ba94f.tar.gz
rockbox-1812eae051c2352226975e413f63b1cf519ba94f.zip
Added stub for battery_level()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1365 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/stubs.c33
-rw-r--r--uisimulator/x11/Makefile9
-rw-r--r--uisimulator/x11/lcd-x11.c10
3 files changed, 39 insertions, 13 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
new file mode 100644
index 0000000000..cf529c07c4
--- /dev/null
+++ b/uisimulator/common/stubs.c
@@ -0,0 +1,33 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 by Björn Stenberg <bjorn@haxx.se>
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20void backlight_on(void)
21{
22 /* we could do something better here! */
23}
24
25void backlight_time(int dummy)
26{
27 (void)dummy;
28}
29
30int battery_level(void)
31{
32 return 73;
33}
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile
index 0c82b2d0a3..c91342fa9e 100644
--- a/uisimulator/x11/Makefile
+++ b/uisimulator/x11/Makefile
@@ -42,7 +42,7 @@ DISPLAY = -DHAVE_LCD_BITMAP
42KEYPAD = -DHAVE_RECORDER_KEYPAD 42KEYPAD = -DHAVE_RECORDER_KEYPAD
43 43
44DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \ 44DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \
45$(KEYPAD) $(DISPLAY) 45$(KEYPAD) $(DISPLAY) -DLCD_PROPFONTS
46 46
47LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl 47LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl
48 48
@@ -69,7 +69,7 @@ ifdef MPEG_PLAY
69 INCLUDES += -I$(PREVAPPDIR)/common 69 INCLUDES += -I$(PREVAPPDIR)/common
70endif 70endif
71 71
72CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) -W -Wall 72CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) -W -Wall
73 73
74APPCFLAGS = $(DEBUG) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(APPINCLUDES) -W -Wall 74APPCFLAGS = $(DEBUG) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(APPINCLUDES) -W -Wall
75 75
@@ -84,7 +84,7 @@ ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP)
84 APPS += tetris.c sokoban.c bounce.c boxes.c icons.c bmp.c 84 APPS += tetris.c sokoban.c bounce.c boxes.c icons.c bmp.c
85endif 85endif
86 86
87SRCS = screenhack.c uibasic.c resources.c visual.c lcd-x11.c \ 87SRCS = screenhack.c uibasic.c resources.c visual.c lcd-x11.c stubs.c \
88 button-x11.c io.c thread.c $(APPS) $(MENUS) $(FIRMSRCS) 88 button-x11.c io.c thread.c $(APPS) $(MENUS) $(FIRMSRCS)
89 89
90ifdef MPEG_PLAY 90ifdef MPEG_PLAY
@@ -221,6 +221,9 @@ $(OBJDIR)/sprintf.o: $(COMMON)/sprintf.c
221$(OBJDIR)/usb.o: $(FIRMWAREDIR)/usb.c 221$(OBJDIR)/usb.o: $(FIRMWAREDIR)/usb.c
222 $(CC) $(CFLAGS) -c $< -o $@ 222 $(CC) $(CFLAGS) -c $< -o $@
223 223
224$(OBJDIR)/stubs.o: ../common/stubs.c
225 $(CC) $(CFLAGS) -c $< -o $@
226
224 227
225# these ones are simulator-specific 228# these ones are simulator-specific
226 229
diff --git a/uisimulator/x11/lcd-x11.c b/uisimulator/x11/lcd-x11.c
index 8d58dcbb17..96ce800c8f 100644
--- a/uisimulator/x11/lcd-x11.c
+++ b/uisimulator/x11/lcd-x11.c
@@ -109,13 +109,3 @@ void lcd_update (void)
109/* Logf("lcd_update: Draws %d pixels, clears %d pixels", p, cp);*/ 109/* Logf("lcd_update: Draws %d pixels, clears %d pixels", p, cp);*/
110 XSync(dpy,False); 110 XSync(dpy,False);
111} 111}
112
113void backlight_on(void)
114{
115 /* we could do something better here! */
116}
117
118void backlight_time(int dummy)
119{
120 (void)dummy;
121}