00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __UCLEAN_H__
00018 #define __UCLEAN_H__
00019
00020 #include "unicode/utypes.h"
00068 U_STABLE void U_EXPORT2
00069 u_init(UErrorCode *status);
00070
00116 U_STABLE void U_EXPORT2
00117 u_cleanup(void);
00118
00119
00120
00121
00129 typedef void *UMTX;
00130
00147 typedef void U_CALLCONV UMtxInitFn (const void *context, UMTX *mutex, UErrorCode* status);
00148
00149
00159 typedef void U_CALLCONV UMtxFn (const void *context, UMTX *mutex);
00160
00161
00181 U_STABLE void U_EXPORT2
00182 u_setMutexFunctions(const void *context, UMtxInitFn *init, UMtxFn *destroy, UMtxFn *lock, UMtxFn *unlock,
00183 UErrorCode *status);
00184
00185
00194 typedef int32_t U_CALLCONV UMtxAtomicFn(const void *context, int32_t *p);
00195
00211 U_STABLE void U_EXPORT2
00212 u_setAtomicIncDecFunctions(const void *context, UMtxAtomicFn *inc, UMtxAtomicFn *dec,
00213 UErrorCode *status);
00214
00215
00216
00225 typedef void *U_CALLCONV UMemAllocFn(const void *context, size_t size);
00234 typedef void *U_CALLCONV UMemReallocFn(const void *context, void *mem, size_t size);
00245 typedef void U_CALLCONV UMemFreeFn (const void *context, void *mem);
00246
00263 U_STABLE void U_EXPORT2
00264 u_setMemoryFunctions(const void *context, UMemAllocFn *a, UMemReallocFn *r, UMemFreeFn *f,
00265 UErrorCode *status);
00266
00267 #endif