schema compile FEATURE two step unres resolution

There is module unres resolved after the module
is compiled and global unres that is resolved
after all the newly implemented modules are
compiled.
diff --git a/src/path.h b/src/path.h
index f1e4fa3..a6e8149 100644
--- a/src/path.h
+++ b/src/path.h
@@ -25,6 +25,7 @@
 struct ly_ctx;
 struct lys_module;
 struct lysc_node;
+struct lys_glob_unres;
 struct lyxp_expr;
 
 enum ly_path_pred_type {
@@ -154,12 +155,13 @@
  * @param[in] target Target option (@ref path_target_options).
  * @param[in] format Format of the path.
  * @param[in] prefix_data Format-specific data for resolving any prefixes (see ::ly_resolve_prefix).
+ * @param[in,out] unres Global unres structure for newly implemented modules, needed only if @p lref is ::LY_PATH_LREF_TRUE.
  * @param[out] path Compiled path.
  * @return LY_ERR value.
  */
 LY_ERR ly_path_compile(const struct ly_ctx *ctx, const struct lys_module *cur_mod, const struct lysc_node *ctx_node,
         const struct lyxp_expr *expr, uint8_t lref, uint8_t oper, uint8_t target, LY_PREFIX_FORMAT format,
-        void *prefix_data, struct ly_path **path);
+        void *prefix_data, struct lys_glob_unres *unres, struct ly_path **path);
 
 /**
  * @brief Compile predicate into ly_path_predicate structure. Only simple predicates (not leafref) are supported.