session CHANGE libyang context checking
Always check whether the context includes
everything and if not, try to correct
the situation. not only on new contexts.
diff --git a/src/session_p.h b/src/session_p.h
index 4b11012..7cf06ea 100644
--- a/src/session_p.h
+++ b/src/session_p.h
@@ -159,17 +159,7 @@
* @param[in] session Session to create the context for.
* @return 0 on success, non-zero on failure.
*/
-int nc_ctx_fill(struct nc_session *session);
-
-/**
- * @brief Check whether the libyang context in \p session is suitable for NETCONF use
- * meaning whether the ietf-netconf model is loaded.
- *
- * @param[in] session Session with the capabilities to be supported if loading ietf-netconf
- * explicitly.
- * @return 0 on success, non-zero on failure.
- */
-int nc_ctx_check(struct nc_session *session);
+int nc_ctx_check_and_fill(struct nc_session *session);
/**
* @brief Create and connect a socket.