2011-09-12 14:17:22 -04:00
|
|
|
#ifndef LIBSARIA_LIBRARY_H
|
|
|
|
#define LIBSARIA_LIBRARY_H
|
|
|
|
|
2011-09-18 18:06:54 -04:00
|
|
|
#include <libsaria/track.h>
|
|
|
|
|
|
|
|
#include <list>
|
2011-09-12 14:17:22 -04:00
|
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
|
2011-10-01 12:55:32 -04:00
|
|
|
namespace libsaria
|
|
|
|
{
|
2011-10-18 10:02:55 -04:00
|
|
|
namespace library
|
|
|
|
{
|
2011-10-20 10:23:35 -04:00
|
|
|
struct PathInfo {
|
|
|
|
string path;
|
|
|
|
unsigned int size;
|
|
|
|
};
|
|
|
|
|
2011-10-18 10:02:55 -04:00
|
|
|
void load();
|
|
|
|
void save();
|
2011-10-20 13:22:21 -04:00
|
|
|
void update();
|
2011-10-18 10:02:55 -04:00
|
|
|
void refresh();
|
|
|
|
|
|
|
|
void add_path(string);
|
|
|
|
void play_id(ino_t);
|
|
|
|
void for_each(void (*)(Track &));
|
2011-10-20 10:23:35 -04:00
|
|
|
void for_each_path(void (*)(struct PathInfo &));
|
2011-10-19 09:58:30 -04:00
|
|
|
|
|
|
|
unsigned int size();
|
2011-10-18 10:02:55 -04:00
|
|
|
}
|
2011-10-01 12:55:32 -04:00
|
|
|
}
|
2011-09-12 14:17:22 -04:00
|
|
|
|
|
|
|
#endif /* LIBSARIA_LIBRARY_H */
|