tests NEW xml printer defaults
Also some parser bugfixes included and
extensions refactoring to fix invalid
memory access of reading freed extension definitions.
diff --git a/src/printer_internal.h b/src/printer_internal.h
index 7d1ecee..25b0afb 100644
--- a/src/printer_internal.h
+++ b/src/printer_internal.h
@@ -120,6 +120,15 @@
LY_ERR xml_print_data(struct lyout *out, const struct lyd_node *root, int options);
/**
+ * @brief Check whether a node value equals to its default one.
+ *
+ * @param[in] node Term node to test.
+ * @return 0 if no,
+ * @return non-zero if yes.
+ */
+int ly_is_default(const struct lyd_node *node);
+
+/**
* @brief Check whether the node should even be printed.
*
* @param[in] node Node to check.