UniMRCP  1.7.0
rtsp_message.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 RTSP_MESSAGE_H
18 #define RTSP_MESSAGE_H
19 
20 /**
21  * @file rtsp_message.h
22  * @brief RTSP Message Definition
23  */
24 
25 #include "rtsp_start_line.h"
26 #include "rtsp_header.h"
27 
29 
30 /** RTSP message declaration */
32 
33 /** RTSP message */
35  /** RTSP mesage type (request/response) */
37  /** RTSP header */
39  /** RTSP message body */
41 
42  /** Pool to allocate memory from */
43  apr_pool_t *pool;
44 };
45 
46 /**
47  * Create RTSP message.
48  * @param message_type the message type
49  * @param pool the pool to allocate memory from
50  */
52 
53 /**
54  * Create RTSP request message.
55  * @param pool the pool to allocate memory from
56  */
58 
59 /**
60  * Create RTSP response message.
61  * @param request the request to create response to
62  * @param status_code the status code of the response
63  * @param reason the reason phrase id of the response
64  * @param pool the pool to allocate memory from
65  */
67 
68 /**
69  * Destroy RTSP message
70  * @param message the message to destroy
71  */
73 
75 
76 #endif /* RTSP_MESSAGE_H */
Definition: rtsp_start_line.h:132
apt_str_t body
Definition: rtsp_message.h:40
Definition: rtsp_header.h:141
#define APT_END_EXTERN_C
Definition: apt.h:38
RTSP Header.
rtsp_reason_phrase_e
Definition: rtsp_start_line.h:79
rtsp_message_type_e
Definition: rtsp_start_line.h:39
rtsp_message_t * rtsp_request_create(apr_pool_t *pool)
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
RTSP Start Line (request-line/status-line)
Definition: rtsp_message.h:34
rtsp_header_t header
Definition: rtsp_message.h:38
rtsp_start_line_t start_line
Definition: rtsp_message.h:36
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)
#define RTSP_DECLARE(type)
Definition: rtsp.h:41
rtsp_status_code_e
Definition: rtsp_start_line.h:58
Definition: apt_string.h:36
rtsp_message_t * rtsp_message_create(rtsp_message_type_e message_type, apr_pool_t *pool)
apr_pool_t * pool
Definition: rtsp_message.h:43
void rtsp_message_destroy(rtsp_message_t *message)