diff options
Diffstat (limited to 'track.h')
| -rw-r--r-- | track.h | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ +#pragma once + +#include "link.h" +#include "util.h" + + +struct track { + char *name; + char *artist; + float duration; + struct link tags; + char *fname, *fpath; + + struct link link; +}; + +struct track_ref { + struct track *track; + + struct link link; +}; + + +struct track *track_init(const char *dir, const char *file); +void track_free(struct track *t); |
