637ec20df955c2a3ecc45c626f0fdafc2115e84f
[platform/core/api/package-manager.git] / include / package_manager_internal.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef __TIZEN_APPFW_PACKAGE_MANAGER_INTERNAL_H__
18 #define __TIZEN_APPFW_PACKAGE_MANAGER_INTERNAL_H__
19
20 #include "package_manager.h"
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 int package_manager_error(package_manager_error_e error, const char* function, const char *description);
27
28 int package_info_get_package_info(const char *package, package_info_h *package_info);
29
30 int package_info_foreach_package_info(package_manager_package_info_cb callback, void *user_data);
31
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif /* __TIZEN_APPFW_PACKAGE_MANAGER_INTERNAL_H__ */