Support tizen.5.5.0 rid
[platform/core/dotnet/launcher.git] / NativeLauncher / launcher / launcher.h
index 66c3aaa..e48f318 100644 (file)
 namespace tizen {
 namespace runtime {
 
-class LauncherInterface
-{
-  public:
-    virtual int Initialize(bool standalone) = 0;
-    virtual void Dispose() = 0;
-    virtual int RunManagedLauncher(const char* app_id, const char* app_base, const char* tpa_list) = 0;
-    virtual int Launch(const char* app_id, const char* root, const char* path, int argc, char* argv[]) = 0;
-};
-
-struct AppInfo
-{
-  std::string root;
-  std::string path;
-  std::string id;
-  std::string pkg;
-  std::string type;
+struct AppInfo {
+       std::string root;
+       std::string path;
+       std::string id;
+       std::string pkg;
+       std::string type;
 };
 
 class LaunchpadAdapter
 {
-  public:
-    virtual void LoaderMain(int argc, char* argv[]) = 0;
-    std::function<void()> OnCreate = nullptr;
-    std::function<void(const AppInfo&, int, char**)> OnLaunch = nullptr;
-    std::function<void(const AppInfo&, int, char**)> OnTerminate = nullptr;
+       public:
+               virtual int loaderMain(int argc, char* argv[]) = 0;
+               std::function<void()> onCreate = nullptr;
+               std::function<void(const AppInfo&, int, char**)> onLaunch = nullptr;
+               std::function<void(const AppInfo&, int, char**)> onTerminate = nullptr;
 };
 
 extern LaunchpadAdapter& Launchpad;
@@ -55,4 +45,4 @@ extern LaunchpadAdapter& Launchpad;
 }  // namespace runtime
 }  // namespace tizen
 
-#endif  // __LAUNCHER_INTERFACE_H__
+#endif /* __LAUNCHER_INTERFACE_H__ */