|
1 /* |
|
2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Symbian definitions for the core engine data types |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef AM_PLATFORM_LIBRARIES_H |
|
20 #define AM_PLATFORM_LIBRARIES_H |
|
21 |
|
22 #ifndef __KERNEL_MODE__ |
|
23 #include <e32base.h> |
|
24 #else |
|
25 #include <kernel.h> |
|
26 #endif // __KERNEL__MODE |
|
27 |
|
28 /** |
|
29 * The basic types cannot be included from EAPOL because |
|
30 * they include user-space headers that is prohibited in |
|
31 * kernel code. |
|
32 * |
|
33 * Therefore, we simply copy the basic types for kernel |
|
34 * code. |
|
35 */ |
|
36 |
|
37 /** JPHC++ definitions */ |
|
38 typedef signed char i8_t; |
|
39 typedef unsigned char u8_t; |
|
40 typedef short int i16_t; |
|
41 typedef unsigned short int u16_t; |
|
42 typedef long int i32_t; |
|
43 typedef unsigned long int u32_t; |
|
44 |
|
45 #if defined(__WINSCW__) |
|
46 /// This is signed 64-bit integer. |
|
47 typedef long long i64_t; |
|
48 #elif defined(__GNUC__) |
|
49 /// This is signed 64-bit integer. |
|
50 typedef long long i64_t; |
|
51 #else |
|
52 /// This is signed 64-bit integer. |
|
53 typedef __int64 i64_t; |
|
54 #endif |
|
55 |
|
56 #if defined(__WINSCW__) |
|
57 /// This is unsigned 64-bit integer. |
|
58 typedef unsigned long long u64_t; |
|
59 #elif defined(__GNUC__) |
|
60 /// This is unsigned 64-bit integer. |
|
61 typedef unsigned long long u64_t; |
|
62 #else |
|
63 /// This is unsigned 64-bit integer. Actually there is not unsigned version. |
|
64 typedef __int64 u64_t; |
|
65 #endif |
|
66 |
|
67 /** NOC++ definitions */ |
|
68 typedef int int_t; |
|
69 typedef unsigned int uint_t; |
|
70 typedef unsigned char text8_t; |
|
71 typedef unsigned short int text16_t; |
|
72 |
|
73 typedef int bool_t; |
|
74 enum _false_t { false_t = 0 }; |
|
75 enum _true_t { true_t = 1 }; |
|
76 |
|
77 #endif // AM_PLATFORM_LIBRARIES_H |