OLD | NEW |
1 /* | 1 /* |
2 ****************************************************************************** | 2 ****************************************************************************** |
3 * | 3 * |
4 * Copyright (C) 1999-2011, International Business Machines | 4 * Copyright (C) 1999-2011, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ******************************************************************************/ | 7 ******************************************************************************/ |
8 | 8 |
9 | 9 |
10 /*------------------------------------------------------------------------------
---- | 10 /*------------------------------------------------------------------------------
---- |
(...skipping 26 matching lines...) Expand all Loading... |
37 uint8_t magic2; | 37 uint8_t magic2; |
38 } MappedData; | 38 } MappedData; |
39 | 39 |
40 | 40 |
41 typedef struct { | 41 typedef struct { |
42 MappedData dataHeader; | 42 MappedData dataHeader; |
43 UDataInfo info; | 43 UDataInfo info; |
44 } DataHeader; | 44 } DataHeader; |
45 | 45 |
46 typedef struct { | 46 typedef struct { |
47 DataHeader hdr; | |
48 char padding[8]; | |
49 uint32_t count, reserved; | |
50 /* | |
51 const struct { | |
52 const char *const name; | |
53 const void *const data; | |
54 } toc[1]; | |
55 */ | |
56 int fakeNameAndData[4]; /* TODO: Change this header type from */ | |
57 /* pointerTOC to OffsetTOC. */ | |
58 } ICU_Data_Header; | |
59 | |
60 typedef struct { | |
61 uint32_t nameOffset; | 47 uint32_t nameOffset; |
62 uint32_t dataOffset; | 48 uint32_t dataOffset; |
63 } UDataOffsetTOCEntry; | 49 } UDataOffsetTOCEntry; |
64 | 50 |
65 typedef struct { | 51 typedef struct { |
66 uint32_t count; | 52 uint32_t count; |
67 UDataOffsetTOCEntry entry[2]; /* Actual size of array is from count. */ | 53 UDataOffsetTOCEntry entry[2]; /* Actual size of array is from count. */ |
68 } UDataOffsetTOC; | 54 } UDataOffsetTOC; |
69 | 55 |
70 /** | 56 /** |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 * | 102 * |
117 * If a valid header and TOC are found, | 103 * If a valid header and TOC are found, |
118 * set the CommonDataFuncs function dispatch vector in the UDataMemory | 104 * set the CommonDataFuncs function dispatch vector in the UDataMemory |
119 * to point to the right functions for the TOC type. | 105 * to point to the right functions for the TOC type. |
120 * otherwise | 106 * otherwise |
121 * set an errorcode. | 107 * set an errorcode. |
122 */ | 108 */ |
123 U_CFUNC void udata_checkCommonData(UDataMemory *pData, UErrorCode *pErrorCode); | 109 U_CFUNC void udata_checkCommonData(UDataMemory *pData, UErrorCode *pErrorCode); |
124 | 110 |
125 #endif | 111 #endif |
OLD | NEW |