1 /* 2 * Copyright (C) 2015-2020 Alibaba Group Holding Limited 3 */ 4 5 #ifndef __APP_ENTRY_H 6 #define __APP_ENTRY_H 7 8 #include <stdio.h> 9 #include <stdlib.h> 10 #include <string.h> 11 12 typedef struct { 13 /* options object */ 14 int object; 15 /* ref of globalData */ 16 int global_data; 17 /* ref of onLaunch() */ 18 int on_launch; 19 /* ref of onError() */ 20 int on_error; 21 /* ref of onExit() */ 22 int on_exit; 23 }app_options_t; 24 25 extern void app_entry_register(void); 26 extern void app_entry(void* data); 27 28 #endif /* __APP_ENTRY_H */