Fix coding style according to tizen rule
[platform/core/security/drm-service-core-tizen.git] / tadcore / include / TadcTypes.h
1 /*
2  * Copyright (c) 2000-2015 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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  * @file    TadcTypes.h
18  * @brief   Constants, enumerations, and datastructures for the DRM service.
19  * @version 1.0
20  */
21 #ifndef __TADC_DRM_TYPES_H__
22 #define __TADC_DRM_TYPES_H__
23
24 #include <stdio.h>
25 #include <stdarg.h>
26
27 #define _T
28 #define IF_ERROR_GOTO(error) \
29         if (FAILED(HRESULT_FROM_WIN32(error))) { \
30                 nResult = ERRORMSG(error, NULL); \
31                 goto finish; \
32         }
33 #define IF_TRUE_GOTO(cond, error) \
34         if (cond) { \
35                 nResult = -1; \
36                 goto finish; \
37         }
38
39 #ifndef _SHP_SIMUL
40 typedef void *LPVOID;
41 typedef const char *LPCTSTR;
42 typedef unsigned char *LPBYTE;
43 typedef char TCHAR;
44 typedef char *LPTSTR;
45 typedef LPTSTR LPSTR;
46 typedef LPCTSTR LPCTSTR;
47 typedef LPCTSTR LPCSTR;
48
49 //typedef HFile HANDLE;
50 #define ERROR_INVALID_DATA        13L
51 #define ERROR_INSUFFICIENT_BUFFER 122L // dderror
52 //#define CopyMemory AcMemcpy
53 #define INVALID_HOBJ NULL
54 #endif //_SHP_SIMUL
55
56 #endif  //__TADC_DRM_TYPES_H__