1 /* Copyright (c) 2000 IBM, Inc. and Others.
2 FLAGCB.H - interface to 'flagging' callback which
3 simply marks the fact that the callback was called.
9 #include "unicode/utypes.h"
10 #include "unicode/ucnv.h"
12 /* The structure of a FromU Flag context.
13 (conceivably there could be a ToU Flag Context) */
17 UConverterFromUCallback subCallback;
18 const void *subContext;
26 U_CAPI FromUFLAGContext* U_EXPORT2 flagCB_fromU_openContext();
31 U_CAPI void U_EXPORT2 flagCB_fromU(
33 UConverterFromUnicodeArgs *fromUArgs,
34 const UChar* codeUnits,
37 UConverterCallbackReason reason,
44 UConverterFromUCallback subCallback;
45 const void *subContext;
46 uint32_t magic; /* 0xC0FFEE to identify that the object is OK */
47 uint32_t serial; /* minted from nextSerial */
50 U_CAPI void debugCB_fromU(const void *context,
51 UConverterFromUnicodeArgs *fromUArgs,
52 const UChar* codeUnits,
55 UConverterCallbackReason reason,
58 U_CAPI debugCBContext *debugCB_openContext();