4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Garima Shrivastava<garima.s@samsung.com>
7 * Jyotsna Dhumale <jyotsna.a@samsung.com>
8 * Venkatesha Sarpangala <sarpangala.v@samsung.com>
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
24 #ifndef __APPTOSD_INTERFACE_H__
25 #define __APPTOSD_INTERFACE_H__
31 #include "app2ext_interface.h"
32 #include "app2ext_utils.h"
34 int app2sd_usr_pre_app_install(const char *pkgid,
35 GList *dir_list, int size, uid_t uid);
37 int app2sd_usr_post_app_install(const char *pkgid,
38 app2ext_status install_status, uid_t uid);
40 int app2sd_usr_pre_app_upgrade(const char *pkgid,
41 GList *dir_list, int size, uid_t uid);
43 int app2sd_usr_post_app_upgrade(const char *pkgid,
44 app2ext_status upgrade_status, uid_t uid);
46 int app2sd_usr_pre_app_uninstall(const char *pkgid, uid_t uid);
48 int app2sd_usr_post_app_uninstall(const char *pkgid, uid_t uid);
50 int app2sd_usr_pre_move_installed_app(const char *pkgid,
51 GList *dir_list, app2ext_move_type move_type, uid_t uid);
53 int app2sd_usr_post_move_installed_app(const char *pkgid,
54 app2ext_move_type move_type, uid_t uid);
56 int app2sd_usr_on_demand_setup_init(const char *pkgid, uid_t uid);
58 int app2sd_usr_on_demand_setup_exit(const char *pkgid, uid_t uid);
60 int app2sd_usr_force_clean(const char *pkgid, uid_t uid);
62 int app2sd_enable_full_pkg(void);
64 int app2sd_disable_full_pkg(void);