summaryrefslogtreecommitdiff
path: root/toxav/rtp.h
diff options
context:
space:
mode:
authormannol <eniz_vukovic@hotmail.com>2014-11-29 13:42:19 +0100
committermannol <eniz_vukovic@hotmail.com>2014-11-29 13:42:19 +0100
commite62ded3a6dfc1203418e3d7a2c936794c4c9ec1c (patch)
tree74db9ab7f52295304e6079d8e90b8d5b5f3afc67 /toxav/rtp.h
parent975ce25af0e469f3b2d80478695d3bbe8e79be79 (diff)
More av cleanup
Diffstat (limited to 'toxav/rtp.h')
-rw-r--r--toxav/rtp.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/toxav/rtp.h b/toxav/rtp.h
index 613fbec8..c98840ac 100644
--- a/toxav/rtp.h
+++ b/toxav/rtp.h
@@ -31,10 +31,12 @@
31#define MAX_SEQU_NUM 65535 31#define MAX_SEQU_NUM 65535
32#define MAX_RTP_SIZE 65535 32#define MAX_RTP_SIZE 65535
33 33
34typedef enum {
35 rtp_ErrorSending = -40
36} RTPError;
34/** 37/**
35 * Standard rtp header 38 * Standard rtp header
36 */ 39 */
37
38typedef struct _RTPHeader { 40typedef struct _RTPHeader {
39 uint8_t flags; /* Version(2),Padding(1), Ext(1), Cc(4) */ 41 uint8_t flags; /* Version(2),Padding(1), Ext(1), Cc(4) */
40 uint8_t marker_payloadt; /* Marker(1), PlayLoad Type(7) */ 42 uint8_t marker_payloadt; /* Marker(1), PlayLoad Type(7) */
@@ -46,7 +48,6 @@ typedef struct _RTPHeader {
46 48
47} RTPHeader; 49} RTPHeader;
48 50
49
50/** 51/**
51 * Standard rtp extension header. 52 * Standard rtp extension header.
52 */ 53 */
@@ -57,7 +58,6 @@ typedef struct _RTPExtHeader {
57 58
58} RTPExtHeader; 59} RTPExtHeader;
59 60
60
61/** 61/**
62 * Standard rtp message. 62 * Standard rtp message.
63 */ 63 */
@@ -71,14 +71,8 @@ typedef struct _RTPMessage {
71 struct _RTPMessage *next; 71 struct _RTPMessage *next;
72} RTPMessage; 72} RTPMessage;
73 73
74
75/** 74/**
76 * Our main session descriptor. 75 * RTP control session.
77 * It measures the session variables and controls
78 * the entire session. There are functions for manipulating
79 * the session so tend to use those instead of directly modifying
80 * session parameters.
81 *
82 */ 76 */
83typedef struct _RTPSession { 77typedef struct _RTPSession {
84 uint8_t version; 78 uint8_t version;