__attribute__ ((visibility("default")))
int PKGMGR_PARSER_PLUGIN_PRE_INSTALL(const char *packageId)
{
- if (packageId == NULL) {
- LOGE("Package ID is NULL");
- return -EINVAL;
- }
-
- LOGD("PKGMGR_PARSER_PLUGIN_PRE_INSTALL() called with [%s].", packageId);
-
return 0;
}
__attribute__ ((visibility("default")))
int PKGMGR_PARSER_PLUGIN_POST_INSTALL(const char *packageId)
{
- if (packageId == NULL) {
- LOGE("Package ID is NULL");
- return -EINVAL;
- }
-
- LOGD("PKGMGR_PARSER_PLUGIN_POST_INSTALL() called with [%s].", packageId);
-
return 0;
-
}
extern "C"
__attribute__ ((visibility("default")))
int PKGMGR_PARSER_PLUGIN_PRE_UNINSTALL(const char *packageId)
{
- if (packageId == NULL) {
- LOGE("Package ID is NULL");
- return -EINVAL;
- }
-
- LOGD("PKGMGR_PARSER_PLUGIN_PRE_UNINSTALL() called with [%s].", packageId);
-
return 0;
}
return -EIO;
}
- LOGD("PKGMGR_PARSER_PLUGIN_UNINSTALL() end.");
-
return 0;
}
__attribute__ ((visibility("default")))
int PKGMGR_PARSER_PLUGIN_POST_UNINSTALL(const char *packageId)
{
- if (packageId == NULL) {
- LOGE("Package ID is NULL");
- return -EINVAL;
- }
-
- LOGD("PKGMGR_PARSER_PLUGIN_POST_UNINSTALL() called with [%s].", packageId);
+ return 0;
+}
+extern "C"
+__attribute__ ((visibility("default")))
+int PKGMGR_PARSER_PLUGIN_PRE_UPGRADE(const char *packageId)
+{
return 0;
}
return -EINVAL;
}
- LOGD("PKGMGR_PARSER_PLUGIN_UPGRADE() called with [%s].", packageId);
-
int res = PKGMGR_PARSER_PLUGIN_UNINSTALL(docPtr, packageId);
if (res != 0) {
LOGE("PKGMGR_PARSER_PLUGIN_UNINSTALL is failed. [%d]", res);
return res;
}
+
+extern "C"
+__attribute__ ((visibility("default")))
+int PKGMGR_PARSER_PLUGIN_POST_UPGRADE(const char *packageId)
+{
+ return 0;
+}
+