NetconfAccess: reuse netconf libyang context
Change-Id: Ib8d4b35ddd0ecc24e9ff4066e10eaf71eb175bee
diff --git a/src/netconf-client.h b/src/netconf-client.h
index 6d57e01..143f200 100644
--- a/src/netconf-client.h
+++ b/src/netconf-client.h
@@ -12,6 +12,7 @@
namespace libyang {
class Data_Node;
+class Context;
}
namespace libnetconf {
@@ -46,6 +47,8 @@
std::shared_ptr<libyang::Data_Node> rpc(const std::string& xmlData);
void commit();
void discard();
+
+ std::shared_ptr<libyang::Context> libyangContext();
struct nc_session* session_internal(); // FIXME: remove me
protected:
struct nc_session* m_session;