UniMRCP  1.7.0
mpf.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_H
18 #define MPF_H
19 
20 /**
21  * @file mpf.h
22  * @brief Media Processing Framework Definitions
23  */
24 
25 #include <apt.h>
26 #include <apt_log.h>
27 
28 /** lib export/import defines (win32) */
29 #ifdef WIN32
30 #ifdef MPF_STATIC_LIB
31 #define MPF_DECLARE(type) type __stdcall
32 #else
33 #ifdef MPF_LIB_EXPORT
34 #define MPF_DECLARE(type) __declspec(dllexport) type __stdcall
35 #else
36 #define MPF_DECLARE(type) __declspec(dllimport) type __stdcall
37 #endif
38 #endif
39 #else
40 #define MPF_DECLARE(type) type
41 #endif
42 
43 /** MPF log source */
44 APT_LOG_SOURCE_DECLARE(MPF, mpf_log_source);
45 
46 /** MPF log mark providing log source, file and line information */
47 #define MPF_LOG_MARK APT_LOG_MARK_DECLARE(mpf_log_source)
48 
49 #endif /* MPF_H */
APT_LOG_SOURCE_DECLARE(MPF, mpf_log_source)
Basic Logger.
APR Toolkit Definitions.