2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 #define AUL_UTIL_PID -2
23 #define MAX_PACKAGE_STR_SIZE 512
24 #define MAX_PACKAGE_APP_PATH_SIZE 512
25 #define MAX_RUNNING_APP_INFO 512
27 typedef struct _app_status_info_t{
28 char appid[MAX_PACKAGE_STR_SIZE];
29 char app_path[MAX_PACKAGE_APP_PATH_SIZE];
35 struct appinfomgr *af; /* appinfo manager */
36 struct cginfo *cg; /* cgroup infomation */
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);