... | ... |
@@ -14,6 +14,7 @@ |
14 | 14 |
|
15 | 15 |
#include "socklib.h" |
16 | 16 |
#include "webkernel.h" |
17 |
+#include "kakumei_config.h" |
|
17 | 18 |
|
18 | 19 |
#define INVITATIONUSER "invitation" |
19 | 20 |
#define DATADIR "data" |
... | ... |
@@ -28,6 +29,7 @@ |
28 | 29 |
typedef struct kakumei { |
29 | 30 |
sselect *ssel; |
30 | 31 |
wk *web; |
32 |
+ kaconfig *config; |
|
31 | 33 |
} kakumei; |
32 | 34 |
|
33 | 35 |
int kakumei_uservalid(kakumei *ka, char *username); /* no unallowed characters */ |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,30 @@ |
1 |
+/* |
|
2 |
+ * kakumei.h |
|
3 |
+ * |
|
4 |
+ * Private group web. |
|
5 |
+ * |
|
6 |
+ * Header file |
|
7 |
+ * |
|
8 |
+ * Author: Dario Rodriguez dario@softhome.net |
|
9 |
+ * This progran is licensed under the terms of the Affero GPL v1+ |
|
10 |
+ */ |
|
11 |
+ |
|
12 |
+#ifndef KAKUMEI_H |
|
13 |
+#define KAKUMEI_H |
|
14 |
+ |
|
15 |
+#include "socklib.h" |
|
16 |
+#include "webkernel.h" |
|
17 |
+ |
|
18 |
+#define INVITATIONUSER "invitation" |
|
19 |
+#define DATADIR "data" |
|
20 |
+#define INVITESDIR "data/invitations" |
|
21 |
+#define USERSDIR "data/users" |
|
22 |
+#define POSTSDIR "data/posts" |
|
23 |
+#define SESSIONSDIR "data/sessions" |
|
24 |
+ |
|
25 |
+typedef struct kakumei { |
|
26 |
+ sselect *ssel; |
|
27 |
+ wk *web; |
|
28 |
+} kakumei; |
|
29 |
+ |
|
30 |
+#endif |