libsaria: Clean up LibraryPath class
I moved around some code and removed undefined functions
This commit is contained in:
parent
922c9e86ef
commit
4f2c75499f
|
@ -25,9 +25,7 @@ class LibraryPath
|
|||
list<TrackTag> *get_list();
|
||||
string get_path();
|
||||
void get_info(void (*)(struct libsaria::library::PathInfo &));
|
||||
bool get_info_id(ino_t &, void (*)(Track &));
|
||||
void insert_track(ino_t &inode, TrackTag &);
|
||||
bool play_id(ino_t &);
|
||||
void save(OutFile &);
|
||||
void update();
|
||||
unsigned int size();
|
||||
|
|
|
@ -5,6 +5,15 @@ using namespace std;
|
|||
#include <libsaria/library.h>
|
||||
#include "library.h"
|
||||
|
||||
LibraryPath::LibraryPath(string dir)
|
||||
{
|
||||
path = dir;
|
||||
}
|
||||
|
||||
LibraryPath::~LibraryPath()
|
||||
{
|
||||
}
|
||||
|
||||
string LibraryPath::get_path()
|
||||
{
|
||||
return path;
|
||||
|
@ -15,6 +24,11 @@ list<TrackTag> *LibraryPath::get_list()
|
|||
return &file_list;
|
||||
}
|
||||
|
||||
unsigned int LibraryPath::size()
|
||||
{
|
||||
return file_list.size();
|
||||
}
|
||||
|
||||
void LibraryPath::get_info(void (*info_func)(struct libsaria::library::PathInfo &))
|
||||
{
|
||||
struct libsaria::library::PathInfo info;
|
||||
|
@ -33,20 +47,6 @@ list<TrackTag>::iterator LibraryPath::find_id(ino_t &id)
|
|||
return it;
|
||||
}
|
||||
|
||||
LibraryPath::LibraryPath(string dir)
|
||||
{
|
||||
path = dir;
|
||||
}
|
||||
|
||||
LibraryPath::~LibraryPath()
|
||||
{
|
||||
}
|
||||
|
||||
unsigned int LibraryPath::size()
|
||||
{
|
||||
return file_list.size();
|
||||
}
|
||||
|
||||
namespace libsaria
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue