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.
20 #define AUL_UTIL_PID -2
22 #define MAX_PACKAGE_STR_SIZE 512
23 #define MAX_PACKAGE_APP_PATH_SIZE 512
24 #define MAX_RUNNING_APP_INFO 512
26 typedef struct _app_status_info_t {
27 char appid[MAX_PACKAGE_STR_SIZE];
28 char app_path[MAX_PACKAGE_APP_PATH_SIZE];
34 struct appinfomgr *af; /* appinfo manager */
35 struct cginfo *cg; /* cgroup infomation */
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);