Avoid forward declaration of rtp structs.

Forward declarations are problematic, as they easily allow introducing
cyclic dependencies.
This commit is contained in:
iphydf 2018-08-12 14:22:21 +00:00
parent b2590e2f44
commit 767ccbb387
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
2 changed files with 3 additions and 5 deletions

View File

@ -24,6 +24,7 @@
#include "../toxcore/logger.h"
#include "../toxcore/util.h"
#include "rtp.h"
#include <opus.h>
#include <pthread.h>
@ -48,8 +49,6 @@
#define AUDIO_MAX_BUFFER_SIZE_PCM16 ((AUDIO_MAX_SAMPLE_RATE * AUDIO_MAX_FRAME_DURATION_MS) / 1000)
#define AUDIO_MAX_BUFFER_SIZE_BYTES (AUDIO_MAX_BUFFER_SIZE_PCM16 * 2)
struct RTPMessage;
typedef struct ACSession_s {
const Logger *log;

View File

@ -24,6 +24,8 @@
#include "../toxcore/logger.h"
#include "../toxcore/util.h"
#include "ring_buffer.h"
#include "rtp.h"
#include <vpx/vpx_decoder.h>
#include <vpx/vpx_encoder.h>
@ -35,9 +37,6 @@
#include <pthread.h>
struct RTPMessage;
struct RingBuffer;
typedef struct VCSession_s {
/* encoding */
vpx_codec_ctx_t encoder[1];