1 // © 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html 3 /****************************************************************************** 4 * 5 * Copyright (C) 2001, International Business Machines 6 * Corporation and others. All Rights Reserved. 7 * 8 ******************************************************************************* 9 * file name: stubdata.h 10 * 11 * This header file is intended to be internal and only included in the 12 * accompanying implementation file. This file declares a single entry 13 * point for visibility of tools like TAPI. 14 * 15 * Define initialized data that will build into a valid, but empty 16 * ICU data library. Used to bootstrap the ICU build, which has these 17 * dependencies: 18 * ICU Common library depends on ICU data 19 * ICU data requires data building tools. 20 * ICU data building tools require the ICU common library. 21 * 22 * The stub data library (for which this file is the source) is sufficient 23 * for running the data building tools. 24 * 25 */ 26 27 #ifndef __STUBDATA_H__ 28 #define __STUBDATA_H__ 29 30 #include "unicode/utypes.h" 31 #include "unicode/udata.h" 32 #include "unicode/uversion.h" 33 34 typedef struct { 35 uint16_t headerSize; 36 uint8_t magic1, magic2; 37 UDataInfo info; 38 char padding[8]; 39 uint32_t count, reserved; 40 /* 41 const struct { 42 const char *const name; 43 const void *const data; 44 } toc[1]; 45 */ 46 int fakeNameAndData[4]; /* TODO: Change this header type from */ 47 /* pointerTOC to OffsetTOC. */ 48 } ICU_Data_Header; 49 50 extern "C" U_EXPORT const ICU_Data_Header U_ICUDATA_ENTRY_POINT; 51 52 #endif /* __STUBDATA_H__ */ 53