Update lib_export.h

This commit is contained in:
wenyongh 2019-09-06 16:42:13 +08:00 committed by GitHub
parent 03aab545c6
commit a55acdcc25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,22 @@ typedef struct NativeSymbol {
int int
get_base_lib_export_apis(NativeSymbol **p_base_lib_apis); get_base_lib_export_apis(NativeSymbol **p_base_lib_apis);
/**
* Get the exported APIs of extended lib, this API isn't provided by WASM VM,
* it must be provided by developer to register the extended native APIs,
* for example, developer can register his native APIs to extended_native_symbol_defs,
* array, and include file ext_lib_export.h which implements this API.
* And if developer hasn't any native API to register, he can define an empty
* extended_native_symbol_defs array, and then include file ext_lib_export.h to
* implements this API.
*
* @param p_base_lib_apis return the exported API array of extend lib
*
* @return the number of the exported API
*/
int
get_extend_lib_export_apis(NativeSymbol **p_base_lib_apis);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif