]> rtime.felk.cvut.cz Git - frescor/fwp.git/blob - fwp/lib/fwp.h
Fix in mngrtest/Makefile.omk -libary order, changed contract ops in libfwp and in...
[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 /**
10  * FWP initialisation
11  *  1. endpoint table init
12  *  2. vres table init
13  *  3. mngt_init
14  *  4. mngt connect
15  *
16  *  fwp mngr does not call 3., 4.
17  */
18
19 static inline int fwp_init()
20 {
21         int rv;
22
23         if ((rv = fwp_endpoint_table_init(FWP_EPOINT_MAX)) ||
24             (rv = fwp_vres_table_init(FWP_VRES_MAX)) ||
25             (rv = fwp_mngt_init())) 
26                 return rv;
27         return 0;
28 }
29
30 #endif /* _FWP_H */