Separate monitoring function plugin
[platform/core/connectivity/stc-manager.git] / include / stc-manager-plugin-monitor.h
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __STC_MANAGER_PLUGIN_MONITOR_H__
18 #define __STC_MANAGER_PLUGIN_MONITOR_H__
19
20 #define STC_PLUGIN_MONITOR_FILEPATH             "/usr/lib/stc-plugin-monitor.so"
21
22 #include "stc-plugin-monitor.h"
23
24 int stc_plugin_monitor_init(void);
25 int stc_plugin_monitor_deinit(void);
26
27 int stc_plugin_monitor_add_app(uint32_t classid,
28                                 const char *app_id,
29                                 const char *pkg_id,
30                                 const stc_app_value_s value);
31 int stc_plugin_monitor_remove_app(uint32_t classid,
32                                 const char *app_id);
33 int stc_plugin_monitor_lookup_app(uint32_t classid);
34 int stc_plugin_monitor_add_rstn(table_restrictions_info *info);
35 int stc_plugin_monitor_remove_rstn(table_restrictions_info *info);
36 int stc_plugin_monitor_init_connection(stc_s *stc);
37 int stc_plugin_monitor_deinit_connection(stc_s *stc);
38 int stc_plugin_monitor_add_proc(uint32_t classid,
39                         const char *app_id, const stc_proc_value_s value);
40 int stc_plugin_monitor_remove_proc(uint32_t classid, pid_t pid);
41 int stc_plugin_monitor_move_proc(uint32_t from, uint32_t to);
42 int stc_plugin_monitor_update_proc_ground(uint32_t classid,
43                         const char *app_id, const stc_proc_value_s value);
44
45 #endif /* __STC_MANAGER_PLUGIN_MONITOR_H__ */