commit | a6c5fff8fa5e006cee5dc8be806846e23ec5c89c | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubervac@fit.cvut.cz> | Fri Sep 07 15:16:25 2018 +0200 |
committer | Jan Kundrát <jan.kundrat@cesnet.cz> | Wed Sep 12 11:19:04 2018 +0200 |
tree | 883aecd1c88b4f0fc05372dda67a937bdf8cfe5d | |
parent | 16a879481ac05da25e826f449b44c3348a46d666 [diff] |
Request YANG schemas via sysrepo The std::function that is fed into YangSchema::registerModuleCallback does not have the same signature that libyang requires, because we would have to include libyang in the sysrepo_access header file. We don't want this class to know about libyang, so instead, we use an intermediate function, that has string arguments and a string return type. In YangSchema, this function is wrapped with another function, that has the required signature. Change-Id: Ibd2dcb89344cf1454ba0b3970cac0c8e88ffa20d
Copyright © Faculty of Information Technology, Czech Technical University in Prague, https://fit.cvut.cz/ . Copyright © CESNET, https://www.cesnet.cz/ . Most of the code was written by Václav Kubernát (FIT ČVUT) and Jan Kundrát (CESNET). The project is distributed under the terms of the Apache 2.0 license.