e32a5896ff26b8561a5b906f1305689d0ce68ca0
[platform/framework/web/wrt.git] / src / wrt-launchpad-daemon / include / aul_util.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
18 #ifndef __AUL_UTIL_H_
19 #define __AUL_UTIL_H_
20
21 #define AUL_UTIL_PID -2
22
23 #define MAX_PACKAGE_STR_SIZE 512
24 #define MAX_PACKAGE_APP_PATH_SIZE 512
25 #define MAX_RUNNING_APP_INFO 512
26
27 typedef struct _app_status_info_t{
28         char appid[MAX_PACKAGE_STR_SIZE];
29         char app_path[MAX_PACKAGE_APP_PATH_SIZE];
30         int status;
31         int pid;
32 } app_status_info_t;
33
34 struct amdmgr {
35         struct appinfomgr *af;  /* appinfo manager */
36         struct cginfo *cg;  /* cgroup infomation */
37 };
38
39 int _add_app_status_info_list(char *appid, int pid);
40 int _update_app_status_info_list(int pid, int status);
41 int _remove_app_status_info_list(int pid);
42
43 #endif
44
45
46