Subversion Repositories Tewi

Rev

Rev 6 | Rev 12 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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