projects
/
sip-router
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
First working release
[sip-router]
/
cfg_parser.h
1
/*
2
* $Id$
3
*/
4
5
#ifndef cfg_parser_h
6
#define cfg_parser_h
7
8
#include <stdio.h>
9
10
#define CFG_EMPTY 0
11
#define CFG_COMMENT 1
12
#define CFG_SKIP 2
13
#define CFG_RULE 3
14
#define CFG_ERROR -1
15
16
#define MAX_LINE_SIZE 800
17
18
struct cfg_line{
19
int type;
20
char* method;
21
char* uri;
22
char* address;
23
short int port;
24
};
25
26
27
int cfg_parse_line(char* line, struct cfg_line* cl);
28
int cfg_parse_stream(FILE* stream);
29
30
#endif