app.h 802 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef __APP_H__
  2. #define __APP_H__
  3. #pragma once
  4. #include "sp_svc.h"
  5. #include "sp_iom.h"
  6. #include "sp_mod.h"
  7. #include "sp_var.h"
  8. #include "sp_env.h"
  9. #include "sp_rpc.h"
  10. #include "sp_gui.h"
  11. #include "sp_sps.h"
  12. #include "sp_bcm.h"
  13. #include "sp_cfg.h"
  14. typedef struct app_t app_t;
  15. typedef struct log_t log_t;
  16. typedef class CSpShellConsole CSpShellConsole;
  17. struct app_t {
  18. bus_daemon_t *bus_daemon;
  19. sp_svc_t *svc;
  20. sp_iom_t *iom;
  21. sp_var_client_t* var_client;
  22. sp_var_daemon_t *var_daemon;
  23. sp_bcm_daemon_t *bcm_daemon;
  24. log_t *log;
  25. sp_gui_t *bsc_gui;
  26. sp_rpc_server_t *rpc_server;
  27. sp_sps_t *sps;
  28. CSpShellConsole *pConsole;
  29. };
  30. app_t *get_app_instance();
  31. int app_init(const sp_cfg_start_args_t* args);
  32. int app_term();
  33. int app_run();
  34. int app_update_terminal_state(int state);
  35. #endif //__APP_H__