Browse code

Cleanup: change tabs to spaces.

Dario Rodriguez authored on 03/11/2022 18:21:15
Showing 1 changed files
... ...
@@ -13,8 +13,8 @@
13 13
 #define NEWSL_CONFIG_H
14 14
 
15 15
 typedef struct newslconfig {
16
-	char *logfile;
17
-	char *rootdir;
16
+        char *logfile;
17
+        char *rootdir;
18 18
 } newslconfig;
19 19
 
20 20
 newslconfig *newslconfig_init(char *configfile, char *deflogfile, char *defrootdir);
Browse code

Add simple form to ask for the e-mail and get the reply via POST request

Dario Rodriguez authored on 05/05/2015 19:14:56
Showing 1 changed files
... ...
@@ -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
Browse code

Basic webserver part (blatantly ripped from kakumei)

Dario Rodriguez authored on 23/04/2015 20:11:31
Showing 1 changed files
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