diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-25 02:14:18 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-25 09:42:01 +0000 |
commit | cd8080f6d180677d03edff4878305c655c29bd69 (patch) | |
tree | 9d569b151ed3ba8f547d24bb663243f9611b2ed8 /toxav/rtp.h | |
parent | a640ed106a74347e08c10e62d7ec9eee9e90e43b (diff) |
Rename some rtp header struct members to be clearer.
These are the names used in the next PR, in RTPHeaderV3, so here we
rename the old struct members already.
Diffstat (limited to 'toxav/rtp.h')
-rw-r--r-- | toxav/rtp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toxav/rtp.h b/toxav/rtp.h index 2f5ea84f..85da8fe1 100644 --- a/toxav/rtp.h +++ b/toxav/rtp.h | |||
@@ -41,12 +41,12 @@ struct RTPHeader { | |||
41 | uint16_t cc: 4; /* Contributing sources count */ | 41 | uint16_t cc: 4; /* Contributing sources count */ |
42 | uint16_t xe: 1; /* Extra header */ | 42 | uint16_t xe: 1; /* Extra header */ |
43 | uint16_t pe: 1; /* Padding */ | 43 | uint16_t pe: 1; /* Padding */ |
44 | uint16_t ve: 2; /* Version */ | 44 | uint16_t protocol_version: 2; /* Version has only 2 bits! */ |
45 | 45 | ||
46 | uint16_t pt: 7; /* Payload type */ | 46 | uint16_t pt: 7; /* Payload type */ |
47 | uint16_t ma: 1; /* Marker */ | 47 | uint16_t ma: 1; /* Marker */ |
48 | #else | 48 | #else |
49 | uint16_t ve: 2; /* Version */ | 49 | uint16_t protocol_version: 2; /* Version has only 2 bits! */ |
50 | uint16_t pe: 1; /* Padding */ | 50 | uint16_t pe: 1; /* Padding */ |
51 | uint16_t xe: 1; /* Extra header */ | 51 | uint16_t xe: 1; /* Extra header */ |
52 | uint16_t cc: 4; /* Contributing sources count */ | 52 | uint16_t cc: 4; /* Contributing sources count */ |
@@ -61,8 +61,8 @@ struct RTPHeader { | |||
61 | uint32_t csrc[16]; | 61 | uint32_t csrc[16]; |
62 | 62 | ||
63 | /* Non-standard TOX-specific fields */ | 63 | /* Non-standard TOX-specific fields */ |
64 | uint16_t cpart;/* Data offset of the current part */ | 64 | uint16_t offset_lower;/* Data offset of the current part */ |
65 | uint16_t tlen; /* Total message length */ | 65 | uint16_t data_length_lower; /* Total message length */ |
66 | } __attribute__((packed)); | 66 | } __attribute__((packed)); |
67 | 67 | ||
68 | /* Check alignment */ | 68 | /* Check alignment */ |