]> rtime.felk.cvut.cz Git - frescor/fwp.git/blob - fwp/lib/fwp.h
e1da8142ec2aa1fb291d5a01c1573be0484c90f1
[frescor/fwp.git] / fwp / lib / fwp.h
1 #ifndef _FWP_H
2 #define _FWP_H
3
4 #include "fwp_conf.h"
5 #include "fwp_vres.h"
6 #include "fwp_endpoint.h"
7 #include "fwp_mngt.h"
8
9 static inline int fwp_init()
10 {
11         int rv;
12
13         if ((rv = fwp_endpoint_table_init(fwp_configuration.max_endpoints)) ||
14             (rv = fwp_vres_table_init(fwp_configuration.max_vres)))
15                 return rv;
16         
17         if (fwp_configuration.mngt) { 
18                 rv = fwp_mngt_init(); 
19                 return rv;
20         }
21
22         return 0;
23 }
24
25 #endif /* _FWP_H */