libyang NEW xpath evaluation

Not tested once.
diff --git a/src/tree_schema_internal.h b/src/tree_schema_internal.h
index 1fac1fe..75e55fd 100644
--- a/src/tree_schema_internal.h
+++ b/src/tree_schema_internal.h
@@ -647,6 +647,17 @@
 uint8_t lysc_iff_getop(uint8_t *list, int pos);
 
 /**
+ * @brief Checks pattern syntax.
+ *
+ * @param[in] ctx Context.
+ * @param[in] log_path Path for logging errors.
+ * @param[in] pattern Pattern to check.
+ * @param[in,out] pcre2_code Compiled PCRE2 pattern. If NULL, the compiled information used to validate pattern are freed.
+ * @return LY_ERR value - LY_SUCCESS, LY_EMEM, LY_EVALID.
+ */
+LY_ERR lys_compile_type_pattern_check(struct ly_ctx *ctx, const char *log_path, const char *pattern, pcre2_code **code);
+
+/**
  * @brief Internal wrapper around lys_compile_extension() to be able to prepare list of compiled extension definitions
  * even for the parsed (not-implemented) module - see lys_module::off_extensions.
  *