summaryrefslogtreecommitdiffstats
path: root/track.h
diff options
context:
space:
mode:
Diffstat (limited to 'track.h')
-rw-r--r--track.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/track.h b/track.h
new file mode 100644
index 0000000..b2cfa4f
--- /dev/null
+++ b/track.h
@@ -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);