Refactor leafValueFromValue
This function will be useful in other libyang enabled contexts.
Change-Id: Iae808d892be27749571f5086fac7af17290953e8
diff --git a/src/libyang_utils.hpp b/src/libyang_utils.hpp
new file mode 100644
index 0000000..42b6198
--- /dev/null
+++ b/src/libyang_utils.hpp
@@ -0,0 +1,11 @@
+/*
+ * Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/
+ *
+ * Written by Václav Kubernát <kubernat@cesnet.cz>
+ *
+*/
+
+#include <libyang/Tree_Data.hpp>
+#include "ast_values.hpp"
+
+leaf_data_ leafValueFromValue(const libyang::S_Value& value, LY_DATA_TYPE type);