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;
typedef struct _RTPMessage RTPMessage;
struct jitter_buffer *create_queue(int capacity);
int queue(struct jitter_buffer *q, RTPMessage *pk);

View File

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