mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-30 09:58:55 +00:00
moved timing check definitions to serval.h
This commit is contained in:
parent
f6cce7103d
commit
6023cd4da2
@ -84,7 +84,7 @@ void TIMING_PAUSE()
|
||||
}
|
||||
|
||||
/* @PGS/20120615 */
|
||||
void TIMING_CHECK(const char *file,const char *func,int line)
|
||||
void _TIMING_CHECK(const char *file,const char *func,int line)
|
||||
{
|
||||
long long now=overlay_gettime_ms();
|
||||
if (last_valid) {
|
||||
@ -103,7 +103,6 @@ void TIMING_CHECK(const char *file,const char *func,int line)
|
||||
last_line=line;
|
||||
last_time=now;
|
||||
}
|
||||
#define TIMING_CHECK() TIMING_CHECK(__FILE__,__FUNCTION__,__LINE__)
|
||||
|
||||
|
||||
int overlayMode=0;
|
||||
|
5
serval.h
5
serval.h
@ -114,6 +114,11 @@ struct in_addr {
|
||||
/* bzero(3) is deprecated in favour of memset(3). */
|
||||
#define bzero(addr,len) memset((addr), 0, (len))
|
||||
|
||||
/* @PGS/20120615 */
|
||||
#define TIMING_CHECK() _TIMING_CHECK(__FILE__,__FUNCTION__,__LINE__)
|
||||
void _TIMING_CHECK(const char *file,const char *func,int line);
|
||||
void TIMING_PAUSE();
|
||||
|
||||
/* UDP Port numbers for various Serval services.
|
||||
The overlay mesh works over DNA */
|
||||
#define PORT_DNA 4110
|
||||
|
Loading…
Reference in New Issue
Block a user