]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | /* |
2 | ****************************************************************************** | |
3 | * * | |
729e4ab9 | 4 | * Copyright (C) 2001-2010, International Business Machines * |
b75a7d8f A |
5 | * Corporation and others. All Rights Reserved. * |
6 | * * | |
7 | ****************************************************************************** | |
8 | * file name: ucln_cmn.h | |
9 | * encoding: US-ASCII | |
10 | * tab size: 8 (not used) | |
11 | * indentation:4 | |
12 | * | |
13 | * created on: 2001July05 | |
14 | * created by: George Rhoten | |
15 | */ | |
16 | ||
17 | #ifndef __UCLN_CMN_H__ | |
18 | #define __UCLN_CMN_H__ | |
19 | ||
20 | #include "unicode/utypes.h" | |
374ca955 | 21 | #include "ucln.h" |
b75a7d8f A |
22 | |
23 | /* These are the cleanup functions for various APIs. */ | |
24 | /* @return true if cleanup complete successfully.*/ | |
374ca955 | 25 | U_CFUNC UBool umtx_cleanup(void); |
b75a7d8f | 26 | |
374ca955 | 27 | U_CFUNC UBool utrace_cleanup(void); |
b75a7d8f | 28 | |
73c04bcf | 29 | U_CFUNC UBool ucln_lib_cleanup(void); |
b75a7d8f | 30 | |
374ca955 A |
31 | /* |
32 | Please keep the order of enums declared in same order | |
73c04bcf | 33 | as the cleanup functions are suppose to be called. */ |
374ca955 A |
34 | typedef enum ECleanupCommonType { |
35 | UCLN_COMMON_START = -1, | |
36 | UCLN_COMMON_USPREP, | |
37 | UCLN_COMMON_BREAKITERATOR, | |
73c04bcf | 38 | UCLN_COMMON_BREAKITERATOR_DICT, |
374ca955 A |
39 | UCLN_COMMON_SERVICE, |
40 | UCLN_COMMON_URES, | |
41 | UCLN_COMMON_LOCALE, | |
729e4ab9 | 42 | UCLN_COMMON_LOCALE_AVAILABLE, |
374ca955 | 43 | UCLN_COMMON_ULOC, |
729e4ab9 | 44 | UCLN_COMMON_NORMALIZER2, |
374ca955 A |
45 | UCLN_COMMON_USET, |
46 | UCLN_COMMON_UNAMES, | |
73c04bcf | 47 | UCLN_COMMON_UPROPS, |
374ca955 A |
48 | UCLN_COMMON_UCNV, |
49 | UCLN_COMMON_UCNV_IO, | |
50 | UCLN_COMMON_UDATA, | |
51 | UCLN_COMMON_PUTIL, | |
52 | UCLN_COMMON_COUNT /* This must be last */ | |
53 | } ECleanupCommonType; | |
54 | ||
55 | /* Main library cleanup registration function. */ | |
56 | /* See common/ucln.h for details on adding a cleanup function. */ | |
57 | U_CFUNC void U_EXPORT2 ucln_common_registerCleanup(ECleanupCommonType type, | |
58 | cleanupFunc *func); | |
b75a7d8f A |
59 | |
60 | #endif |