libsaria: Update single paths
Updating a single LibraryPath may sometimes be faster than updating the entire library.
This commit is contained in:
parent
b84a19cd77
commit
4f26d9ee2d
|
@ -19,6 +19,7 @@ namespace libsaria
|
||||||
void load();
|
void load();
|
||||||
void save();
|
void save();
|
||||||
void update();
|
void update();
|
||||||
|
void update_path(string);
|
||||||
void refresh();
|
void refresh();
|
||||||
|
|
||||||
void add_path(string);
|
void add_path(string);
|
||||||
|
|
|
@ -111,14 +111,6 @@ void ScanTask::run_task()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Other functions related to updating the library
|
|
||||||
*/
|
|
||||||
static void update_path(string dir)
|
|
||||||
{
|
|
||||||
get_library_path(dir)->update();
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace libsaria
|
namespace libsaria
|
||||||
{
|
{
|
||||||
void library::add_path(string dir)
|
void library::add_path(string dir)
|
||||||
|
@ -140,4 +132,8 @@ namespace libsaria
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void library::update_path(string dir)
|
||||||
|
{
|
||||||
|
get_library_path(dir)->update();
|
||||||
|
}
|
||||||
}; /* Namespace: libsaria */
|
}; /* Namespace: libsaria */
|
||||||
|
|
Loading…
Reference in New Issue