Subversion Repositories Tewi

Rev

Rev 24 | Rev 81 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24 Rev 33
Line 1... Line 1...
1
/* $Id: tw_config.h 24 2024-09-14 14:09:58Z nishi $ */
1
/* $Id: tw_config.h 33 2024-09-16 12:52:47Z nishi $ */
2
 
2
 
3
#ifndef __TW_CONFIG_H__
3
#ifndef __TW_CONFIG_H__
4
#define __TW_CONFIG_H__
4
#define __TW_CONFIG_H__
5
 
5
 
6
#include "tw_http.h"
6
#include "tw_http.h"
Line 26... Line 26...
26
#define MAX_MODULES 1024
26
#define MAX_MODULES 1024
27
#define MAX_DIRS 1024
27
#define MAX_DIRS 1024
28
#define MAX_MIME 1024
28
#define MAX_MIME 1024
29
#define MAX_ICON 1024
29
#define MAX_ICON 1024
30
#define MAX_INDEX 1024
30
#define MAX_INDEX 1024
-
 
31
#define MAX_README 8
31
 
32
 
32
enum TW_DIR_TYPE {
33
enum TW_DIR_TYPE {
33
	TW_DIR_ALLOW = 0,
34
	TW_DIR_ALLOW = 0,
34
	TW_DIR_DENY
35
	TW_DIR_DENY
35
};
36
};
Line 62... Line 63...
62
	int mime_count;
63
	int mime_count;
63
	struct tw_icon_entry icons[MAX_DIRS];
64
	struct tw_icon_entry icons[MAX_DIRS];
64
	int icon_count;
65
	int icon_count;
65
	char* indexes[MAX_INDEX];
66
	char* indexes[MAX_INDEX];
66
	int index_count;
67
	int index_count;
-
 
68
	char* readmes[MAX_README];
-
 
69
	int readme_count;
67
};
70
};
68
 
71
 
69
struct tw_config {
72
struct tw_config {
70
	uint64_t ports[MAX_PORTS + 1]; /* If port & (1 << 32) is non-zero, it is SSL */
73
	uint64_t ports[MAX_PORTS + 1]; /* If port & (1 << 32) is non-zero, it is SSL */
71
	char hostname[1025];
74
	char hostname[1025];