summaryrefslogtreecommitdiffstats
path: root/track.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-12-04 13:48:01 +0100
committerLouis Burda <quent.burda@gmail.com>2021-12-20 15:31:16 +0100
commit9fe644f0d99375ffd3011d8828f7dbd0fb103af0 (patch)
tree71ed89f1c7316dba818bc921d772aaa1fc957dab /track.h
parentd68d0f39ab7675745e7d177f6774736f7ec58783 (diff)
downloadtmus-9fe644f0d99375ffd3011d8828f7dbd0fb103af0.tar.gz
tmus-9fe644f0d99375ffd3011d8828f7dbd0fb103af0.zip
Added more gui interaction
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);