#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,
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);
void *user_parameter,
WrtInstallerStatusCallback status_callback,
WrtProgressCallback progress_callback,
- WrtInstallMode install_mode,
+ InstallMode install_mode,
std::shared_ptr<PackageManager::IPkgmgrSignal>
pkgmgrInterface
);
WrtPluginInstallerStatusCallback statusCallback,
WrtProgressCallback progressCallback);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* WRT_INSTALLER_API_H_ */