annotation CHANGE WIP parsing XML attributes as YANG metadata annotations
Interconnect XML attributes in data tree with the corresponding metadata
annotation (implemented as a YANG extension plugin).
Still proof of concept with only type processing, not tested so far.
diff --git a/src/tree_schema_internal.h b/src/tree_schema_internal.h
index 4da55e7..c9c6134 100644
--- a/src/tree_schema_internal.h
+++ b/src/tree_schema_internal.h
@@ -703,6 +703,12 @@
*/
void lysp_submodule_free(struct ly_ctx *ctx, struct lysp_submodule *submod);
+/**
+ * @brief Free the parsed type structure.
+ * @param[in] ctx libyang context where the string data resides in a dictionary.
+ * @param[in] type Parsed schema type structure to free. Note that since the type itself is not freed.
+ */
+void lysp_type_free(struct ly_ctx *ctx, struct lysp_type *type);
LY_ERR lysp_stmt_parse(struct lysc_ctx *ctx, const struct lysp_stmt *stmt, enum ly_stmt kw, void **result);