summaryrefslogtreecommitdiff
path: root/confdloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'confdloader.c')
-rw-r--r--confdloader.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/confdloader.c b/confdloader.c
index 4188c89..5bb444b 100644
--- a/confdloader.c
+++ b/confdloader.c
@@ -30,6 +30,10 @@ The project's page is at http://winni.vdr-developer.org/epgsearch
#include "epgsearchcats.h"
+// ---------------------------
+// Loads all files in the conf.d subdirectory of <plugin-config-directory> and
+// applies found settings.
+// ---------------------------
bool cConfDLoader::Load()
{
const string dirPath(AddDirectory(CONFIGDIR, "conf.d"));
@@ -61,6 +65,24 @@ bool cConfDLoader::Load()
return success;
}
+// ---------------------------
+// Each file has the form
+//
+// [<section>]
+// <setting>
+// ...
+// [<section>]
+// ...
+//
+// where section is one:
+//
+// epgsearchuservars
+// epgsearchdirs
+// epgsearchmenu
+// epgsearchcats
+//
+// <setting> corresponds to the entries in the related conf files.
+// ---------------------------
bool cConfDLoader::LoadFile(const char *FileName)
{
if (FileName && access(FileName, F_OK) == 0) {