Drop typedef redeclarations

C99 doesn't permit redeclaring typedefs in the same scope.
This commit is contained in:
Dmitrij D. Czarkoff 2014-04-08 11:32:23 +02:00
parent faded12a71
commit 6c47b4773a
2 changed files with 4 additions and 6 deletions

View File

@ -68,8 +68,6 @@ typedef struct _CodecState {
} CodecState; } CodecState;
typedef struct _RTPMessage RTPMessage;
struct jitter_buffer *create_queue(int capacity); struct jitter_buffer *create_queue(int capacity);
int queue(struct jitter_buffer *q, RTPMessage *pk); int queue(struct jitter_buffer *q, RTPMessage *pk);

View File

@ -25,8 +25,8 @@
#include "config.h" #include "config.h"
#endif /* HAVE_CONFIG_H */ #endif /* HAVE_CONFIG_H */
#include "media.h"
#include "rtp.h" #include "rtp.h"
#include "media.h"
#include "msi.h" #include "msi.h"
#include <stdlib.h> #include <stdlib.h>
@ -51,7 +51,7 @@ typedef enum {
} ThreadState; } ThreadState;
typedef struct _ToxAv { struct _ToxAv {
Messenger *messenger; Messenger *messenger;
MSISession *msi_session; /** Main msi session */ MSISession *msi_session; /** Main msi session */
@ -61,7 +61,7 @@ typedef struct _ToxAv {
struct jitter_buffer *j_buf; struct jitter_buffer *j_buf;
CodecState *cs; CodecState *cs;
} ToxAv; };
/** /**
* @brief Start new A/V session. There can only be one session at the time. If you register more * @brief Start new A/V session. There can only be one session at the time. If you register more