X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=NativeLauncher%2Finstaller-plugin%2Fprefer_dotnet_aot_plugin.cc;h=45f22b9834985ab0d1e120d56ac5b36150b0923c;hb=7ac24817cf9ceff44ff27b183f6325572fc73b33;hp=d7fd274499b82853bcbe11be171f65190dade285;hpb=2a33f41b1d75db97a25b823dcc3cbb8f11713157;p=platform%2Fcore%2Fdotnet%2Flauncher.git diff --git a/NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc b/NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc index d7fd274..45f22b9 100644 --- a/NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc +++ b/NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "common.h" +#include "ni_common.h" #include "log.h" #include "utils.h" @@ -51,11 +51,17 @@ extern "C" int PKGMGR_MDPARSER_PLUGIN_INSTALL(const char *pkgId, const char *app } if (mdValue) { + NiCommonOption option = {std::string(), std::string(), std::string()}; + if (initNICommon(&option) < 0) { + _ERR("Fail to initialize NI Common"); + return -1; + } + if (createNiUnderPkgRoot(pkgId, false) != 0) { _ERR("Failed to get root path from [%s]", pkgId); return -1; } else { - _DBG("Complete make application to native image"); + _INFO("Complete make application to native image"); } } return 0; @@ -65,3 +71,23 @@ extern "C" int PKGMGR_MDPARSER_PLUGIN_UPGRADE(const char *pkgId, const char *app { return PKGMGR_MDPARSER_PLUGIN_INSTALL(pkgId, appId, list); } + +extern "C" int PKGMGR_MDPARSER_PLUGIN_UNINSTALL(const char *pkgId, const char *appId, GList *list) +{ + return 0; +} + +extern "C" int PKGMGR_MDPARSER_PLUGIN_REMOVED(const char *pkgId, const char *appId, GList *list) +{ + return PKGMGR_MDPARSER_PLUGIN_UPGRADE(pkgId, appId, list); +} + +extern "C" int PKGMGR_MDPARSER_PLUGIN_CLEAN(const char *pkgId, const char *appId, GList *list) +{ + return 0; +} + +extern "C" int PKGMGR_MDPARSER_PLUGIN_UNDO(const char *pkgId, const char *appId, GList *list) +{ + return 0; +}