add command to nitool to remove system and app ni
[platform/core/dotnet/launcher.git] / NativeLauncher / installer-plugin / pkgmgr_parser_plugin_interface.h
1 /*
2  * Copyright (c) 2016 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 __PKGMGR_PARSER_PLUGIN_INTERFACE__
18 #define __PKGMGR_PARSER_PLUGIN_INTERFACE__
19
20 extern "C"
21 {
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);
27
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
32         int PKGMGR_PARSER_PLUGIN_POST_INSTALL(const char *pkgId);
33         int PKGMGR_PARSER_PLUGIN_POST_UPGRADE(const char *pkgId);
34         int PKGMGR_PARSER_PLUGIN_POST_UNINSTALL(const char *pkgId);
35 }
36
37 #endif /* __PKGMGR_PARSER_PLUGIN_INTERFACE__ */