schema helpers CHANGE added LYS_MOD_IMPORTED_REV
The new ::lys_get_module_without_revision() modifies the behavior of
the ::lys_parse_load() when a module is imported without specifying a
revision. Such an imported module is marked with the
::LYS_MOD_IMPORTED_REV flag and its priority is the highest. Also, the
implemented module takes precedence over the module with the latest
revision.
diff --git a/src/context.h b/src/context.h
index bf6c3ef..029f513 100644
--- a/src/context.h
+++ b/src/context.h
@@ -73,8 +73,7 @@
* For a context, the first time the latest revision of a module is requested, it is properly searched for and loaded.
* However, when this module is requested (without revision) the second time, the one found previously is returned.
* This has the advantage of not searching for the module repeatedly but there is a drawback in case the content of search
- * directories is updated and a later revision become available. However, to force libyang to re-search the
- * latest revision, ::ly_ctx_reset_latests() can be used (note that it applies to all the modules in the context).
+ * directories is updated and a later revision become available.
*
* Context holds all the schema modules internally. To get a specific module, use ::ly_ctx_get_module() (or some of its
* variants). If you need to do something with all the modules in the context, it is advised to iterate over them using
@@ -530,6 +529,8 @@
/**
* @brief Reset cached latest revision information of the schemas in the context.
*
+ * This function is deprecated and should not be used.
+ *
* When a (sub)module is imported/included without revision, the latest revision is
* searched. libyang searches for the latest revision in searchdirs and/or via provided
* import callback ::ly_module_imp_clb() just once. Then it is expected that the content