| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef __APP_H__
- #define __APP_H__
- #pragma once
- #include "sp_svc.h"
- #include "sp_iom.h"
- #include "sp_mod.h"
- #include "sp_var.h"
- #include "sp_env.h"
- #include "sp_rpc.h"
- #include "sp_gui.h"
- #include "sp_sps.h"
- #include "sp_bcm.h"
- #include "sp_cfg.h"
- typedef struct app_t app_t;
- typedef struct log_t log_t;
- typedef class CSpShellConsole CSpShellConsole;
- struct app_t {
- bus_daemon_t *bus_daemon;
- sp_svc_t *svc;
- sp_iom_t *iom;
- sp_var_client_t* var_client;
- sp_var_daemon_t *var_daemon;
- sp_bcm_daemon_t *bcm_daemon;
- log_t *log;
- sp_gui_t *bsc_gui;
- sp_rpc_server_t *rpc_server;
- sp_sps_t *sps;
- CSpShellConsole *pConsole;
- };
- app_t *get_app_instance();
- int app_init(const sp_cfg_start_args_t* args);
- int app_term();
- int app_run();
- int app_update_terminal_state(int state);
- #endif //__APP_H__
|