diff --git a/include/call.h b/include/call.h index fc360cb6c..62d36e588 100644 --- a/include/call.h +++ b/include/call.h @@ -15,6 +15,12 @@ #include #include #include + +#define MAX_RTP_PACKET_SIZE 8192 +#define RTP_BUFFER_HEAD_ROOM 128 +#define RTP_BUFFER_TAIL_ROOM 512 +#define RTP_BUFFER_SIZE (MAX_RTP_PACKET_SIZE + RTP_BUFFER_HEAD_ROOM + RTP_BUFFER_TAIL_ROOM) + #include "compat.h" #include "socket.h" #include "media_socket.h" @@ -82,11 +88,6 @@ enum { #define ERROR_NO_FREE_LOGS -101 #define ERROR_NO_ICE_AGENT -102 -#define MAX_RTP_PACKET_SIZE 8192 -#define RTP_BUFFER_HEAD_ROOM 128 -#define RTP_BUFFER_TAIL_ROOM 512 -#define RTP_BUFFER_SIZE (MAX_RTP_PACKET_SIZE + RTP_BUFFER_HEAD_ROOM + RTP_BUFFER_TAIL_ROOM) - #ifndef RTP_LOOP_PROTECT #define RTP_LOOP_PROTECT 28 /* number of bytes */ #define RTP_LOOP_PACKETS 2 /* number of packets */ diff --git a/include/control_ng.h b/include/control_ng.h index de3c1ed63..dd22774e2 100644 --- a/include/control_ng.h +++ b/include/control_ng.h @@ -1,13 +1,6 @@ #ifndef _CONTROL_NG_H_ #define _CONTROL_NG_H_ -#include "obj.h" -#include "udp_listener.h" -#include "socket.h" -#include "str.h" -#include "tcp_listener.h" -#include "bencode.h" - struct poller; enum ng_command { @@ -39,6 +32,13 @@ enum ng_command { NGC_COUNT // last, number of elements }; +#include "obj.h" +#include "udp_listener.h" +#include "socket.h" +#include "str.h" +#include "tcp_listener.h" +#include "bencode.h" + struct ng_command_stats { mutex_t lock; unsigned int count;