libsaria: Update single paths

Updating a single LibraryPath may sometimes be faster than updating the
entire library.
This commit is contained in:
Bryan Schumaker 2011-10-20 20:31:09 -04:00
parent b84a19cd77
commit 4f26d9ee2d
2 changed files with 5 additions and 8 deletions

View File

@ -19,6 +19,7 @@ namespace libsaria
void load();
void save();
void update();
void update_path(string);
void refresh();
void add_path(string);

View File

@ -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
{
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 */