1 #ifndef _CORE_GLOBAL_H_ 2 #define _CORE_GLOBAL_H_ 3 4 #if defined(__cplusplus) 5 extern "C" { 6 #endif 7 8 #include "core_stdinc.h" 9 #include "aiot_state_api.h" 10 #include "aiot_sysdep_api.h" 11 12 #define CORE_GLOBAL_MODULE_NAME "global" 13 14 int32_t core_global_init(aiot_sysdep_portfile_t *sysdep); 15 int32_t core_global_alink_id_next(aiot_sysdep_portfile_t *sysdep, int32_t *alink_id); 16 int32_t core_global_set_mqtt_backup_ip(aiot_sysdep_portfile_t *sysdep, char ip[16]); 17 int32_t core_global_get_mqtt_backup_ip(aiot_sysdep_portfile_t *sysdep, char ip[16]); 18 int32_t core_global_deinit(aiot_sysdep_portfile_t *sysdep); 19 20 #if defined(__cplusplus) 21 } 22 #endif 23 24 #endif 25 26