... | ... |
@@ -14,12 +14,13 @@ |
14 | 14 |
|
15 | 15 |
typedef struct newslconfig { |
16 | 16 |
char *logfile; |
17 |
+ char *rootdir; |
|
17 | 18 |
} newslconfig; |
18 | 19 |
|
19 |
-newslconfig *newslconfig_init(char *configfile); |
|
20 |
+newslconfig *newslconfig_init(char *configfile, char *deflogfile, char *defrootdir); |
|
20 | 21 |
void newslconfig_free(newslconfig *config); |
21 | 22 |
|
22 | 23 |
int newslconfig_exists(char *configfile); |
23 |
-int newslconfig_write(char *configfile,char *logfile); |
|
24 |
+int newslconfig_write(char *configfile,char *logfile,char *rootdir); |
|
24 | 25 |
|
25 | 26 |
#endif |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,25 @@ |
1 |
+/* |
|
2 |
+ * newsl_config.h |
|
3 |
+ * |
|
4 |
+ * Configuration load/save for newslettersan |
|
5 |
+ * |
|
6 |
+ * Header file |
|
7 |
+ * |
|
8 |
+ * Author: Dario Rodriguez dario@softhome.net |
|
9 |
+ * This program is licensed under the terms of the Affero GPL v1+ |
|
10 |
+ */ |
|
11 |
+ |
|
12 |
+#ifndef NEWSL_CONFIG_H |
|
13 |
+#define NEWSL_CONFIG_H |
|
14 |
+ |
|
15 |
+typedef struct newslconfig { |
|
16 |
+ char *logfile; |
|
17 |
+} newslconfig; |
|
18 |
+ |
|
19 |
+newslconfig *newslconfig_init(char *configfile); |
|
20 |
+void newslconfig_free(newslconfig *config); |
|
21 |
+ |
|
22 |
+int newslconfig_exists(char *configfile); |
|
23 |
+int newslconfig_write(char *configfile,char *logfile); |
|
24 |
+ |
|
25 |
+#endif |