]> git.sur5r.net Git - ngadmin/blob - lib/src/network.h
Raw: separate attribute filtering in a separate function.
[ngadmin] / lib / src / network.h
1
2 #ifndef DEF_NETWORK
3 #define DEF_NETWORK
4
5
6 #include "list.h"
7 #include "lib.h"
8
9
10 int startNetwork (struct ngadmin *nga);
11
12
13 int stopNetwork (struct ngadmin *nga);
14
15
16 int forceInterface (struct ngadmin *nga);
17
18
19 int updateTimeout (struct ngadmin *nga);
20
21
22 int sendNgPacket (struct ngadmin *nga, char code, const List *attr);
23
24
25 int recvNgPacket (struct ngadmin *nga, char code, unsigned char *error, unsigned short *attr_error, List *attr);
26
27
28 int readRequest (struct ngadmin *nga, List *attr);
29
30
31 int writeRequest (struct ngadmin *nga, List *attr);
32
33
34 void extractSwitchAttributes (struct swi_attr *sa, const List *l);
35
36
37 #endif
38