2001-08-11 00:29:58 +00:00
|
|
|
/*
|
|
|
|
******************************************************************************
|
|
|
|
* *
|
2012-08-27 20:14:25 +00:00
|
|
|
* Copyright (C) 2001-2012, International Business Machines *
|
2001-08-11 00:29:58 +00:00
|
|
|
* Corporation and others. All Rights Reserved. *
|
|
|
|
* *
|
|
|
|
******************************************************************************
|
|
|
|
* file name: ucln_cmn.h
|
|
|
|
* encoding: US-ASCII
|
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
|
|
|
* created on: 2001July05
|
|
|
|
* created by: George Rhoten
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __UCLN_CMN_H__
|
|
|
|
#define __UCLN_CMN_H__
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
2004-10-06 23:10:53 +00:00
|
|
|
#include "ucln.h"
|
2001-08-11 00:29:58 +00:00
|
|
|
|
2001-08-30 02:59:19 +00:00
|
|
|
/* These are the cleanup functions for various APIs. */
|
2002-07-03 12:05:56 +00:00
|
|
|
/* @return true if cleanup complete successfully.*/
|
2003-08-08 16:23:38 +00:00
|
|
|
U_CFUNC UBool umtx_cleanup(void);
|
2003-06-06 22:50:26 +00:00
|
|
|
|
2003-09-25 17:58:08 +00:00
|
|
|
U_CFUNC UBool utrace_cleanup(void);
|
|
|
|
|
2006-03-31 07:11:33 +00:00
|
|
|
U_CFUNC UBool ucln_lib_cleanup(void);
|
2003-06-06 22:50:26 +00:00
|
|
|
|
2004-10-06 23:10:53 +00:00
|
|
|
/*
|
|
|
|
Please keep the order of enums declared in same order
|
2004-12-31 13:36:49 +00:00
|
|
|
as the cleanup functions are suppose to be called. */
|
2004-10-06 23:10:53 +00:00
|
|
|
typedef enum ECleanupCommonType {
|
|
|
|
UCLN_COMMON_START = -1,
|
|
|
|
UCLN_COMMON_USPREP,
|
|
|
|
UCLN_COMMON_BREAKITERATOR,
|
2006-03-23 00:54:12 +00:00
|
|
|
UCLN_COMMON_BREAKITERATOR_DICT,
|
2004-10-06 23:10:53 +00:00
|
|
|
UCLN_COMMON_SERVICE,
|
|
|
|
UCLN_COMMON_URES,
|
|
|
|
UCLN_COMMON_LOCALE,
|
2010-02-25 22:32:39 +00:00
|
|
|
UCLN_COMMON_LOCALE_AVAILABLE,
|
2004-10-06 23:10:53 +00:00
|
|
|
UCLN_COMMON_ULOC,
|
2010-01-06 23:50:03 +00:00
|
|
|
UCLN_COMMON_NORMALIZER2,
|
2004-10-06 23:10:53 +00:00
|
|
|
UCLN_COMMON_USET,
|
|
|
|
UCLN_COMMON_UNAMES,
|
2005-02-23 00:54:19 +00:00
|
|
|
UCLN_COMMON_UPROPS,
|
2004-10-06 23:10:53 +00:00
|
|
|
UCLN_COMMON_UCNV,
|
|
|
|
UCLN_COMMON_UCNV_IO,
|
|
|
|
UCLN_COMMON_UDATA,
|
|
|
|
UCLN_COMMON_PUTIL,
|
2012-08-27 20:14:25 +00:00
|
|
|
UCLN_COMMON_LIST_FORMATTER,
|
2004-10-06 23:10:53 +00:00
|
|
|
UCLN_COMMON_COUNT /* This must be last */
|
|
|
|
} ECleanupCommonType;
|
|
|
|
|
|
|
|
/* Main library cleanup registration function. */
|
|
|
|
/* See common/ucln.h for details on adding a cleanup function. */
|
|
|
|
U_CFUNC void U_EXPORT2 ucln_common_registerCleanup(ECleanupCommonType type,
|
|
|
|
cleanupFunc *func);
|
2003-08-08 16:23:38 +00:00
|
|
|
|
2001-08-11 00:29:58 +00:00
|
|
|
#endif
|