%module yang %{ extern "C" { #include "libyang.h" #include "tree_data.h" } %} %include exception.i %include %catches(std::runtime_error, std::exception, std::string); %inline %{ #include #include "libyang.h" #include #include #include #include "Libyang.hpp" #include "Tree_Data.hpp" %} %include "../swig_base/java_base.i"