Refactoring the dotnettool (#231)
[platform/core/dotnet/launcher.git] / NativeLauncher / inc / ni_common.h
index f33ddcc..9fcd321 100644 (file)
@@ -41,6 +41,7 @@ typedef enum {
        NI_ERROR_NO_SUCH_FILE = -3,
        NI_ERROR_INVALID_PACKAGE = -4,
        NI_ERROR_NOT_SUPPORTED = -5,
+       NI_ERROR_CORE_NI_FILE = -6,
        NI_ERROR_UNKNOWN = -9
 } ni_error_e;
 
@@ -69,8 +70,9 @@ void finalizeNICommon();
 /**
  * @brief create native images for platform DLLs (.NETCore + TizenFX)
  * @param[i] flags additional flags for the image generator
+ * @return ni_error_e
  */
-void createNiPlatform(DWORD flags);
+ni_error_e createNiPlatform(DWORD flags);
 
 /**
  * @brief create a native image for a single DLL
@@ -101,8 +103,9 @@ ni_error_e createTACPkgRoot(const std::string& pkgId, DWORD flags);
  * @param[i] rootPaths paths to directories
  * @param[i] count length of rootPaths
  * @param[i] flags additional flags for the image generator
+ * @return ni_error_e
  */
-void createNiUnderDirs(const std::string rootPaths[], int count, DWORD flags);
+ni_error_e createNiUnderDirs(const std::string rootPaths[], int count, DWORD flags);
 
 /**
  * @brief create native images for all DLLs in a package