1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/common/ucln_cmn.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,62 @@ 1.4 +/* 1.5 +****************************************************************************** 1.6 +* * 1.7 +* Copyright (C) 2001-2013, International Business Machines * 1.8 +* Corporation and others. All Rights Reserved. * 1.9 +* * 1.10 +****************************************************************************** 1.11 +* file name: ucln_cmn.h 1.12 +* encoding: US-ASCII 1.13 +* tab size: 8 (not used) 1.14 +* indentation:4 1.15 +* 1.16 +* created on: 2001July05 1.17 +* created by: George Rhoten 1.18 +*/ 1.19 + 1.20 +#ifndef __UCLN_CMN_H__ 1.21 +#define __UCLN_CMN_H__ 1.22 + 1.23 +#include "unicode/utypes.h" 1.24 +#include "ucln.h" 1.25 + 1.26 +/* These are the cleanup functions for various APIs. */ 1.27 +/* @return true if cleanup complete successfully.*/ 1.28 +U_CFUNC UBool umtx_cleanup(void); 1.29 + 1.30 +U_CFUNC UBool utrace_cleanup(void); 1.31 + 1.32 +U_CFUNC UBool ucln_lib_cleanup(void); 1.33 + 1.34 +/* 1.35 +Please keep the order of enums declared in same order 1.36 +as the cleanup functions are suppose to be called. */ 1.37 +typedef enum ECleanupCommonType { 1.38 + UCLN_COMMON_START = -1, 1.39 + UCLN_COMMON_USPREP, 1.40 + UCLN_COMMON_BREAKITERATOR, 1.41 + UCLN_COMMON_BREAKITERATOR_DICT, 1.42 + UCLN_COMMON_SERVICE, 1.43 + UCLN_COMMON_URES, 1.44 + UCLN_COMMON_LOCALE, 1.45 + UCLN_COMMON_LOCALE_AVAILABLE, 1.46 + UCLN_COMMON_ULOC, 1.47 + UCLN_COMMON_NORMALIZER2, 1.48 + UCLN_COMMON_USET, 1.49 + UCLN_COMMON_UNAMES, 1.50 + UCLN_COMMON_UPROPS, 1.51 + UCLN_COMMON_UCNV, 1.52 + UCLN_COMMON_UCNV_IO, 1.53 + UCLN_COMMON_UDATA, 1.54 + UCLN_COMMON_PUTIL, 1.55 + UCLN_COMMON_LIST_FORMATTER, 1.56 + UCLN_COMMON_UINIT, 1.57 + UCLN_COMMON_COUNT /* This must be last */ 1.58 +} ECleanupCommonType; 1.59 + 1.60 +/* Main library cleanup registration function. */ 1.61 +/* See common/ucln.h for details on adding a cleanup function. */ 1.62 +U_CFUNC void U_EXPORT2 ucln_common_registerCleanup(ECleanupCommonType type, 1.63 + cleanupFunc *func); 1.64 + 1.65 +#endif