- Adapted indenation to new agreed upon system
- Added support for second generation scriptcontext based counter
This commit is contained in:
17
nwatch.h
17
nwatch.h
@ -22,7 +22,7 @@
|
||||
*
|
||||
* \return normally zero, for future use
|
||||
*/
|
||||
typedef int (*pNWCallback)(void* context, int mode);
|
||||
typedef int (*pNWCallback) (void *context, int mode);
|
||||
|
||||
/* the abstract timer object handle */
|
||||
typedef struct __netwatchtimer *pNWTimer;
|
||||
@ -36,8 +36,8 @@ typedef struct __netwatchtimer *pNWTimer;
|
||||
* \param context abstract context passed to callback function
|
||||
* \return success=1, failure=0
|
||||
*/
|
||||
int NetWatchRegisterTimer(pNWTimer* handle, int mSec,
|
||||
pNWCallback callback, void* context);
|
||||
int NetWatchRegisterTimer(pNWTimer * handle, int mSec,
|
||||
pNWCallback callback, void *context);
|
||||
|
||||
/**
|
||||
* \brief register a periodic timer
|
||||
@ -49,8 +49,9 @@ int NetWatchRegisterTimer(pNWTimer* handle, int mSec,
|
||||
* \param context abstract context passed to callback function
|
||||
* \return success=1, failure=0
|
||||
*/
|
||||
int NetWatchRegisterTimerPeriodic(pNWTimer* handle, int mSecInitial, int mSecPeriod,
|
||||
pNWCallback callback, void* context);
|
||||
int NetWatchRegisterTimerPeriodic(pNWTimer * handle, int mSecInitial,
|
||||
int mSecPeriod, pNWCallback callback,
|
||||
void *context);
|
||||
|
||||
int NetWatchGetTimerPeriod(pNWTimer handle);
|
||||
int NetWatchSetTimerPeriod(pNWTimer handle, int mSecPeriod);
|
||||
@ -74,8 +75,8 @@ typedef struct __netwatchcontext *pNWContext;
|
||||
* \param context abstract context passed to callback function
|
||||
* \return success=1, failure=0
|
||||
*/
|
||||
int NetWatchRegisterCallback(pNWContext* handle, int iSocket,
|
||||
pNWCallback callback, void* context);
|
||||
int NetWatchRegisterCallback(pNWContext * handle, int iSocket,
|
||||
pNWCallback callback, void *context);
|
||||
|
||||
/**
|
||||
* \brief remove a socket callback registration
|
||||
@ -102,4 +103,4 @@ int NetWatchGetMode(pNWContext handle);
|
||||
*/
|
||||
int NetWatchSetMode(pNWContext handle, int mode);
|
||||
|
||||
#endif /* SICSNETWATCHER */
|
||||
#endif /* SICSNETWATCHER */
|
||||
|
Reference in New Issue
Block a user