4 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 * @file: datausage-quota-processing.h
23 * @desc Entity for working with quotas
26 * Created on: Aug 08, 2012
29 #ifndef _TRESOURCED_DATAUSAGE_QUOTA_PROCESSING_H_
30 #define _TRESOURCED_DATAUSAGE_QUOTA_PROCESSING_H_
35 #include "resourced.h"
38 * Store data in effective quota
40 void flush_quota_table(void);
43 * Quota processing. It's apply quota if needed.
44 * And actualize current quotas state.
46 resourced_ret_c process_quota(struct application_stat_tree *apps,
47 volatile struct daemon_opts *opts);
50 * Finish working with quotas
52 void finalize_quotas(void);
55 * Delete quota and drop remove restriction
57 void update_quota_state(const char *app_id, const resourced_iface_type iftype,
58 const time_t start_time, const int time_period,
59 const resourced_roaming_type roaming);
61 #endif /* _TRESOURCED_DATAUSAGE_QUOTA_PROCESSING_H_ */