summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-11-17 14:25:02 +0000
committerNils Wallménius <nils@rockbox.org>2007-11-17 14:25:02 +0000
commite39fc28fdcfcd877d714d4690f062023eb8b61c1 (patch)
tree76f82ba6f772c37b55b1d666fdbbe6c3747f9f92
parent7f1fbe4af2d7e44e808418a969f5d2301b002c61 (diff)
downloadrockbox-e39fc28fdcfcd877d714d4690f062023eb8b61c1.tar.gz
rockbox-e39fc28fdcfcd877d714d4690f062023eb8b61c1.zip
Code police, declare pointers in .c and expor them
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15653 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/cuesheet.c3
-rw-r--r--apps/cuesheet.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c
index 0928ac7e46..e779c8f07d 100644
--- a/apps/cuesheet.c
+++ b/apps/cuesheet.c
@@ -43,6 +43,9 @@
#define CUE_DIR ROCKBOX_DIR "/cue"
+struct cuesheet *curr_cue;
+struct cuesheet *temp_cue;
+
#if CONFIG_CODEC != SWCODEC
/* special trickery because the hwcodec playback engine is in firmware/ */
static bool cuesheet_handler(const char *filename)
diff --git a/apps/cuesheet.h b/apps/cuesheet.h
index 76ffe9681d..d5a7504b49 100644
--- a/apps/cuesheet.h
+++ b/apps/cuesheet.h
@@ -48,8 +48,8 @@ struct cuesheet {
struct cue_track_info *curr_track;
};
-struct cuesheet *curr_cue;
-struct cuesheet *temp_cue;
+extern struct cuesheet *curr_cue;
+extern struct cuesheet *temp_cue;
/* returns true if cuesheet support is initialised */
bool cuesheet_is_enabled(void);