87 #ifndef CCXX_RTP_PRIVATE_H_
88 #define CCXX_RTP_PRIVATE_H_
90 #include <commoncpp/config.h>
91 #include <commoncpp/thread.h>
92 #include <commoncpp/socket.h>
93 #include <commoncpp/udp.h>
94 #include <commoncpp/process.h>
95 #include <commoncpp/export.h>
97 #include <ccrtp-config.h>
118 #define timeradd(a, b, result) \
120 (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
121 (result)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
122 if ( (result)->tv_usec >= 1000000 ) { \
123 (result)->tv_sec++; (result)->tv_usec -= 1000000ul; \
129 #define timersub(a, b, result) \
131 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
132 (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
133 if ( (result)->tv_usec < 0 ) { \
134 (result)->tv_sec--; (result)->tv_usec += 1000000ul; \
149 #endif // ifndef CCXX_RTP_PRIVATE_H_
NAMESPACE_COMMONCPP const uint32 NTP_EPOCH_OFFSET