libyang NEW function for generating schema paths from data paths
diff --git a/src/libyang.h.in b/src/libyang.h.in
index 2ba604a..e4e912a 100644
--- a/src/libyang.h.in
+++ b/src/libyang.h.in
@@ -905,6 +905,7 @@
  * --------------
  * - lys_find_path()
  * - lys_path()
+ * - ly_path_data2schema()
  *
  *
  * Data
@@ -1466,6 +1467,17 @@
  */
 void ly_ctx_destroy(struct ly_ctx *ctx, void (*private_destructor)(const struct lys_node *node, void *priv));
 
+/**
+ * @brief Transform a data path into schema path (see @ref howtoxpath).
+ *
+ * Only simple paths can be used, no complex XPath expressions.
+ *
+ * @param[in] ctx Context to work in.
+ * @param[in] data_path Data path to be transformed.
+ * @return Created schema path, NULL on error.
+ */
+char *ly_path_data2schema(const struct ly_ctx *ctx, const char *data_path);
+
 /**@} context */
 
 /**