Source code formating unification
[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 #ifndef __AUL_UTIL_H_
18 #define __AUL_UTIL_H_
19
20 #define AUL_UTIL_PID -2
21
22 #define MAX_PACKAGE_STR_SIZE 512
23 #define MAX_PACKAGE_APP_PATH_SIZE 512
24 #define MAX_RUNNING_APP_INFO 512
25
26 typedef struct _app_status_info_t {
27     char appid[MAX_PACKAGE_STR_SIZE];
28     char app_path[MAX_PACKAGE_APP_PATH_SIZE];
29     int status;
30     int pid;
31 } app_status_info_t;
32
33 struct amdmgr {
34     struct appinfomgr *af;      /* appinfo manager */
35     struct cginfo *cg;      /* cgroup infomation */
36 };
37
38 int _add_app_status_info_list(char *appid, int pid);
39 int _update_app_status_info_list(int pid, int status);
40 int _remove_app_status_info_list(int pid);
41
42 #endif
43