Fix ABI issue for app state and roaming
[platform/core/connectivity/stc-manager.git] / include / stc-manager.h
index 0b930eb..cfa2404 100755 (executable)
@@ -133,8 +133,8 @@ typedef enum {
  */
 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;
 
@@ -179,8 +179,9 @@ typedef enum {
  * @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;
 
 /**
@@ -230,12 +231,15 @@ typedef struct {
  * @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;
@@ -254,5 +258,6 @@ typedef struct {
 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__ */