summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/stubs.c11
-rw-r--r--uisimulator/x11/Makefile5
2 files changed, 15 insertions, 1 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index 9b628828ae..18aadf44d7 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -179,6 +179,17 @@ void mpeg_set_pitch(int pitch)
179 (void)pitch; 179 (void)pitch;
180} 180}
181 181
182static int sleeptime;
183void set_sleep_timer(int seconds)
184{
185 sleeptime = seconds;
186}
187
188int get_sleep_timer(void)
189{
190 return sleeptime;
191}
192
182#ifdef HAVE_LCD_CHARCELLS 193#ifdef HAVE_LCD_CHARCELLS
183void lcd_clearrect (int x, int y, int nx, int ny) 194void lcd_clearrect (int x, int y, int nx, int ny)
184{ 195{
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile
index 5a22f83c8f..ea511474a6 100644
--- a/uisimulator/x11/Makefile
+++ b/uisimulator/x11/Makefile
@@ -90,7 +90,7 @@ FIRMSRCS = $(LCDSRSC) sprintf.c id3.c debug.c usb.c mpeg.c power.c\
90 90
91APPS = main.c tree.c menu.c credits.c main_menu.c language.c\ 91APPS = main.c tree.c menu.c credits.c main_menu.c language.c\
92 playlist.c wps.c wps-display.c settings.c status.c icons.c\ 92 playlist.c wps.c wps-display.c settings.c status.c icons.c\
93 screens.c peakmeter.c viewer.c 93 screens.c peakmeter.c viewer.c sleeptimer.c
94 94
95MENUS = games_menu.c demo_menu.c settings_menu.c sound_menu.c 95MENUS = games_menu.c demo_menu.c settings_menu.c sound_menu.c
96 96
@@ -215,6 +215,9 @@ $(OBJDIR)/main.o: $(APPDIR)/main.c
215$(OBJDIR)/wps.o: $(APPDIR)/wps.c 215$(OBJDIR)/wps.o: $(APPDIR)/wps.c
216 $(CC) $(APPCFLAGS) -c $< -o $@ 216 $(CC) $(APPCFLAGS) -c $< -o $@
217 217
218$(OBJDIR)/sleeptimer.o: $(APPDIR)/sleeptimer.c
219 $(CC) $(APPCFLAGS) -c $< -o $@
220
218$(OBJDIR)/viewer.o: $(APPDIR)/viewer.c 221$(OBJDIR)/viewer.o: $(APPDIR)/viewer.c
219 $(CC) $(APPCFLAGS) -c $< -o $@ 222 $(CC) $(APPCFLAGS) -c $< -o $@
220 223