schema parser CHANGE add missing status check following RFC 6020 7.19.2
Adds status checking of the referenced definitions in schemas. The only
thing added into data validation is checking for referencing identity
with a worse status.
Partially fixes #10 - checking for "implementing" obsolete data is still
missing.
diff --git a/src/parser.h b/src/parser.h
index 6b06ee1..7d2c150 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -74,6 +74,9 @@
int fill_yin_type(struct lys_module *module, struct lys_node *parent, struct lyxml_elem *yin, struct lys_type *type,
struct unres_schema *unres);
+int check_status(uint8_t flags1, struct lys_module *mod1, const char *name1,
+ uint8_t flags2, struct lys_module *mod2, const char *name2, unsigned int line);
+
/**
* Store UTF-8 character specified as 4byte integer into the dst buffer.
* Returns number of written bytes (4 max), expects that dst has enough space.