blob: d8bf4ad4a7260bffe098409fa0abeda633e637c8 [file] [log] [blame]
Václav Kubernát02a71152020-01-21 14:52:51 +01001/*
2 * Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/
3 *
4 * Written by Václav Kubernát <kubernat@cesnet.cz>
5 *
6*/
7
8#include <libyang/Tree_Data.hpp>
9#include "ast_values.hpp"
Václav Kubernát3c8fe022020-06-04 01:35:03 +020010#include "datastore_access.hpp"
Václav Kubernát02a71152020-01-21 14:52:51 +010011
12leaf_data_ leafValueFromValue(const libyang::S_Value& value, LY_DATA_TYPE type);
Václav Kubernát3c8fe022020-06-04 01:35:03 +020013void lyNodesToTree(DatastoreAccess::Tree& res, const std::vector<std::shared_ptr<libyang::Data_Node>> items, std::optional<std::string> ignoredXPathPrefix = std::nullopt);