1 /* 2 * Copyright (C) 2018 Alibaba Group Holding Limited 3 */ 4 5 /* 6 DESCRIPTION 7 This file provides example entry. 8 */ 9 10 #ifndef PY_ENGINE_EXAMPLE_H 11 #define PY_ENGINE_EXAMPLE_H 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif /* __cplusplus */ 16 17 typedef struct { 18 int32_t argc; 19 int8_t **argv; 20 bool is_repl_mode; 21 } mpy_thread_args; 22 23 int32_t mpy_run(int32_t argc, int8_t **argv); 24 int32_t mpy_init(mpy_thread_args *args); 25 int32_t mpy_deinit(void); 26 27 void haas_main(int32_t argc, int8_t **argv); 28 29 #ifdef __cplusplus 30 } 31 #endif 32 33 #endif /* PY_ENGINE_EXAMPLE_H */ 34