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 { |
47 uint32_t nameOffset; | 61 uint32_t nameOffset; |
48 uint32_t dataOffset; | 62 uint32_t dataOffset; |
49 } UDataOffsetTOCEntry; | 63 } UDataOffsetTOCEntry; |
50 | 64 |
51 typedef struct { | 65 typedef struct { |
52 uint32_t count; | 66 uint32_t count; |
53 UDataOffsetTOCEntry entry[2]; /* Actual size of array is from count. */ | 67 UDataOffsetTOCEntry entry[2]; /* Actual size of array is from count. */ |
54 } UDataOffsetTOC; | 68 } UDataOffsetTOC; |
55 | 69 |
56 /** | 70 /** |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 * | 116 * |
103 * If a valid header and TOC are found, | 117 * If a valid header and TOC are found, |
104 * set the CommonDataFuncs function dispatch vector in the UDataMemory | 118 * set the CommonDataFuncs function dispatch vector in the UDataMemory |
105 * to point to the right functions for the TOC type. | 119 * to point to the right functions for the TOC type. |
106 * otherwise | 120 * otherwise |
107 * set an errorcode. | 121 * set an errorcode. |
108 */ | 122 */ |
109 U_CFUNC void udata_checkCommonData(UDataMemory *pData, UErrorCode *pErrorCode); | 123 U_CFUNC void udata_checkCommonData(UDataMemory *pData, UErrorCode *pErrorCode); |
110 | 124 |
111 #endif | 125 #endif |
OLD | NEW |