version UPDATE provide run-time version info
Fixes #2260
diff --git a/src/ly_common.c b/src/ly_common.c
index 766faf8..28d7514 100644
--- a/src/ly_common.c
+++ b/src/ly_common.c
@@ -37,8 +37,23 @@
#include "compat.h"
#include "tree_schema_internal.h"
+#include "version.h"
#include "xml.h"
+LIBYANG_API_DEF struct ly_version ly_version_so = {
+ .major = LY_VERSION_MAJOR,
+ .minor = LY_VERSION_MINOR,
+ .micro = LY_VERSION_MICRO,
+ .str = LY_VERSION
+};
+
+LIBYANG_API_DEF struct ly_version ly_version_proj = {
+ .major = LY_PROJ_VERSION_MAJOR,
+ .minor = LY_PROJ_VERSION_MINOR,
+ .micro = LY_PROJ_VERSION_MICRO,
+ .str = LY_PROJ_VERSION
+};
+
void *
ly_realloc(void *ptr, size_t size)
{