113#if UCONFIG_ENABLE_PLUGINS || defined(U_IN_DOXYGEN)
119#ifndef U_HIDE_INTERNAL_API
136#define UPLUG_TOKEN 0x54762486
142#define UPLUG_NAME_MAX 100
265U_CAPI const char * U_EXPORT2
274U_CAPI const char * U_EXPORT2
284U_CAPI const char * U_EXPORT2
323U_CAPI const char * U_EXPORT2
uint32_t UPlugTokenReturn
Return value from a plugin entrypoint.
U_CAPI UPlugData * uplug_loadPlugFromLibrary(const char *libName, const char *sym, const char *config, UErrorCode *status)
Inject a plugin from a library, as if the information came from a config file.
UPlugReason
Reason code for the entrypoint's call.
@ UPLUG_REASON_COUNT
Number of known reasons.
@ UPLUG_REASON_LOAD
The plugin is being loaded.
@ UPLUG_REASON_UNLOAD
The plugin is being unloaded.
@ UPLUG_REASON_QUERY
The plugin is being queried for info.
U_CAPI void * uplug_getContext(UPlugData *plug)
Return the plugin-specific context data.
U_CAPI void uplug_removePlug(UPlugData *plug, UErrorCode *status)
Remove a plugin.
U_CAPI void uplug_setContext(UPlugData *plug, void *context)
Set the plugin-specific context data.
UPlugTokenReturn() UPlugEntrypoint(UPlugData *plug, UPlugReason reason, UErrorCode *status)
Entrypoint for an ICU plugin.
U_CAPI const char * uplug_getConfiguration(UPlugData *plug)
Get the configuration string, if available.
struct UPlugData UPlugData
Typedef for opaque structure passed to/from a plugin.
U_CAPI UPlugData * uplug_loadPlugFromEntrypoint(UPlugEntrypoint *entrypoint, const char *config, UErrorCode *status)
Inject a plugin as if it were loaded from a library.
U_CAPI void uplug_setPlugName(UPlugData *plug, const char *name)
Set the human-readable name of this plugin.
U_CAPI void uplug_setPlugLevel(UPlugData *plug, UPlugLevel level)
Set the level of this plugin.
U_CAPI const char * uplug_getPlugName(UPlugData *plug)
Get the human-readable name of this plugin.
U_CAPI UPlugLevel uplug_getPlugLevel(UPlugData *plug)
Get the level of this plugin.
U_CAPI const char * uplug_getLibraryName(UPlugData *plug, UErrorCode *status)
Return the library name for this plugin, if known.
U_CAPI void uplug_setPlugNoUnload(UPlugData *plug, UBool dontUnload)
Request that this plugin not be unloaded at cleanup time.
U_CAPI UErrorCode uplug_getPlugLoadStatus(UPlugData *plug)
Get plug load status.
U_CAPI UPlugLevel uplug_getCurrentLevel(void)
Get the lowest level of plug which can currently load.
U_CAPI const char * uplug_getSymbolName(UPlugData *plug)
Return the symbol name for this plugin, if known.
U_CAPI UPlugData * uplug_nextPlug(UPlugData *prior)
Return all currently installed plugins, from newest to oldest Usage Example:
UPlugLevel
Level of plugin loading INITIAL: UNKNOWN QUERY: INVALID -> { LOW | HIGH } ERR -> INVALID.
@ UPLUG_LEVEL_INVALID
The plugin is invalid, hasn't called uplug_setLevel, or can't load.
@ UPLUG_LEVEL_COUNT
Number of known levels.
@ UPLUG_LEVEL_UNKNOWN
The plugin is waiting to be installed.
@ UPLUG_LEVEL_HIGH
The plugin can run at any time.
@ UPLUG_LEVEL_LOW
The plugin must be called before u_init completes.
U_CAPI void * uplug_getLibrary(UPlugData *plug)
Return the library used for this plugin, if known.
int8_t UBool
The ICU boolean type, a signed-byte integer.
#define U_CAPI
This is used to declare a function as a public ICU C API.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.