Subversion Repositories Tewi

Rev

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

Rev 6 Rev 7
Line 1... Line 1...
1
/* $Id: tw_config.h 6 2024-09-13 10:28:20Z nishi $ */
1
/* $Id: tw_config.h 7 2024-09-13 10:40:53Z 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 <stdint.h>
-
 
7
 
-
 
8
/* I don't think you would listen to 1024 ports */
-
 
9
#define MAX_PORTS 1024
-
 
10
 
6
struct tw_config_entry {};
11
struct tw_config_entry {};
7
 
12
 
8
struct tw_config {
13
struct tw_config {
-
 
14
	uint64_t ports[MAX_PORTS + 1]; /* If port & (1 << 32) is non-zero, it is SSL */
9
	struct tw_config_entry root;
15
	struct tw_config_entry root;
10
};
16
};
11
 
17
 
12
void tw_config_init(void);
18
void tw_config_init(void);
13
int tw_config_read(const char* path);
19
int tw_config_read(const char* path);