#define __TABLE_COUNTERS_H__
typedef struct {
- uint64_t restriction_id;
- int64_t data_counter;
- int64_t warn_counter;
- int64_t monthly_counter;
- int64_t weekly_counter;
- int64_t daily_counter;
+ long long int restriction_id;
+ long long int data_counter;
+ long long int warn_counter;
+ long long int monthly_counter;
+ long long int weekly_counter;
+ long long int daily_counter;
int32_t month_start_date;
- int64_t month_start_ts;
- int64_t week_start_ts;
- int64_t day_start_ts;
+ long long int month_start_ts;
+ long long int week_start_ts;
+ long long int day_start_ts;
} table_counters_info;
typedef stc_cb_ret_e(*table_counters_info_cb)(const table_counters_info *info,
void *user_data);
-stc_error_e table_counters_get(uint64_t restriction_id,
+stc_error_e table_counters_get(long long int restriction_id,
table_counters_info *info);
stc_error_e table_counters_update_counters(const table_counters_info *info);
-stc_error_e table_counters_get_timestamps(uint64_t restriction_id,
+stc_error_e table_counters_get_timestamps(long long int restriction_id,
table_counters_info *info);
stc_error_e table_counters_update_timestamps(const table_counters_info *info);
-stc_error_e table_counters_delete(uint64_t restriction_id);
+stc_error_e table_counters_delete(long long int restriction_id);
stc_error_e table_counters_prepare(sqlite3 *db);