1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/common/icuplugimp.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,87 @@ 1.4 +/* 1.5 +****************************************************************************** 1.6 +* 1.7 +* Copyright (C) 2009-2010, International Business Machines 1.8 +* Corporation and others. All Rights Reserved. 1.9 +* 1.10 +****************************************************************************** 1.11 +* 1.12 +* FILE NAME : icuplugimp.h 1.13 +* 1.14 +* Internal functions for the ICU plugin system 1.15 +* 1.16 +* Date Name Description 1.17 +* 10/29/2009 sl New. 1.18 +****************************************************************************** 1.19 +*/ 1.20 + 1.21 + 1.22 +#ifndef ICUPLUGIMP_H 1.23 +#define ICUPLUGIMP_H 1.24 + 1.25 +#include "unicode/icuplug.h" 1.26 + 1.27 +/*========================*/ 1.28 +/** @{ Library Manipulation 1.29 + */ 1.30 + 1.31 +/** 1.32 + * Open a library, adding a reference count if needed. 1.33 + * @param libName library name to load 1.34 + * @param status error code 1.35 + * @return the library pointer, or NULL 1.36 + * @internal internal use only 1.37 + */ 1.38 +U_INTERNAL void * U_EXPORT2 1.39 +uplug_openLibrary(const char *libName, UErrorCode *status); 1.40 + 1.41 +/** 1.42 + * Close a library, if its reference count is 0 1.43 + * @param lib the library to close 1.44 + * @param status error code 1.45 + * @internal internal use only 1.46 + */ 1.47 +U_INTERNAL void U_EXPORT2 1.48 +uplug_closeLibrary(void *lib, UErrorCode *status); 1.49 + 1.50 +/** 1.51 + * Get a library's name, or NULL if not found. 1.52 + * @param lib the library's name 1.53 + * @param status error code 1.54 + * @return the library name, or NULL if not found. 1.55 + * @internal internal use only 1.56 + */ 1.57 +U_INTERNAL char * U_EXPORT2 1.58 +uplug_findLibrary(void *lib, UErrorCode *status); 1.59 + 1.60 +/** @} */ 1.61 + 1.62 +/*========================*/ 1.63 +/** {@ ICU Plugin internal interfaces 1.64 + */ 1.65 + 1.66 +/** 1.67 + * Initialize the plugins 1.68 + * @param status error result 1.69 + * @internal - Internal use only. 1.70 + */ 1.71 +U_INTERNAL void U_EXPORT2 1.72 +uplug_init(UErrorCode *status); 1.73 + 1.74 +/** 1.75 + * Get raw plug N 1.76 + * @internal - Internal use only 1.77 + */ 1.78 +U_INTERNAL UPlugData* U_EXPORT2 1.79 +uplug_getPlugInternal(int32_t n); 1.80 + 1.81 +/** 1.82 + * Get the name of the plugin file. 1.83 + * @internal - Internal use only. 1.84 + */ 1.85 +U_INTERNAL const char* U_EXPORT2 1.86 +uplug_getPluginFile(void); 1.87 + 1.88 +/** @} */ 1.89 + 1.90 +#endif