summaryrefslogtreecommitdiff
path: root/NativeLauncher/src/dotnet/dotnet_launcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'NativeLauncher/src/dotnet/dotnet_launcher.h')
-rw-r--r--NativeLauncher/src/dotnet/dotnet_launcher.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/NativeLauncher/src/dotnet/dotnet_launcher.h b/NativeLauncher/src/dotnet/dotnet_launcher.h
index e1a86b0..92567f6 100644
--- a/NativeLauncher/src/dotnet/dotnet_launcher.h
+++ b/NativeLauncher/src/dotnet/dotnet_launcher.h
@@ -36,25 +36,18 @@ namespace tizen {
namespace runtime {
namespace dotnetcore {
-typedef bool (*LaunchFunctionPtr)(const char* path, int argc, char* argv[]);
-
-struct LaunchParameter
-{
- std::string path;
- int argc;
- char** argv;
-};
+typedef void (*PreparedFunctionPtr)();
+typedef bool (*LaunchFunctionPtr)(const char* root, const char* path, int argc, char* argv[]);
class CoreRuntime : public tizen::runtime::LauncherInterface
{
public:
CoreRuntime();
~CoreRuntime();
- int Initialize() override;
+ int Initialize(bool standalone) override;
void Dispose() override;
int RunManagedLauncher() override;
- int Launch(const char* path, int argc, char* argv[]) override;
- void SetStandaloneExe(const char* exePath, int argc, char* argv[]);
+ int Launch(const char* root, const char* path, int argc, char* argv[]) override;
private:
coreclr_initialize_ptr InitializeClr;
@@ -67,9 +60,8 @@ class CoreRuntime : public tizen::runtime::LauncherInterface
void* coreclrLib;
void* hostHandle;
unsigned int domainId;
+ PreparedFunctionPtr PreparedFunction;
LaunchFunctionPtr LaunchFunction;
- bool isLaunched;
- LaunchParameter LaunchParam;
};
} // dotnetcore