summaryrefslogtreecommitdiff
path: root/NativeLauncher/installer-plugin/pkgmgr_parser_plugin_interface.h
blob: 0f2d4a8758866b19609087d56bc02642b3db6e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __PKGMGR_PARSER_PLUGIN_INTERFACE__
#define __PKGMGR_PARSER_PLUGIN_INTERFACE__

extern "C"
{
  typedef struct _xmlDoc xmlDoc;
  typedef xmlDoc* xmlDocPtr;
  int PKGMGR_PARSER_PLUGIN_PRE_INSTALL   (const char *pkgid);
  int PKGMGR_PARSER_PLUGIN_PRE_UPGRADE   (const char *pkgid);
  int PKGMGR_PARSER_PLUGIN_PRE_UNINSTALL (const char *pkgid);

  int PKGMGR_PARSER_PLUGIN_INSTALL   (xmlDocPtr doc, const char* pkgid);
  int PKGMGR_PARSER_PLUGIN_UPGRADE   (xmlDocPtr doc, const char* pkgid);
  int PKGMGR_PARSER_PLUGIN_UNINSTALL (xmlDocPtr doc, const char* pkgid);

  int PKGMGR_PARSER_PLUGIN_POST_INSTALL   (const char *pkgid);
  int PKGMGR_PARSER_PLUGIN_POST_UPGRADE   (const char *pkgid);
  int PKGMGR_PARSER_PLUGIN_POST_UNINSTALL (const char *pkgid);
}

#endif  // __PKGMGR_PARSER_PLUGIN_INTERFACE__