sl@0: /* sl@0: ****************************************************************************** sl@0: * * sl@0: * Copyright (C) 2001-2005, International Business Machines * sl@0: * Corporation and others. All Rights Reserved. * sl@0: * * sl@0: ****************************************************************************** sl@0: * file name: ucln_cmn.h sl@0: * encoding: US-ASCII sl@0: * tab size: 8 (not used) sl@0: * indentation:4 sl@0: * sl@0: * created on: 2001July05 sl@0: * created by: George Rhoten sl@0: */ sl@0: sl@0: #ifndef __UCLN_CMN_H__ sl@0: #define __UCLN_CMN_H__ sl@0: sl@0: #include "unicode/utypes.h" sl@0: #include "ucln.h" sl@0: sl@0: /* These are the cleanup functions for various APIs. */ sl@0: /* @return true if cleanup complete successfully.*/ sl@0: U_CFUNC UBool umtx_cleanup(void); sl@0: sl@0: U_CFUNC UBool utrace_cleanup(void); sl@0: sl@0: U_CFUNC UBool ucln_common_lib_cleanup(void); sl@0: sl@0: /* sl@0: Please keep the order of enums declared in same order sl@0: as the cleanup functions are suppose to be called. */ sl@0: typedef enum ECleanupCommonType { sl@0: UCLN_COMMON_START = -1, sl@0: UCLN_COMMON_USPREP, sl@0: UCLN_COMMON_BREAKITERATOR, sl@0: UCLN_COMMON_SERVICE, sl@0: UCLN_COMMON_URES, sl@0: UCLN_COMMON_LOCALE, sl@0: UCLN_COMMON_ULOC, sl@0: UCLN_COMMON_UNORM, sl@0: UCLN_COMMON_USET, sl@0: UCLN_COMMON_UNAMES, sl@0: UCLN_COMMON_PNAME, sl@0: UCLN_COMMON_UPROPS, sl@0: UCLN_COMMON_UBIDI, sl@0: UCLN_COMMON_UCASE, sl@0: UCLN_COMMON_UCHAR, sl@0: UCLN_COMMON_UCNV, sl@0: UCLN_COMMON_UCNV_IO, sl@0: UCLN_COMMON_UDATA, sl@0: UCLN_COMMON_PUTIL, sl@0: UCLN_COMMON_COUNT /* This must be last */ sl@0: } ECleanupCommonType; sl@0: sl@0: /* Main library cleanup registration function. */ sl@0: /* See common/ucln.h for details on adding a cleanup function. */ sl@0: U_CFUNC void U_EXPORT2 ucln_common_registerCleanup(ECleanupCommonType type, sl@0: cleanupFunc *func); sl@0: sl@0: #endif