2001-08-11 00:29:58 +00:00
|
|
|
/*
|
|
|
|
******************************************************************************
|
|
|
|
* *
|
2006-03-23 00:54:12 +00:00
|
|
|
* Copyright (C) 2001-2006, 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);
|
|
|
|
|
2004-10-06 23:10:53 +00:00
|
|
|
U_CFUNC UBool ucln_common_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,
|
|
|
|
UCLN_COMMON_ULOC,
|
|
|
|
UCLN_COMMON_UNORM,
|
|
|
|
UCLN_COMMON_USET,
|
|
|
|
UCLN_COMMON_UNAMES,
|
|
|
|
UCLN_COMMON_PNAME,
|
2005-02-23 00:54:19 +00:00
|
|
|
UCLN_COMMON_UPROPS,
|
2004-12-31 13:36:49 +00:00
|
|
|
UCLN_COMMON_UBIDI,
|
2004-10-06 23:10:53 +00:00
|
|
|
UCLN_COMMON_UCASE,
|
|
|
|
UCLN_COMMON_UCHAR,
|
|
|
|
UCLN_COMMON_UCNV,
|
|
|
|
UCLN_COMMON_UCNV_IO,
|
|
|
|
UCLN_COMMON_UDATA,
|
|
|
|
UCLN_COMMON_PUTIL,
|
|
|
|
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
|