[Release] wrt-installer_0.0.73
[framework/web/wrt-installer.git] / src / commons / drm / InkaTypes.h
1 /*\r
2  * SHP\r
3  * Copyright (c) 2000-2007 UMTS Software Lab, Mobile Communication Division,\r
4  * Telecommunication Network Business, Samsung Electronics, Inc.\r
5  * All rights reserved.\r
6  *\r
7  * This software is the confidential and proprietary information\r
8  * of Samsung Electronics, Inc. ("Confidential Information").  You\r
9  * shall not disclose such Confidential Information and shall use\r
10  * it only in accordance with the terms of the license agreement\r
11  * you entered into with Samsung Electronics. \r
12  */\r
13 \r
14 /** \r
15  * @file        InkaTypes.h\r
16  * @brief       This file includes definitions of constants, \r
17  *                      enumerations, and datastructures for the Inka DRM service.\r
18 # @author               Jihyun Lee(ezhyun.lee@samsung.com)\r
19 # @author               Donghyun Yoo(marku.yoo@samsung.com)\r
20  * @version     1.0\r
21  */\r
22 \r
23 #ifndef INKA_DRM_TYPES_H\r
24 #define INKA_DRM_TYPES_H\r
25 \r
26 //#include "shp.h"\r
27 //#include "FileMgr.h"\r
28 #include <stdio.h>\r
29 #include <stdarg.h>\r
30 \r
31 #define _T\r
32 #define IF_ERROR_GOTO( error )  if( FAILED( HRESULT_FROM_WIN32( error ) ) ) { nResult = ERRORMSG( error, NULL ); goto finish; }\r
33 #define IF_TRUE_GOTO( cond, error )     if( cond ) { nResult = -1; goto finish; }\r
34 \r
35 #if defined(_WIN32) || defined(_WIN64) \r
36   #define snprintf _snprintf \r
37   #define vsnprintf _vsnprintf \r
38   #define strcasecmp _stricmp \r
39   #define strncasecmp _strnicmp \r
40 #endif\r
41 \r
42 #ifndef _SHP_SIMUL\r
43 typedef void* LPVOID;\r
44 typedef const char* LPCTSTR;\r
45 typedef unsigned char* LPBYTE;\r
46 typedef char TCHAR;\r
47 typedef char* LPTSTR;\r
48 typedef LPTSTR LPSTR;\r
49 typedef LPCTSTR LPCTSTR;\r
50 typedef LPCTSTR LPCSTR;\r
51 \r
52 #define DWORD           unsigned long\r
53 #define LPBYTE          unsigned char*\r
54 #define BYTE            unsigned char\r
55 #define UINT            unsigned int\r
56 #define ULONG           unsigned long\r
57 #define INT32           long\r
58 #define INT64           long long\r
59 #define TRUE            1\r
60 #define FALSE           0\r
61 \r
62 \r
63 typedef char CHAR;\r
64 typedef bool BOOL;\r
65 \r
66 \r
67 //typedef HFile HANDLE;\r
68 #define ERROR_INVALID_DATA               13L\r
69 #define ERROR_INSUFFICIENT_BUFFER        122L    // dderror\r
70 //#define CopyMemory AcMemcpy\r
71 #define INVALID_HOBJ    NULL\r
72 \r
73 #endif\r
74 \r
75 \r
76 #endif  //INKA_DRM_TYPES_H\r