libsaria: Export size of a library path to the UI

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-01-25 08:27:44 -05:00
parent a0b7718ee7
commit 808927da45
2 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,7 @@ namespace libsaria
void load_file(InFile &);
string get_path();
unsigned int get_size();
void prepare_for_removal();
void get_info(void (*)(struct libsaria::library::PathInfo &));
void add_track(string &, sid_t &);

View File

@ -35,6 +35,11 @@ namespace libsaria
return path;
}
unsigned int LibraryPath::get_size()
{
return file_list.size();
}
void LibraryPath::get_info(void (*info_func)(struct libsaria::library::PathInfo &))
{
struct libsaria::library::PathInfo info;