Make member names camel case.

This commit is contained in:
scruzin 2019-01-07 13:33:07 +10:30
parent 189338d81b
commit 6975f5172e
2 changed files with 369 additions and 353 deletions

File diff suppressed because it is too large Load Diff

View File

@ -115,25 +115,25 @@ const (
// typedef struct RTMPChunk // typedef struct RTMPChunk
// rtmp.h +105 // rtmp.h +105
type C_RTMPChunk struct { type C_RTMPChunk struct {
c_headerSize int32 headerSize int32
c_chunk []byte data []byte
c_header [RTMP_MAX_HEADER_SIZE]byte header [RTMP_MAX_HEADER_SIZE]byte
} }
// typedef struct RTMPPacket // typedef struct RTMPPacket
// rtmp.h +113 // rtmp.h +113
type C_RTMPPacket struct { type C_RTMPPacket struct {
m_headerType uint8 headerType uint8
m_packetType uint8 packetType uint8
m_hasAbsTimestamp bool hasAbsTimestamp bool
m_nChannel int32 nChannel int32
m_nTimeStamp uint32 nTimeStamp uint32
m_nInfoField2 int32 nInfoField2 int32
m_nBodySize uint32 nBodySize uint32
m_nBytesRead uint32 nBytesRead uint32
m_chunk *C_RTMPChunk chunk *C_RTMPChunk
m_header []byte header []byte
m_body []byte body []byte
} }
// typedef struct RTMPSockBuf // typedef struct RTMPSockBuf
@ -143,7 +143,7 @@ type C_RTMPPacket struct {
// RTMPPacket_IsReady(a) // RTMPPacket_IsReady(a)
// rtmp.h +142 // rtmp.h +142
func C_RTMPPacket_IsReady(p *C_RTMPPacket) bool { func C_RTMPPacket_IsReady(p *C_RTMPPacket) bool {
return p.m_nBytesRead == p.m_nBodySize return p.nBytesRead == p.nBodySize
} }
// typedef struct RTMP_LNK // typedef struct RTMP_LNK
@ -179,34 +179,35 @@ type C_RTMP_METHOD struct {
// typedef struct RTMP // typedef struct RTMP
// rtmp.h +237 // rtmp.h +237
type C_RTMP struct { type C_RTMP struct {
m_inChunkSize int32 inChunkSize int32
m_outChunkSize int32 outChunkSize int32
m_nBWCheckCounter int32 nBWCheckCounter int32
m_nBytesIn int32 nBytesIn int32
m_nBytesInSent int32 nBytesInSent int32
m_nBufferMS int32 nBufferMS int32
m_stream_id int32 streamID int32
m_mediaChannel int32 mediaChannel int32
m_pausing int32 pausing int32
m_nServerBW int32 nServerBW int32
m_nClientBW int32 nClientBW int32
m_nClientBW2 uint8 nClientBW2 uint8
m_bPlaying bool bPlaying bool
m_bSendEncoding bool bSendEncoding bool
m_numInvokes int32 numInvokes int32
m_methodCalls []C_RTMP_METHOD methodCalls []C_RTMP_METHOD
m_channelsAllocatedIn int32 channelsAllocatedIn int32
m_channelsAllocatedOut int32 channelsAllocatedOut int32
m_vecChannelsIn []*C_RTMPPacket vecChannelsIn []*C_RTMPPacket
m_vecChannelsOut []*C_RTMPPacket vecChannelsOut []*C_RTMPPacket
m_channelTimestamp []int32 channelTimestamp []int32
m_fAudioCodecs float64 fAudioCodecs float64
m_fVideoCodecs float64 fVideoCodecs float64
m_fEncoding float64 fEncoding float64
m_fDuration float64 fDuration float64
m_msgCounter int32 msgCounter int32
m_resplen int32 resplen int32
m_unackd int32 unackd int32
m_write C_RTMPPacket write C_RTMPPacket
Link C_RTMP_LNK defered []byte
Link C_RTMP_LNK
} }