Update source from tizen 2.3
[platform/core/base/rpm-installer.git] / backend / src / coretpk / inc / coretpk-installer-internal.h
1 /*
2  * coretpk-installer-internal
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22 #ifndef __CORETPK_INSTALLER_INTERNAL_H_
23 #define __CORETPK_INSTALLER_INTERNAL_H_
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif                          /* __cplusplus */
28
29 /*use pkginfo*/
30 #include "rpm-installer-util.h"
31 #include "coretpk-installer.h"
32 #include "coretpk-installer-type.h"
33
34 int _coretpk_installer_directory_install(char* dirpath, char *clientid);
35
36 int _coretpk_installer_package_install(char *pkgfile, char *pkgid, char *clientid);
37 int _coretpk_installer_package_uninstall(const char *pkgid);
38 int _coretpk_installer_package_reinstall(char *dirpath, char *clientid);
39 int _coretpk_installer_package_upgrade(char *pkgfile, char *pkgid, char *clientid);
40
41 int _coretpk_installer_csc_install(char *path_str, char *remove_str);
42
43 pkginfo *_coretpk_installer_get_pkgfile_info(char *pkgfile);
44 char* _coretpk_installer_load_directory(char *directory,char* pkgfile);
45 int _coretpk_installer_convert_manifest(char *manifestfilepath, char *pkgid, char *clientid);
46 int _coretpk_installer_get_configuration_value(char *value);
47
48 int _coretpk_installer_change_mode(char* path, int mode);
49 int _coretpk_installer_change_file_owner(char* path, int ownerid, int groupid);
50 int _coretpk_installer_change_directory_owner(char* dirpath, int ownerid, int groupid);
51 int _coretpk_installer_make_directory_for_ext(char *pkgid);
52 int _coretpk_installer_make_directory(char *pkgid);
53 int _coretpk_installer_apply_smack(char *pkgname, int flag);
54 int _coretpk_installer_apply_privilege(char *pkgid, char *pkgPath, int apiVisibility);
55 void _coretpk_installer_search_ui_gadget(const char *pkgid);
56 int _coretpk_installer_set_smack_label_access(const char *path, const char *label);
57 int _coretpk_installer_get_smack_label_access(const char *path, char **label);
58 int _coretpk_installer_set_smack_label_transmute(const char *path, const char *flag);
59 int _coretpk_installer_remove_db_info(const char *pkgid);
60
61 #ifdef __cplusplus
62 }
63 #endif                          /* __cplusplus */
64 #endif                          /* __CORETPK_INSTALLER_INTERNAL_H_ */