upload tizen1.0 source
[kernel/linux-2.6.36.git] / drivers / media / video / samsung / ump / include / ump_kernel_platform.h
1 /*
2  * Copyright (C) 2010 ARM Limited. All rights reserved.
3  * 
4  * This program is free software and is provided to you under the terms of the GNU General Public License version 2
5  * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
6  * 
7  * A copy of the licence is included with the program, and can also be obtained from Free Software
8  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
9  */
10
11 /**
12  * @file ump_kernel_platform.h
13  *
14  * This file should define UMP_KERNEL_API_EXPORT,
15  * which dictates how the UMP kernel API should be exported/imported.
16  * Modify this file, if needed, to match your platform setup.
17  */
18
19 #ifndef __UMP_KERNEL_PLATFORM_H__
20 #define __UMP_KERNEL_PLATFORM_H__
21
22 /** @addtogroup ump_kernel_space_api
23  * @{ */
24
25 /**
26  * A define which controls how UMP kernel space API functions are imported and exported.
27  * This define should be set by the implementor of the UMP API.
28  */
29
30 #if defined(_WIN32)
31
32 #if defined(UMP_BUILDING_UMP_LIBRARY)
33 #define UMP_KERNEL_API_EXPORT __declspec(dllexport)
34 #else
35 #define UMP_KERNEL_API_EXPORT __declspec(dllimport)
36 #endif
37
38 #else
39
40 #define UMP_KERNEL_API_EXPORT
41
42 #endif
43
44
45 /** @} */ /* end group ump_kernel_space_api */
46
47
48 #endif /* __UMP_KERNEL_PLATFORM_H__ */