Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
sdes.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2022 Roc Streaming authors
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8 
9 //! @file roc_rtcp/sdes.h
10 //! @brief SDES elements.
11 
12 #ifndef ROC_RTCP_SDES_H_
13 #define ROC_RTCP_SDES_H_
14 
15 #include "roc_core/stddefs.h"
16 #include "roc_packet/units.h"
17 #include "roc_rtcp/headers.h"
18 
19 namespace roc {
20 namespace rtcp {
21 
22 //! Parsed SDES chunk.
23 struct SdesChunk {
24  SdesChunk()
25  : ssrc(0) {
26  }
27 
28  //! Source ID.
30 };
31 
32 //! Parsed SDES item.
33 struct SdesItem {
34  SdesItem()
36  , text(NULL) {
37  }
38 
39  //! Item type.
41 
42  //! Item text.
43  //! Zero-terminated UTF-8 string.
44  const char* text;
45 };
46 
47 } // namespace rtcp
48 } // namespace roc
49 
50 #endif // ROC_RTCP_SDES_H_
uint32_t stream_source_t
Packet stream identifier.
Definition: units.h:27
Root namespace.
RTCP headers.
SdesItemType
SDES item type.
Definition: headers.h:676
Commonly used types and functions.
Parsed SDES chunk.
Definition: sdes.h:23
packet::stream_source_t ssrc
Source ID.
Definition: sdes.h:29
Parsed SDES item.
Definition: sdes.h:33
const char * text
Item text. Zero-terminated UTF-8 string.
Definition: sdes.h:44
header::SdesItemType type
Item type.
Definition: sdes.h:40
Various units used in packets.