Added data limits monitoring for daily, weekly and monthly
[platform/core/connectivity/stc-manager.git] / src / database / include / table-restrictions.h
old mode 100755 (executable)
new mode 100644 (file)
index e006bdc..ea36988
@@ -22,10 +22,14 @@ typedef struct {
        char *ifname;
        char *subscriber_id;
        stc_iface_type_e iftype;
-       stc_rstn_type_e rst_type;
+       stc_rstn_type_e rstn_type;
        stc_roaming_type_e roaming;
        int64_t data_limit;
        int64_t data_warn_limit;
+       int64_t monthly_limit;
+       int64_t weekly_limit;
+       int64_t daily_limit;
+       int month_start_date;
        uint64_t restriction_id;
 } table_restrictions_info;
 
@@ -41,14 +45,14 @@ stc_error_e table_restrictions_per_app(const gchar *app_id,
                                       void *user_data);
 
 
-stc_error_e table_restrictions_get_restriction_state_subscriber_id(const char *app_id,
+stc_error_e table_restrictions_get_restriction_type_subscriber_id(const char *app_id,
                                                          stc_iface_type_e iftype,
                                                          const char *subscriber_id,
-                                                         stc_restriction_state_e *state);
+                                                         stc_rstn_type_e *type);
 
-stc_error_e table_restrictions_get_restriction_state(const char *app_id,
+stc_error_e table_restrictions_get_restriction_type(const char *app_id,
                                                     stc_iface_type_e iftype,
-                                                    stc_restriction_state_e *state);
+                                                    stc_rstn_type_e *type);
 
 stc_error_e table_restrictions_update(table_restrictions_info *info);