summaryrefslogtreecommitdiff
path: root/codec.h
diff options
context:
space:
mode:
Diffstat (limited to 'codec.h')
-rw-r--r--codec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/codec.h b/codec.h
index c2e66caf..fc8e4870 100644
--- a/codec.h
+++ b/codec.h
@@ -13,11 +13,12 @@ typedef struct {
typedef struct codec_s {
fileinfo_t info;
- int (*init) (const char *fname);
+ int (*init) (const char *fname, int track, float start, float end);
void (*free) (void);
// player is responsible for starting next song if -1 is returned
int (*read) (char *bytes, int size);
int (*seek) (float time);
+ int (*add) (const char *fname);
} codec_t;
codec_t *get_codec_for_file (const char *fname);