Adapt to libyang-cpp API change

Depends-on: https://gerrit.cesnet.cz/c/CzechLight/dependencies/+/6243
Change-Id: I3e6237f7f5f0893cafab35ed9d9e246f899fcbe1
diff --git a/src/yang_schema.cpp b/src/yang_schema.cpp
index 48a8c79..8e282f1 100644
--- a/src/yang_schema.cpp
+++ b/src/yang_schema.cpp
@@ -45,7 +45,7 @@
 
 void YangSchema::addSchemaString(const char* schema)
 {
-    m_context.parseModuleMem(schema, libyang::SchemaFormat::YANG);
+    m_context.parseModule(std::string{schema}, libyang::SchemaFormat::YANG);
 }
 
 void YangSchema::addSchemaDirectory(const char* directoryName)
@@ -55,7 +55,7 @@
 
 void YangSchema::addSchemaFile(const char* filename)
 {
-    m_context.parseModulePath(filename, libyang::SchemaFormat::YANG);
+    m_context.parseModule(std::filesystem::path{filename}, libyang::SchemaFormat::YANG);
 }
 
 bool YangSchema::isModule(const std::string& name) const