intl/icu/source/common/ucln_cmn.h

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

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

mercurial