Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

uclean.h

Go to the documentation of this file.
00001 /*
00002 ******************************************************************************
00003 *                                                                            *
00004 * Copyright (C) 2001-2003, International Business Machines                   *
00005 *                Corporation and others. All Rights Reserved.                *
00006 *                                                                            *
00007 ******************************************************************************
00008 *   file name:  uclean.h
00009 *   encoding:   US-ASCII
00010 *   tab size:   8 (not used)
00011 *   indentation:4
00012 *
00013 *   created on: 2001July05
00014 *   created by: George Rhoten
00015 */
00016 
00017 #ifndef __UCLEAN_H__
00018 #define __UCLEAN_H__
00019 
00020 #include "unicode/utypes.h"
00021 
00051 U_CAPI void U_EXPORT2 
00052 u_init(UErrorCode *status);
00053 
00090 U_CAPI void U_EXPORT2 
00091 u_cleanup(void);
00092 
00093 
00094 
00095 
00103 typedef void *UMTX;
00104 
00121 typedef void U_CALLCONV UMtxInitFn (const void *context, UMTX  *mutex, UErrorCode* status);
00122 
00123 
00133 typedef void U_CALLCONV UMtxFn   (const void *context, UMTX  *mutex);
00134 
00135 
00153 U_CAPI void U_EXPORT2 
00154 u_setMutexFunctions(const void *context, UMtxInitFn *init, UMtxFn *destroy, UMtxFn *lock, UMtxFn *unlock,
00155                     UErrorCode *status);
00156 
00157 
00166 typedef int32_t U_CALLCONV UMtxAtomicFn(const void *context, int32_t *p);
00167 
00183 U_CAPI void U_EXPORT2 
00184 u_setAtomicIncDecFunctions(const void *context, UMtxAtomicFn *inc, UMtxAtomicFn *dec,
00185                     UErrorCode *status);
00186 
00187 
00188 
00197 typedef void *U_CALLCONV UMemAllocFn(const void *context, size_t size);
00206 typedef void *U_CALLCONV UMemReallocFn(const void *context, void *mem, size_t size);
00217 typedef void  U_CALLCONV UMemFreeFn (const void *context, void *mem);
00218 
00235 U_CAPI void U_EXPORT2 
00236 u_setMemoryFunctions(const void *context, UMemAllocFn *a, UMemReallocFn *r, UMemFreeFn *f, 
00237                     UErrorCode *status);
00238 
00239 #endif

Generated on Mon Nov 24 14:35:40 2003 for ICU 2.8 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001