Use libnetconf2-cpp

Change-Id: I45dd7f24136edc57235fbb6abe14f2d48a5388c0
Depends-on: https://gerrit.cesnet.cz/c/CzechLight/dependencies/+/5432
Depends-on: https://gerrit.cesnet.cz/c/CzechLight/br2-external/+/5629
diff --git a/src/netconf_access.hpp b/src/netconf_access.hpp
index 1534dba..cee092f 100644
--- a/src/netconf_access.hpp
+++ b/src/netconf_access.hpp
@@ -7,8 +7,8 @@
 
 #pragma once
 
-#include <libnetconf2/log.h>
 #include <libyang-cpp/Context.hpp>
+#include <libnetconf2-cpp/Enum.hpp>
 #include <string>
 #include "datastore_access.hpp"
 
@@ -25,7 +25,7 @@
 class Schema;
 class YangSchema;
 
-using LogCb = std::function<void(NC_VERB_LEVEL, const char*)>;
+using LogCb = std::function<void(libnetconf::LogLevel, const char*)>;
 
 class NetconfAccess : public DatastoreAccess {
 public:
@@ -36,7 +36,7 @@
     ~NetconfAccess() override;
     [[nodiscard]] Tree getItems(const std::string& path) const override;
 
-    static void setNcLogLevel(NC_VERB_LEVEL level);
+    static void setNcLogLevel(libnetconf::LogLevel level);
     static void setNcLogCallback(const LogCb& callback);
     void setLeaf(const std::string& path, leaf_data_ value) override;
     void createItem(const std::string& path) override;