Separate debug log with info config
[platform/core/connectivity/stc-manager.git] / plugin / monitor / include / stc-plugin-monitor-proc.h
1 /*
2  * Copyright (c) 2017 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_PLUGIN_MONITOR_PROC_H__
18 #define __STC_PLUGIN_MONITOR_PROC_H__
19
20 #include <glib.h>
21
22 #include "stc-error.h"
23 #include "stc-manager.h"
24
25 typedef struct {
26         pid_t pid;
27         stc_app_state_e ground;
28 } stc_proc_value_s;
29
30 typedef struct {
31         pid_t pid;
32         stc_app_value_s *app_value;
33         gboolean entry_removed;
34 } remove_pid_context_s;
35
36 stc_error_e stc_plugin_monitor_proc_update_ground(uint32_t classid,
37                                                 const char *app_id,
38                                                 const stc_proc_value_s value);
39
40 stc_error_e stc_plugin_monitor_proc_add(uint32_t classid,
41                                                 const char *app_id,
42                                                 const stc_proc_value_s value);
43
44 stc_error_e stc_plugin_monitor_proc_remove(uint32_t classid, pid_t pid);
45
46 stc_error_e stc_plugin_monitor_proc_move(uint32_t from, uint32_t to);
47
48 #endif /* __STC_PLUGIN_MONITOR_PROC_H__ */