UniMRCP
1.3.0
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
libs
uni-rtsp
include
rtsp_message.h
Go to the documentation of this file.
1
/*
2
* Copyright 2008-2014 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
* $Id: rtsp_message.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
17
*/
18
19
#ifndef RTSP_MESSAGE_H
20
#define RTSP_MESSAGE_H
21
22
/**
23
* @file rtsp_message.h
24
* @brief RTSP Message Definition
25
*/
26
27
#include "
rtsp_start_line.h
"
28
#include "
rtsp_header.h
"
29
30
APT_BEGIN_EXTERN_C
31
32
/** RTSP message declaration */
33
typedef
struct
rtsp_message_t
rtsp_message_t
;
34
35
/** RTSP message */
36
struct
rtsp_message_t
{
37
/** RTSP mesage type (request/response) */
38
rtsp_start_line_t
start_line
;
39
/** RTSP header */
40
rtsp_header_t
header
;
41
/** RTSP message body */
42
apt_str_t
body
;
43
44
/** Pool to allocate memory from */
45
apr_pool_t *
pool
;
46
};
47
48
/**
49
* Create RTSP message.
50
* @param message_type the message type
51
* @param pool the pool to allocate memory from
52
*/
53
RTSP_DECLARE
(
rtsp_message_t
*)
rtsp_message_create
(
rtsp_message_type_e
message_type, apr_pool_t *pool);
54
55
/**
56
* Create RTSP request message.
57
* @param pool the pool to allocate memory from
58
*/
59
RTSP_DECLARE
(
rtsp_message_t
*)
rtsp_request_create
(apr_pool_t *pool);
60
61
/**
62
* Create RTSP response message.
63
* @param request the request to create response to
64
* @param status_code the status code of the response
65
* @param reason the reason phrase id of the response
66
* @param pool the pool to allocate memory from
67
*/
68
RTSP_DECLARE
(
rtsp_message_t
*)
rtsp_response_create
(const
rtsp_message_t
*request,
rtsp_status_code_e
status_code,
rtsp_reason_phrase_e
reason, apr_pool_t *pool);
69
70
/**
71
* Destroy RTSP message
72
* @param message the message to destroy
73
*/
74
RTSP_DECLARE
(
void
)
rtsp_message_destroy
(
rtsp_message_t
*message);
75
76
APT_END_EXTERN_C
77
78
#endif
/* RTSP_MESSAGE_H */
Generated on Mon Feb 2 2015 19:41:39 for UniMRCP by
1.8.3.1