UniMRCP  1.7.0
mpf_rtp_attribs.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2015 Arsen Chaloyan
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MPF_RTP_ATTRIBS_H
18 #define MPF_RTP_ATTRIBS_H
19 
20 /**
21  * @file mpf_rtp_attribs.h
22  * @brief RTP Attributes (SDP)
23  */
24 
25 #include "mpf_rtp_descriptor.h"
26 
28 
29 /** RTP attributes */
30 typedef enum {
31  RTP_ATTRIB_RTPMAP,
32  RTP_ATTRIB_SENDONLY,
33  RTP_ATTRIB_RECVONLY,
34  RTP_ATTRIB_SENDRECV,
35  RTP_ATTRIB_MID,
36  RTP_ATTRIB_PTIME,
37 
38  RTP_ATTRIB_COUNT,
39  RTP_ATTRIB_UNKNOWN = RTP_ATTRIB_COUNT
41 
42 
43 /** Get audio media attribute name by attribute identifier */
45 
46 /** Find audio media attribute identifier by attribute name */
48 
49 /** Get string by RTP direction (send/receive) */
51 
53 
54 #endif /* MPF_RTP_ATTRIBS_H */
const apt_str_t * mpf_rtp_direction_str_get(mpf_stream_direction_e direction)
#define APT_END_EXTERN_C
Definition: apt.h:38
#define MPF_DECLARE(type)
Definition: mpf.h:40
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
mpf_stream_direction_e
Definition: mpf_stream_descriptor.h:33
Definition: apt_string.h:36
mpf_rtp_attrib_e mpf_rtp_attrib_id_find(const apt_str_t *attrib)
mpf_rtp_attrib_e
Definition: mpf_rtp_attribs.h:30
const apt_str_t * mpf_rtp_attrib_str_get(mpf_rtp_attrib_e attrib_id)
MPF RTP Stream Descriptor.