UniMRCP  1.7.0
rtsp.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_H
18 #define RTSP_H
19 
20 /**
21  * @file rtsp.h
22  * @brief RTSP Core Definitions
23  */
24 
25 #include <apt.h>
26 #include <apr_network_io.h>
27 #include <apt_log.h>
28 
29 /** Library export/import defines */
30 #ifdef WIN32
31 #ifdef RTSP_STATIC_LIB
32 #define RTSP_DECLARE(type) type __stdcall
33 #else
34 #ifdef RTSP_LIB_EXPORT
35 #define RTSP_DECLARE(type) __declspec(dllexport) type __stdcall
36 #else
37 #define RTSP_DECLARE(type) __declspec(dllimport) type __stdcall
38 #endif
39 #endif
40 #else
41 #define RTSP_DECLARE(type) type
42 #endif
43 
44 /** RTSP log source */
45 APT_LOG_SOURCE_DECLARE(RTSP,rtsp_log_source)
46 
47 /** RTSP log mark providing log source, file and line information */
48 #define RTSP_LOG_MARK APT_LOG_MARK_DECLARE(rtsp_log_source)
49 
50 #endif /* RTSP_H */
APT_LOG_SOURCE_DECLARE(MPF, mpf_log_source)
Basic Logger.
APR Toolkit Definitions.