summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/app-framework/app_ext_lib_export.c
blob: 532491b4318820da77b6554ecd23b2ace748a4f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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);
}