summaryrefslogtreecommitdiff
path: root/apps/cuesheet.h
diff options
context:
space:
mode:
authorNick Peskett <rockbox@peskett.co.uk>2011-12-16 10:09:41 +0000
committerNick Peskett <rockbox@peskett.co.uk>2011-12-16 10:09:41 +0000
commit02fd314a0b426d6d445e2c9b167681ade6b0c1d2 (patch)
treead6100925dadaae0a69b8ec87b03eb8c1c5b23ab /apps/cuesheet.h
parent014003afac4e6ab5f132df25e0e92106ed21607a (diff)
downloadrockbox-02fd314a0b426d6d445e2c9b167681ade6b0c1d2.tar.gz
rockbox-02fd314a0b426d6d445e2c9b167681ade6b0c1d2.zip
FS #12419 : Support for embedded cuesheets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31321 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/cuesheet.h')
-rw-r--r--apps/cuesheet.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/apps/cuesheet.h b/apps/cuesheet.h
index e8d77ca3a9..31841dacf6 100644
--- a/apps/cuesheet.h
+++ b/apps/cuesheet.h
@@ -51,11 +51,18 @@ struct cuesheet {
51 struct cue_track_info *curr_track; 51 struct cue_track_info *curr_track;
52}; 52};
53 53
54/* looks if there is a cuesheet file that has a name matching "trackpath" */ 54struct cuesheet_file {
55bool look_for_cuesheet_file(const char *trackpath, char *found_cue_path); 55 char path[MAX_PATH];
56 int size;
57 off_t pos;
58 enum character_encoding encoding;
59};
60
61/* looks if there is a cuesheet file with a name matching path of "track_id3" */
62bool look_for_cuesheet_file(struct mp3entry *track_id3, struct cuesheet_file *cue_file);
56 63
57/* parse cuesheet "file" and store the information in "cue" */ 64/* parse cuesheet_file "cue_file" and store the information in "cue" */
58bool parse_cuesheet(char *file, struct cuesheet *cue); 65bool parse_cuesheet(struct cuesheet_file *cue_file, struct cuesheet *cue);
59 66
60/* reads a cuesheet to find the audio track associated to it */ 67/* reads a cuesheet to find the audio track associated to it */
61bool get_trackname_from_cuesheet(char *filename, char *buf); 68bool get_trackname_from_cuesheet(char *filename, char *buf);