summaryrefslogtreecommitdiff
path: root/music.h
blob: 8ce93c1b8017d2f3492fca8ce7b006cfc6900bb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef MUSIC_H
#define MUSIC_H

#include <boost/filesystem.hpp>
#include <vector>

namespace fs = boost::filesystem;

class MusicTrack {
	public:
		MusicTrack(const fs::path path);
		fs::path path;
};

class MusicDirectory;
typedef std::vector<MusicDirectory> MusicDirectories;
typedef std::vector<MusicTrack> MusicTracks;

class MusicDirectory {
	public:
		MusicDirectory(const fs::path root);
		fs::path path;
		MusicDirectories directories;
		MusicTracks tracks;
};

namespace music {
	extern MusicDirectory *root_directory;
	void init(const fs::path root);
};

#endif