4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>,
7 * Jaeho Lee <jaeho81.lee@samsung.com>, Shobhit Srivastava <shobhit.s@samsung.com>
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
22 #ifndef __PKGMGR_PARSER_PLUGIN_H_
23 #define __PKGMGR_PARSER_PLUGIN_H_
25 #include "pkgmgr_parser.h"
29 #endif /* __cplusplus */
31 typedef void* pkgmgr_parser_plugin_h;
33 /* plugin process_type */
35 PLUGIN_PRE_PROCESS = 0,
37 } PLUGIN_PROCESS_TYPE;
39 #define PKGMGR_PARSER_PLUGIN_TAG "tag"
40 #define PKGMGR_PARSER_PLUGIN_METADATA "metadata"
41 #define PKGMGR_PARSER_PLUGIN_CATEGORY "category"
43 int __ps_run_parser(xmlDocPtr docPtr, const char *tag, ACTION_TYPE action, const char *pkgid);
45 int _pkgmgr_parser_plugin_open_db();
46 void _pkgmgr_parser_plugin_close_db();
47 void _pkgmgr_parser_plugin_process_plugin(manifest_x *mfx, const char *filename, ACTION_TYPE action);
48 void _pkgmgr_parser_plugin_uninstall_plugin(const char *plugin_type, const char *pkgid, const char *appid);
52 #endif /* __cplusplus */
53 #endif /* __PKGMGR_PARSER_PLUGIN_H_ */