2 ******************************************************************************
3 * Copyright (C) 2001-2016, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 ******************************************************************************
6 * file name: ucln_cmn.h
8 * tab size: 8 (not used)
11 * created on: 2001July05
12 * created by: George Rhoten
15 #ifndef __UCLN_CMN_H__
16 #define __UCLN_CMN_H__
18 #include "unicode/utypes.h"
21 /* These are the cleanup functions for various APIs. */
22 /* @return true if cleanup complete successfully.*/
23 U_CFUNC UBool
umtx_cleanup(void);
25 U_CFUNC UBool
utrace_cleanup(void);
27 U_CFUNC UBool
ucln_lib_cleanup(void);
30 Please keep the order of enums declared in same order
31 as the cleanup functions are suppose to be called. */
32 typedef enum ECleanupCommonType
{
33 UCLN_COMMON_START
= -1,
35 UCLN_COMMON_BREAKITERATOR
,
36 UCLN_COMMON_BREAKITERATOR_DICT
,
38 UCLN_COMMON_LOCALE_KEY_TYPE
,
40 UCLN_COMMON_LOCALE_AVAILABLE
,
43 UCLN_COMMON_LOADED_NORMALIZER2
,
44 UCLN_COMMON_NORMALIZER2
,
52 UCLN_COMMON_LIST_FORMATTER
,
56 Unified caches caches collation stuff. Collation data structures
57 contain resource bundles which means that unified cache cleanup
58 must happen before resource bundle clean up.
60 UCLN_COMMON_UNIFIED_CACHE
,
62 UCLN_COMMON_COUNT
/* This must be last */
65 /* Main library cleanup registration function. */
66 /* See common/ucln.h for details on adding a cleanup function. */
67 /* Note: the global mutex must not be held when calling this function. */
68 U_CFUNC
void U_EXPORT2
ucln_common_registerCleanup(ECleanupCommonType type
,