summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormethodus <methodus@web.de>2012-11-29 00:17:50 +0100
committermethodus <methodus@web.de>2012-11-29 00:17:50 +0100
commite6c28c5209b5508a61affc947179260cec0d2733 (patch)
tree2db88f7fe2d9f55309a267b35c401844cc657a08 /include
parent387d734f97d9b7ad710eb84d2390e1cfe3f56c1d (diff)
downloadvdr-plugin-upnp-e6c28c5209b5508a61affc947179260cec0d2733.tar.gz
vdr-plugin-upnp-e6c28c5209b5508a61affc947179260cec0d2733.tar.bz2
Added some SQLite pragmas which should reduce accesses on the file system for writing
Diffstat (limited to 'include')
-rw-r--r--include/media/mediaManager.h1
-rw-r--r--include/server.h2
-rw-r--r--include/tools/string.h1
3 files changed, 4 insertions, 0 deletions
diff --git a/include/media/mediaManager.h b/include/media/mediaManager.h
index 40aa49f..9857d50 100644
--- a/include/media/mediaManager.h
+++ b/include/media/mediaManager.h
@@ -60,6 +60,7 @@ public:
void SetDatabaseDir(const string& file);
bool Initialise();
+ void Housekeeping();
uint32_t GetSystemUpdateID() const;
IdList GetContainerUpdateIDs(bool unevented = false);
diff --git a/include/server.h b/include/server.h
index ebdee03..be76e41 100644
--- a/include/server.h
+++ b/include/server.h
@@ -75,6 +75,8 @@ public:
static void RegisterService(cUPnPService* service);
+ void Housekeeping();
+
private:
cMediaServer();
diff --git a/include/tools/string.h b/include/tools/string.h
index 0ff5434..8d54706 100644
--- a/include/tools/string.h
+++ b/include/tools/string.h
@@ -21,6 +21,7 @@ string ToString(long number);
string StringListToCSV(StringList list);
string IdListToCSV(IdList list);
void StringExplode(string str, string separator, StringVector& results);
+string Trim(const std::string& str, const std::string& whitespace = " \t");
}