summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-11-06 00:44:38 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-11-06 00:44:38 +0000
commitba9b4334898ef097bf6a4e8dd4fb74d7e58aad86 (patch)
tree77f3702757edf46c78609164808e872609f72d25
parent6015b1ff58388da2e58582a442795eac69cb27a8 (diff)
downloadrockbox-ba9b4334898ef097bf6a4e8dd4fb74d7e58aad86.tar.gz
rockbox-ba9b4334898ef097bf6a4e8dd4fb74d7e58aad86.zip
Made the recording filename creation function global
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4020 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/recording.c8
-rw-r--r--apps/recorder/recording.h1
2 files changed, 5 insertions, 4 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 0f095bef48..ab1527444c 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -136,7 +136,7 @@ void adjust_cursor(void)
}
}
-static char *create_filename(void)
+char *rec_create_filename(void)
{
static char fname[32];
struct tm * tm;
@@ -216,14 +216,14 @@ bool recording_screen(void)
if(!mpeg_status())
{
have_recorded = true;
- mpeg_record(create_filename());
+ mpeg_record(rec_create_filename());
status_set_playmode(STATUS_RECORD);
update_countdown = 1; /* Update immediately */
last_seconds = 0;
}
else
{
- mpeg_new_file(create_filename());
+ mpeg_new_file(rec_create_filename());
update_countdown = 1; /* Update immediately */
}
break;
@@ -394,7 +394,7 @@ bool recording_screen(void)
if (mpeg_status() && (seconds >= dseconds))
{
- mpeg_new_file(create_filename());
+ mpeg_new_file(rec_create_filename());
update_countdown = 1;
last_seconds = 0;
}
diff --git a/apps/recorder/recording.h b/apps/recorder/recording.h
index 4818b42b1f..08edbbcfb4 100644
--- a/apps/recorder/recording.h
+++ b/apps/recorder/recording.h
@@ -20,5 +20,6 @@
#define RECORDING_H
bool recording_screen(void);
+char *rec_create_filename(void);
#endif