2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __PKGMGR_PARSER_PLUGIN_INTERFACE__
18 #define __PKGMGR_PARSER_PLUGIN_INTERFACE__
22 typedef struct _xmlDoc xmlDoc;
23 typedef xmlDoc* xmlDocPtr;
24 int PKGMGR_PARSER_PLUGIN_PRE_INSTALL(const char *pkgId);
25 int PKGMGR_PARSER_PLUGIN_PRE_UPGRADE(const char *pkgId);
26 int PKGMGR_PARSER_PLUGIN_PRE_UNINSTALL(const char *pkgId);
28 int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr doc, const char* pkgId);
29 int PKGMGR_PARSER_PLUGIN_UPGRADE(xmlDocPtr doc, const char* pkgId);
30 int PKGMGR_PARSER_PLUGIN_UNINSTALL(xmlDocPtr doc, const char* pkgId);
31 int PKGMGR_PARSER_PLUGIN_REMOVED(xmlDocPtr doc, const char* pkgId);
32 int PKGMGR_PARSER_PLUGIN_CLEAN(xmlDocPtr doc, const char* pkgId);
33 int PKGMGR_PARSER_PLUGIN_UNDO(xmlDocPtr doc, const char* pkgId);
35 int PKGMGR_PARSER_PLUGIN_POST_INSTALL(const char *pkgId);
36 int PKGMGR_PARSER_PLUGIN_POST_UPGRADE(const char *pkgId);
37 int PKGMGR_PARSER_PLUGIN_POST_UNINSTALL(const char *pkgId);
40 #endif /* __PKGMGR_PARSER_PLUGIN_INTERFACE__ */