#ifndef SP_BASE_GUI_DEF_H_ #define SP_BASE_GUI_DEF_H_ #pragma once #define GUI_DISPLAY_ELEM_BLUESCREEN 1 #define GUI_DISPLAY_ELEM_FATAL_ERROR 2 //ShowFatalError #define GUI_DISPLAY_ELEM_STARTUP_INFO 3 #define GUI_DISPLAY_ELEM_FATAL_BLOCK 4 //no use #define GUI_DISPLAY_ELEM_LOG_DEBUG 10 #define GUI_DISPLAY_ELEM_LOG_EVENT 11 #define GUI_DISPLAY_ELEM_LOG_WARN 12 #define GUI_DISPLAY_ELEM_LOG_ERROR 13 #define GUI_DISPLAY_ELEM_LOG_FATAL 14 #define GUI_DISPLAY_ELEM_NOTIFY_INFO 15 #define GUI_DISPLAY_ELEM_NOTIFY_WARN 16 #define GUI_DISPLAY_ELEM_NOTIFY_ERROR 17 #define GUI_DISPLAY_ELEM_LOG_OTHER 20 #ifdef __cplusplus extern "C" { #endif typedef struct sp_gui_t sp_gui_t; typedef int (*fn_gui_display)(void*); typedef int (*fn_gui_hide)(void*); typedef int (*fn_gui_show_running_info)(void*, const char*, int); typedef int (*fn_gui_show_entity_info)(void*, const char*, int); typedef void (*fn_gui_post_message)(void*, unsigned long, unsigned long); typedef struct sp_gui_format_t { void* gui_inst; fn_gui_display display; fn_gui_hide hide; fn_gui_show_running_info show_running_info; fn_gui_show_entity_info show_entity_info; fn_gui_post_message post_message; } sp_gui_format_t; #ifdef __cplusplus } #endif #endif /*SP_BASE_GUI_DEF_H_*/