tizen 2.3 release
[kernel/api/system-resource.git] / src / network / include / datausage-reset.h
similarity index 55%
rename from src/common/cpu-common.c
rename to src/network/include/datausage-reset.h
index b075603..9393238 100644 (file)
  *
  */
 
-/**
- * @file cpu-common.c
- * @desc Implement lowmem API for external module
+
+/*
+ * @file reset.h
  *
  * Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
  *
  */
 
-#include "module.h"
-#include "resourced.h"
-#include "cpu-common.h"
-
-static const struct module_ops *cpu;
-static int cpu_module;
-
-void cpu_find_module()
-{
-       if (!cpu_module) {
-               cpu = find_module("cpu");
-               cpu_module = 1;
-       }
-}
+#ifndef _RESOURCED_RESET_H_
+#define _RESOURCED_RESET_H_
 
-int cpu_control(enum cpu_control_type type, pid_t pid)
-{
-       struct cpu_data_type l_data;
-       int ret = RESOURCED_ERROR_NONE;
-
-       if (!cpu) {
-               cpu_find_module();
-               if (!cpu)
-                       return ret;
-       }
-
-       l_data.control_type = type;
-       l_data.pid = pid;
-
-       if (cpu->control)
-               ret = cpu->control(&l_data);
-       return ret;
-}
+/**
+ * @brief Data usage clearing procedures.
+ * This function deinitializing sqlite3 statements
+ */
+void finalize_datausage_reset(void);
 
+#endif /* _RESOURCED_RESET_H_ */