libsaria: Export size of a library path to the UI
Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
a0b7718ee7
commit
808927da45
|
@ -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 &);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue