diff options
Diffstat (limited to 'fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/app-framework/app_ext_lib_export.c')
-rw-r--r-- | fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/app-framework/app_ext_lib_export.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/app-framework/app_ext_lib_export.c b/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/app-framework/app_ext_lib_export.c new file mode 100644 index 000000000..532491b43 --- /dev/null +++ b/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/app-framework/app_ext_lib_export.c @@ -0,0 +1,38 @@ +#include "lib_export.h" + +#ifdef APP_FRAMEWORK_SENSOR +#include "sensor_native_api.h" +#endif + +#ifdef APP_FRAMEWORK_CONNECTION +#include "connection_native_api.h" +#endif + +#ifdef APP_FRAMEWORK_WGL +#include "gui_native_api.h" +#endif + +/* More header file here */ + +static NativeSymbol extended_native_symbol_defs[] = { +#ifdef APP_FRAMEWORK_SENSOR +#include "runtime_sensor.inl" +#endif + +#ifdef APP_FRAMEWORK_CONNECTION +#include "connection.inl" +#endif + +#ifdef APP_FRAMEWORK_WGL +#include "wamr_gui.inl" +#endif + + /* More inl file here */ +}; + +int +get_ext_lib_export_apis(NativeSymbol **p_ext_lib_apis) +{ + *p_ext_lib_apis = extended_native_symbol_defs; + return sizeof(extended_native_symbol_defs) / sizeof(NativeSymbol); +} |