| OLD | NEW |
| 1 /* | 1 /* |
| 2 ****************************************************************************** | 2 ****************************************************************************** |
| 3 * * | 3 * * |
| 4 * Copyright (C) 2001-2013, International Business Machines * | 4 * Copyright (C) 2001-2014, International Business Machines * |
| 5 * Corporation and others. All Rights Reserved. * | 5 * Corporation and others. All Rights Reserved. * |
| 6 * * | 6 * * |
| 7 ****************************************************************************** | 7 ****************************************************************************** |
| 8 * file name: ucln_cmn.h | 8 * file name: ucln_cmn.h |
| 9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
| 10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
| 11 * indentation:4 | 11 * indentation:4 |
| 12 * | 12 * |
| 13 * created on: 2001July05 | 13 * created on: 2001July05 |
| 14 * created by: George Rhoten | 14 * created by: George Rhoten |
| (...skipping 15 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 /* | 31 /* |
| 32 Please keep the order of enums declared in same order | 32 Please keep the order of enums declared in same order |
| 33 as the cleanup functions are suppose to be called. */ | 33 as the cleanup functions are suppose to be called. */ |
| 34 typedef enum ECleanupCommonType { | 34 typedef enum ECleanupCommonType { |
| 35 UCLN_COMMON_START = -1, | 35 UCLN_COMMON_START = -1, |
| 36 UCLN_COMMON_USPREP, | 36 UCLN_COMMON_USPREP, |
| 37 UCLN_COMMON_BREAKITERATOR, | 37 UCLN_COMMON_BREAKITERATOR, |
| 38 UCLN_COMMON_BREAKITERATOR_DICT, | 38 UCLN_COMMON_BREAKITERATOR_DICT, |
| 39 UCLN_COMMON_SERVICE, | 39 UCLN_COMMON_SERVICE, |
| 40 UCLN_COMMON_URES, | 40 UCLN_COMMON_LOCALE_KEY_TYPE, |
| 41 UCLN_COMMON_LOCALE, | 41 UCLN_COMMON_LOCALE, |
| 42 UCLN_COMMON_LOCALE_AVAILABLE, | 42 UCLN_COMMON_LOCALE_AVAILABLE, |
| 43 UCLN_COMMON_ULOC, | 43 UCLN_COMMON_ULOC, |
| 44 UCLN_COMMON_LOADED_NORMALIZER2, |
| 44 UCLN_COMMON_NORMALIZER2, | 45 UCLN_COMMON_NORMALIZER2, |
| 45 UCLN_COMMON_USET, | 46 UCLN_COMMON_USET, |
| 46 UCLN_COMMON_UNAMES, | 47 UCLN_COMMON_UNAMES, |
| 47 UCLN_COMMON_UPROPS, | 48 UCLN_COMMON_UPROPS, |
| 48 UCLN_COMMON_UCNV, | 49 UCLN_COMMON_UCNV, |
| 49 UCLN_COMMON_UCNV_IO, | 50 UCLN_COMMON_UCNV_IO, |
| 50 UCLN_COMMON_UDATA, | 51 UCLN_COMMON_UDATA, |
| 51 UCLN_COMMON_PUTIL, | 52 UCLN_COMMON_PUTIL, |
| 52 UCLN_COMMON_LIST_FORMATTER, | 53 UCLN_COMMON_LIST_FORMATTER, |
| 53 UCLN_COMMON_UINIT, | 54 UCLN_COMMON_UINIT, |
| 55 |
| 56 /* |
| 57 Unified caches caches collation stuff. Collation data structures |
| 58 contain resource bundles which means that unified cache cleanup |
| 59 must happen before resource bundle clean up. |
| 60 */ |
| 61 UCLN_COMMON_UNIFIED_CACHE, |
| 62 UCLN_COMMON_URES, |
| 54 UCLN_COMMON_COUNT /* This must be last */ | 63 UCLN_COMMON_COUNT /* This must be last */ |
| 55 } ECleanupCommonType; | 64 } ECleanupCommonType; |
| 56 | 65 |
| 57 /* Main library cleanup registration function. */ | 66 /* Main library cleanup registration function. */ |
| 58 /* See common/ucln.h for details on adding a cleanup function. */ | 67 /* See common/ucln.h for details on adding a cleanup function. */ |
| 68 /* Note: the global mutex must not be held when calling this function. */ |
| 59 U_CFUNC void U_EXPORT2 ucln_common_registerCleanup(ECleanupCommonType type, | 69 U_CFUNC void U_EXPORT2 ucln_common_registerCleanup(ECleanupCommonType type, |
| 60 cleanupFunc *func); | 70 cleanupFunc *func); |
| 61 | 71 |
| 62 #endif | 72 #endif |
| OLD | NEW |