]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/icuplugimp.h
2 ******************************************************************************
4 * Copyright (C) 2009-2010, International Business Machines
5 * Corporation and others. All Rights Reserved.
7 ******************************************************************************
9 * FILE NAME : icuplugimp.h
11 * Internal functions for the ICU plugin system
13 * Date Name Description
15 ******************************************************************************
22 #include "unicode/icuplug.h"
24 /*========================*/
25 /** @{ Library Manipulation
29 * Open a library, adding a reference count if needed.
30 * @param libName library name to load
31 * @param status error code
32 * @return the library pointer, or NULL
33 * @internal internal use only
35 U_INTERNAL
void * U_EXPORT2
36 uplug_openLibrary(const char *libName
, UErrorCode
*status
);
39 * Close a library, if its reference count is 0
40 * @param lib the library to close
41 * @param status error code
42 * @internal internal use only
44 U_INTERNAL
void U_EXPORT2
45 uplug_closeLibrary(void *lib
, UErrorCode
*status
);
48 * Get a library's name, or NULL if not found.
49 * @param lib the library's name
50 * @param status error code
51 * @return the library name, or NULL if not found.
52 * @internal internal use only
54 U_INTERNAL
char * U_EXPORT2
55 uplug_findLibrary(void *lib
, UErrorCode
*status
);
59 /*========================*/
60 /** {@ ICU Plugin internal interfaces
64 * Initialize the plugins
65 * @param status error result
66 * @internal - Internal use only.
68 U_INTERNAL
void U_EXPORT2
69 uplug_init(UErrorCode
*status
);
73 * @internal - Internal use only
75 U_INTERNAL UPlugData
* U_EXPORT2
76 uplug_getPlugInternal(int32_t n
);
79 * Get the name of the plugin file.
80 * @internal - Internal use only.
82 U_INTERNAL
const char* U_EXPORT2
83 uplug_getPluginFile(void);