1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 ******************************************************************************
5 * Copyright (C) 2001-2016, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 ******************************************************************************
8 * file name: ucln_cmn.h
10 * tab size: 8 (not used)
13 * created on: 2001July05
14 * created by: George Rhoten
17 #ifndef __UCLN_CMN_H__
18 #define __UCLN_CMN_H__
20 #include "unicode/utypes.h"
23 /* These are the cleanup functions for various APIs. */
24 /* @return true if cleanup complete successfully.*/
25 U_CFUNC UBool
umtx_cleanup(void);
27 U_CFUNC UBool
utrace_cleanup(void);
29 U_CFUNC UBool
ucln_lib_cleanup(void);
32 Please keep the order of enums declared in same order
33 as the cleanup functions are suppose to be called. */
34 typedef enum ECleanupCommonType
{
35 UCLN_COMMON_START
= -1,
36 UCLN_COMMON_NUMPARSE_UNISETS
,
38 UCLN_COMMON_BREAKITERATOR
,
42 UCLN_COMMON_LOCALE_KEY_TYPE
,
44 UCLN_COMMON_LOCALE_AVAILABLE
,
47 UCLN_COMMON_LOADED_NORMALIZER2
,
48 UCLN_COMMON_NORMALIZER2
,
49 UCLN_COMMON_CHARACTERPROPERTIES
,
60 Unified caches caches collation stuff. Collation data structures
61 contain resource bundles which means that unified cache cleanup
62 must happen before resource bundle clean up.
64 UCLN_COMMON_UNIFIED_CACHE
,
66 UCLN_COMMON_COUNT
/* This must be last */
69 /* Main library cleanup registration function. */
70 /* See common/ucln.h for details on adding a cleanup function. */
71 /* Note: the global mutex must not be held when calling this function. */
72 U_CFUNC
void U_EXPORT2
ucln_common_registerCleanup(ECleanupCommonType type
,