]> git.sur5r.net Git - ngadmin/blobdiff - lib/src/network.h
Lib: source refactor.
[ngadmin] / lib / src / network.h
index 534ae31931e9432ac1db74eb3b1b2dfb1781c60e..7349278f30be26af8857e207ab4eff8a0e8f5751 100644 (file)
@@ -3,47 +3,36 @@
 #define DEF_NETWORK
 
 
-#include <string.h>
-#include <unistd.h>
-//#include <poll.h>
-#include <arpa/inet.h>
-#include <net/if.h>
-#include <netinet/ether.h>
-#include <sys/ioctl.h>
-//#include <sys/time.h>
-
 #include "list.h"
 #include "lib.h"
-#include "protocol.h"
-
-
 
 
-// 
 int startNetwork (struct ngadmin *nga);
 
-// 
+
 int stopNetwork (struct ngadmin *nga);
 
-// 
+
 int forceInterface (struct ngadmin *nga);
 
-// 
+
 int updateTimeout (struct ngadmin *nga);
 
-// 
+
 int sendNgPacket (struct ngadmin *nga, char code, const List *attr);
 
-// 
-int recvNgPacket (struct ngadmin *nga, char code, unsigned char *error, unsigned short *attr_error, List *attr);
 
-// 
-int readRequest (struct ngadmin *nga, List *attr);
+int recvNgPacket (struct ngadmin *nga, char code, unsigned char *error, unsigned short *attr_error, List *attr, unsigned short filter_attr);
+
+
+int readRequest (struct ngadmin *nga, List *attr, unsigned short filter_attr);
+
 
-// 
 int writeRequest (struct ngadmin *nga, List *attr);
 
 
+void extractSwitchAttributes (struct swi_attr *sa, const List *l);
+
 
 #endif