Bug-fix: fix target dll searching logic
[platform/core/dotnet/launcher.git] / NativeLauncher / inc / ni_common.h
index c4e6a8f..28b387f 100644 (file)
@@ -40,6 +40,7 @@
 #define NI_FLAGS_PRINT_CMD              0x0200
 #define NI_FLAGS_SKIP_RO_APP            0x0400
 #define NI_FLAGS_RM_ORIGIN_AFTER_NI     0x0800
+#define NI_FLAGS_SET_PRIORITY           0x1000
 
 typedef std::function<void (std::string)> afterCreate;
 
@@ -61,6 +62,7 @@ typedef struct NIOption{
        std::vector<std::string> extraRefPath;
        std::vector<std::string> inputBubbleRefFiles;
        std::vector<std::string> mibcPath;
+       int priority;
 } NIOption;
 
 /**
@@ -133,11 +135,11 @@ void removeNIUnderDirs(const std::string& rootPaths);
 ni_error_e removeNIUnderPkgRoot(const std::string& pkgId);
 
 /**
- * @brief regenerate native images of all installed applications
+ * @brief regenerate native images of all installed packages (tpk, rpk)
  * @param[in] flags additional flags for the image generator
  * @return ni_error_e
  */
-ni_error_e regenerateAppNI(NIOption* opt);
+ni_error_e regeneratePkgNI(NIOption* opt);
 
 /**
  * @brief regenerate native image of TAC for all shared assembly.
@@ -146,4 +148,9 @@ ni_error_e regenerateAppNI(NIOption* opt);
  */
 ni_error_e regenerateTACNI(NIOption* opt);
 
+/**
+ * @brief Sets the priority of the process to the specified values from -20 to 19.(default : 0)
+ */
+void setPriority(NIOption* opt);
+
 #endif /* __NI_COMMON_H__ */