Subversion Repositories Tewi

Rev

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

Rev 22 Rev 24
Line 1... Line 1...
1
/* $Id: tw_config.h 22 2024-09-14 13:25:38Z nishi $ */
1
/* $Id: tw_config.h 24 2024-09-14 14:09:58Z 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 25... Line 25...
25
#define MAX_VHOSTS 1024
25
#define MAX_VHOSTS 1024
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
 
31
 
31
enum TW_DIR_TYPE {
32
enum TW_DIR_TYPE {
32
	TW_DIR_ALLOW = 0,
33
	TW_DIR_ALLOW = 0,
33
	TW_DIR_DENY
34
	TW_DIR_DENY
34
};
35
};
Line 59... Line 60...
59
	int dir_count;
60
	int dir_count;
60
	struct tw_mime_entry mimes[MAX_DIRS];
61
	struct tw_mime_entry mimes[MAX_DIRS];
61
	int mime_count;
62
	int mime_count;
62
	struct tw_icon_entry icons[MAX_DIRS];
63
	struct tw_icon_entry icons[MAX_DIRS];
63
	int icon_count;
64
	int icon_count;
-
 
65
	char* indexes[MAX_INDEX];
-
 
66
	int index_count;
64
};
67
};
65
 
68
 
66
struct tw_config {
69
struct tw_config {
67
	uint64_t ports[MAX_PORTS + 1]; /* If port & (1 << 32) is non-zero, it is SSL */
70
	uint64_t ports[MAX_PORTS + 1]; /* If port & (1 << 32) is non-zero, it is SSL */
68
	char hostname[1025];
71
	char hostname[1025];