*/
typedef enum {
STC_APP_STATE_UNKNOWN,
- STC_APP_STATE_FOREGROUND, /** < foreground state */
- STC_APP_STATE_BACKGROUND, /** < background state */
+ STC_APP_STATE_FOREGROUND = 1 << 1, /** < foreground state */
+ STC_APP_STATE_BACKGROUND = 1 << 2, /** < background state */
STC_APP_STATE_LAST_ELEM
} stc_app_state_e;
* @brief Network roaming type
*/
typedef enum {
- STC_ROAMING_DISABLE, /**< not in roaming */
+ STC_ROAMING_UNKNOWN,
STC_ROAMING_ENABLE, /**< in roaming */
+ STC_ROAMING_DISABLE, /**< not in roaming */
} stc_roaming_type_e;
/**
* @brief datausage in bytes
*/
typedef struct {
- int64_t in_bytes; /**< incoming bytes */
- int64_t out_bytes; /**< outgoing bytes */
+ long long int in_bytes; /**< incoming bytes */
+ long long int out_bytes; /**< outgoing bytes */
} stc_data_counter_s;
typedef struct {
GMainLoop *main_loop;
+ guint timer;
+ gboolean keep_alive;
+ gboolean ondemand_mode;
gpointer statistics_obj;
gpointer restriction_obj;
stc_s *stc_get_manager(void);
void stc_stop_manager(void);
int stc_commit_iptables(char *cmd, int *err_num, char **err_str);
+void stc_set_keep_alive(gboolean keep_alive);
#endif /* __STC_MANAGER__ */