UniMRCP  1.7.0
mrcp_sdp.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 MRCP_SDP_H
18 #define MRCP_SDP_H
19 
20 /**
21  * @file mrcp_sdp.h
22  * @brief MRCP SDP Transformations
23  */
24 
25 #include "mrcp_sig_types.h"
26 
28 
29 /** Generate SDP string by MRCP descriptor */
30 MRCP_DECLARE(apr_size_t) sdp_string_generate_by_mrcp_descriptor(char *buffer, apr_size_t size, const mrcp_session_descriptor_t *descriptor, apt_bool_t offer);
31 
32 /** Generate MRCP descriptor by SDP session */
33 MRCP_DECLARE(apt_bool_t) mrcp_descriptor_generate_by_sdp_session(mrcp_session_descriptor_t* descriptor, const sdp_session_t *sdp, const char *force_destination_ip, apr_pool_t *pool);
34 
35 /** Generate MRCP resource discovery descriptor by SDP session */
36 MRCP_DECLARE(apt_bool_t) mrcp_resource_discovery_generate_by_sdp_session(mrcp_session_descriptor_t* descriptor, const sdp_session_t *sdp, apr_pool_t *pool);
37 
38 /** Generate SDP resource discovery string */
39 MRCP_DECLARE(apr_size_t) sdp_resource_discovery_string_generate(const char *ip, const char *origin, char *buffer, apr_size_t size);
40 
42 
43 #endif /* MRCP_SDP_H */
#define MRCP_DECLARE(type)
Definition: mrcp.h:40
#define APT_END_EXTERN_C
Definition: apt.h:38
int apt_bool_t
Definition: apt.h:57
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
apr_size_t sdp_resource_discovery_string_generate(const char *ip, const char *origin, char *buffer, apr_size_t size)
MRCP Signaling Types Declaration.
APT_BEGIN_EXTERN_C apr_size_t sdp_string_generate_by_mrcp_descriptor(char *buffer, apr_size_t size, const mrcp_session_descriptor_t *descriptor, apt_bool_t offer)
apt_bool_t mrcp_descriptor_generate_by_sdp_session(mrcp_session_descriptor_t *descriptor, const sdp_session_t *sdp, const char *force_destination_ip, apr_pool_t *pool)
Definition: mrcp_session_descriptor.h:50
apt_bool_t mrcp_resource_discovery_generate_by_sdp_session(mrcp_session_descriptor_t *descriptor, const sdp_session_t *sdp, apr_pool_t *pool)