mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Drop typedef redeclarations
C99 doesn't permit redeclaring typedefs in the same scope.
This commit is contained in:
parent
faded12a71
commit
6c47b4773a
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user