Now that I'm using vectors for everything I don't need to maintain my own class. Nothing uses it now, so it can be safely removed. Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
43 lines
650 B
C++
43 lines
650 B
C++
#ifndef LIBSARIA_LIBRARY_H
|
|
#define LIBSARIA_LIBRARY_H
|
|
|
|
#include <fs.h>
|
|
#include <track.h>
|
|
#include <playlist.h>
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
using namespace std;
|
|
|
|
namespace libsaria
|
|
{
|
|
|
|
namespace library
|
|
{
|
|
|
|
struct Path {
|
|
bool visible;
|
|
unsigned int id;
|
|
string path;
|
|
vector<Track> tracks;
|
|
};
|
|
|
|
void init();
|
|
void add_path(string);
|
|
void delete_path(Path *);
|
|
void update_path(Path *);
|
|
void save_path(Path *);
|
|
void update_all();
|
|
|
|
void hide_path(Path *);
|
|
void show_path(Path *);
|
|
|
|
Track *lookup(unsigned int, unsigned int);
|
|
void set_random(bool);
|
|
Playlist *get_playlist();
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* LIBSARIA_LIBRARY_H */
|