Refactoring CoreRuntime and plugin (#247) accepted/tizen/unified/20200630.131320 submit/tizen/20200629.221257
author조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Mon, 29 Jun 2020 21:52:56 +0000 (06:52 +0900)
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>
Mon, 29 Jun 2020 21:52:56 +0000 (06:52 +0900)
commit4612d67f7a95eed0edf08f53a16a5c03fd18589a
treedfc68513ae6d52d7d7dc952341852127e472d64e
parenteb3374a3902c4a9a3539b16161c39e877a896c5d
Refactoring CoreRuntime and plugin (#247)

* Pass apptype to plugin insteadof mode

The meaning of the mode that is delivered during plugin initialization is not clear.
And, VD plugin use mode to distinguish app-type.

So, change the parameter of plugin_initialize from mode to apptype.
Also, the script was modified to obtain the apptype in the candidate process.

The parameter of the CoreRuntime constructor was also unnecessary and deleted.

* Change CoreRuntime to static class

CoreRuntime is a wrapper class of .NET Runtime (coreclr),
So, that cannot be created with multiple instance, and cannot be called
multiple times.

So, I changed CoreRuntime to static class which contains only static functions.
Also, it was changed to explicitly call what was called as a destructor.

Additionally, some function name and file name have been changed.
NativeLauncher/CMakeLists.txt
NativeLauncher/dotnet.launcher
NativeLauncher/dotnet.loader
NativeLauncher/hydra/hydra_main.cc
NativeLauncher/inc/plugin_manager.h
NativeLauncher/launcher/exec/launcher.cc
NativeLauncher/launcher/exec/loader.cc
NativeLauncher/launcher/lib/core_runtime.cc [moved from NativeLauncher/launcher/lib/dotnet_launcher.cc with 93% similarity]
NativeLauncher/launcher/lib/core_runtime.h [moved from NativeLauncher/launcher/lib/dotnet_launcher.h with 51% similarity]
NativeLauncher/util/plugin_manager.cc