Make nwatch independent of SICS

This commit is contained in:
Douglas Clowes
2014-08-29 16:32:32 +10:00
parent e497cad374
commit 378170280f
2 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,6 @@
#include <sys/time.h> #include <sys/time.h>
#include "fortify.h" #include "fortify.h"
#include "nwatch.h" #include "nwatch.h"
#include "sics.h"
#include "uselect.h" #include "uselect.h"
#define NWMAGIC 51966 #define NWMAGIC 51966
@ -363,7 +362,8 @@ int NetWatchSetMode(pNWContext handle, int mode)
} }
/** /**
* \brief the registered SICS Task to drive all this * \brief the task to drive all this
* Should be called periodically
*/ */
int NetWatchTask(void *pData) int NetWatchTask(void *pData)
{ {

View File

@ -1,5 +1,5 @@
/* /*
* N E T W A T C H E R * N E T W A T C H
* *
* This module watches network connections for sockets becoming readable or * This module watches network connections for sockets becoming readable or
* writeable and invokes callbacks. It also provides a timer mechanism. * writeable and invokes callbacks. It also provides a timer mechanism.
@ -7,8 +7,8 @@
* Douglas Clowes, February 2007 * Douglas Clowes, February 2007
* *
*/ */
#ifndef SICSNETWATCHER #ifndef NETWATCH_H
#define SICSNETWATCHER #define NETWATCH_H
#define nwatch_read 1 #define nwatch_read 1
#define nwatch_write 2 #define nwatch_write 2
@ -107,4 +107,4 @@ int NetWatchGetMode(pNWContext handle);
*/ */
int NetWatchSetMode(pNWContext handle, int mode); int NetWatchSetMode(pNWContext handle, int mode);
#endif /* SICSNETWATCHER */ #endif /* NETWATCH_H */