fix missing encoded_id related change & code clearing.
[platform/core/appfw/app2sd.git] / plugin / app2sd / inc / app2sd_interface.h
1 /*
2  * app2ext
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Garima Shrivastava<garima.s@samsung.com>
7  *      Jyotsna Dhumale <jyotsna.a@samsung.com>
8  *      Venkatesha Sarpangala <sarpangala.v@samsung.com>
9  *
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
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
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.
21  *
22  */
23
24 #ifndef __APPTOSD_INTERFACE_H__
25 #define __APPTOSD_INTERFACE_H__
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #include "app2ext_interface.h"
32 #include "app2ext_utils.h"
33
34 int app2sd_usr_pre_app_install(const char *pkgid,
35                 GList* dir_list, int size, uid_t uid);
36
37 int app2sd_usr_post_app_install(const char *pkgid,
38                 app2ext_status install_status, uid_t uid);
39
40 int app2sd_usr_pre_app_upgrade(const char *pkgid,
41                 GList* dir_list, int size, uid_t uid);
42
43 int app2sd_usr_post_app_upgrade(const char *pkgid,
44                 app2ext_status upgrade_status, uid_t uid);
45
46 int app2sd_usr_pre_app_uninstall(const char *pkgid, uid_t uid);
47
48 int app2sd_usr_post_app_uninstall(const char *pkgid, uid_t uid);
49
50 int app2sd_usr_move_installed_app(const char *pkgid,
51                 GList* dir_list, app2ext_move_type move_type, uid_t uid);
52
53 int app2sd_usr_on_demand_setup_init(const char *pkgid, uid_t uid);
54
55 int app2sd_usr_on_demand_setup_exit(const char *pkgid, uid_t uid);
56
57 int app2sd_usr_force_clean(const char *pkgid, uid_t uid);
58
59 #ifdef __cplusplus
60 }
61 #endif
62 #endif