diff options
| author | Nick Peskett <rockbox@peskett.co.uk> | 2011-12-16 10:09:41 +0000 |
|---|---|---|
| committer | Nick Peskett <rockbox@peskett.co.uk> | 2011-12-16 10:09:41 +0000 |
| commit | 02fd314a0b426d6d445e2c9b167681ade6b0c1d2 (patch) | |
| tree | ad6100925dadaae0a69b8ec87b03eb8c1c5b23ab /apps/cuesheet.h | |
| parent | 014003afac4e6ab5f132df25e0e92106ed21607a (diff) | |
| download | rockbox-02fd314a0b426d6d445e2c9b167681ade6b0c1d2.zip rockbox-02fd314a0b426d6d445e2c9b167681ade6b0c1d2.tar.gz rockbox-02fd314a0b426d6d445e2c9b167681ade6b0c1d2.tar.bz2 rockbox-02fd314a0b426d6d445e2c9b167681ade6b0c1d2.tar.xz | |
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.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/apps/cuesheet.h b/apps/cuesheet.h index e8d77ca..31841da 100644 --- a/apps/cuesheet.h +++ b/apps/cuesheet.h @@ -51,11 +51,18 @@ struct cuesheet { struct cue_track_info *curr_track; }; -/* looks if there is a cuesheet file that has a name matching "trackpath" */ -bool look_for_cuesheet_file(const char *trackpath, char *found_cue_path); +struct cuesheet_file { + char path[MAX_PATH]; + int size; + off_t pos; + enum character_encoding encoding; +}; + +/* looks if there is a cuesheet file with a name matching path of "track_id3" */ +bool look_for_cuesheet_file(struct mp3entry *track_id3, struct cuesheet_file *cue_file); -/* parse cuesheet "file" and store the information in "cue" */ -bool parse_cuesheet(char *file, struct cuesheet *cue); +/* parse cuesheet_file "cue_file" and store the information in "cue" */ +bool parse_cuesheet(struct cuesheet_file *cue_file, struct cuesheet *cue); /* reads a cuesheet to find the audio track associated to it */ bool get_trackname_from_cuesheet(char *filename, char *buf); |