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