summaryrefslogtreecommitdiff
path: root/music.h
diff options
context:
space:
mode:
Diffstat (limited to 'music.h')
-rw-r--r--music.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/music.h b/music.h
new file mode 100644
index 0000000..8e0bd9e
--- /dev/null
+++ b/music.h
@@ -0,0 +1,30 @@
+#ifndef MUSIC_H
+#define MUSIC_H
+
+#include <string>
+#include <vector>
+
+class MusicTrack {
+ public:
+ MusicTrack(const std::string filename);
+ std::string filename;
+};
+
+class MusicDirectory;
+typedef std::vector<MusicDirectory> MusicDirectories;
+typedef std::vector<MusicTrack> MusicTracks;
+
+class MusicDirectory {
+ public:
+ MusicDirectory(const std::string root);
+ std::string path;
+ MusicDirectories directories;
+ MusicTracks tracks;
+};
+
+namespace music {
+ extern MusicDirectory *root_directory;
+ void init(const std::string root);
+};
+
+#endif