sp_gui.h 646 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __SP_GUI_H__
  2. #define __SP_GUI_H__
  3. #pragma once
  4. #ifdef __cplusplus
  5. extern "C"
  6. {
  7. #endif
  8. typedef struct sp_gui_t sp_gui_t;
  9. SPBASE_API int sp_gui_create(sp_gui_t **p_gui);
  10. SPBASE_API void sp_gui_setShow(int isShowFirst);
  11. SPBASE_API void sp_gui_destroy(sp_gui_t *gui);
  12. // type: 0 normal msg; 1 bluescreen; 2 fatal error
  13. SPBASE_API int sp_gui_show_running_info(sp_gui_t *gui, const char *msg, int type);
  14. SPBASE_API int sp_gui_show_entity_info(sp_gui_t *gui, const char *entity, int state);
  15. SPBASE_API int sp_gui_display(sp_gui_t *gui);
  16. SPBASE_API int sp_gui_undisplay(sp_gui_t *gui);
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif //__SP_GUI_H__