Synchronize with tizen 2.4
[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 /**
18  * @file        TadcTypes.h
19  * @brief       This file includes definitions of constants,
20  *                      enumerations, and datastructures for the DRM service.
21  * @version     1.0
22  */
23
24 #ifndef __TADC_DRM_TYPES_H__
25 #define __TADC_DRM_TYPES_H__
26
27 #include <stdio.h>
28 #include <stdarg.h>
29
30 #define _T
31 #define         IF_ERROR_GOTO( error )  if( FAILED( HRESULT_FROM_WIN32( error ) ) ) { nResult = ERRORMSG( error, NULL ); goto finish; }
32 #define         IF_TRUE_GOTO( cond, error )     if( cond ) { nResult = -1; goto finish; }
33
34 #ifndef _SHP_SIMUL
35 typedef void* LPVOID;
36 typedef const char* LPCTSTR;
37 typedef unsigned char* LPBYTE;
38 typedef char TCHAR;
39 typedef char* LPTSTR;
40 typedef LPTSTR LPSTR;
41 typedef LPCTSTR LPCTSTR;
42 typedef LPCTSTR LPCSTR;
43
44 //typedef HFile HANDLE;
45 #define ERROR_INVALID_DATA               13L
46 #define ERROR_INSUFFICIENT_BUFFER        122L    // dderror
47 //#define CopyMemory AcMemcpy
48 #define INVALID_HOBJ    NULL
49 #endif
50
51 #endif  //__TADC_DRM_TYPES_H__