[Release] wrt-installer_0.1.53
[framework/web/wrt-installer.git] / src / wrt-installer / wrt_installer_api.h
index 512168b..694c9d1 100644 (file)
 #include <stdbool.h>
 #include <stddef.h>
 #include <wrt_type.h>
+#include <wrt_install_mode.h>
 #include <pkgmgr_signal_interface.h>
 #include <memory>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 typedef void (*WrtInstallerInitCallback)(WrtErrStatus status,
                                          void *data);
 typedef void (*WrtPluginInstallerStatusCallback)(WrtErrStatus status,
@@ -45,15 +42,6 @@ typedef void (*WrtProgressCallback)(float percent,
                                     const char *description,
                                     void *data);
 
-enum WrtInstallMode
-{
-    WRT_INSTALL_MODE_UNKNOWN = 0,
-    WRT_INSTALL_MODE_INSTALL_WGT,
-    WRT_INSTALL_MODE_INSTALL_DIRECTORY,
-    WRT_INSTALL_MODE_INSTALL_PRELOAD,
-    WRT_INSTALL_MODE_REINSTALL
-};
-
 void wrt_installer_init(
     void *userdata,
     WrtInstallerInitCallback callback);
@@ -63,7 +51,7 @@ void wrt_install_widget(
     void *user_parameter,
     WrtInstallerStatusCallback status_callback,
     WrtProgressCallback progress_callback,
-    WrtInstallMode install_mode,
+    InstallMode install_mode,
     std::shared_ptr<PackageManager::IPkgmgrSignal>
     pkgmgrInterface
     );
@@ -79,8 +67,4 @@ void wrt_install_plugin(const char *pluginDirectory,
                         WrtPluginInstallerStatusCallback statusCallback,
                         WrtProgressCallback progressCallback);
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* WRT_INSTALLER_API_H_ */