libsaria: Added library::update()
This will rescan every library path and add new files to the library. Eventually it should probably remove files that no longer exist...
This commit is contained in:
parent
60dc610195
commit
c4cdfbe4b3
|
@ -18,6 +18,7 @@ namespace libsaria
|
|||
|
||||
void load();
|
||||
void save();
|
||||
void update();
|
||||
void refresh();
|
||||
|
||||
void add_path(string);
|
||||
|
|
|
@ -69,6 +69,13 @@ namespace libsaria
|
|||
it->second.get_info(info_func);
|
||||
}
|
||||
|
||||
void library::update()
|
||||
{
|
||||
map<string, LibraryPath>::iterator it;
|
||||
for (it = path_map.begin(); it != path_map.end(); it++)
|
||||
it->second.update();
|
||||
}
|
||||
|
||||
void library::play_id(ino_t id)
|
||||
{
|
||||
map<string, LibraryPath>::iterator it;
|
||||
|
|
Loading…
Reference in New Issue