tree data UPDATE schema node getter func
diff --git a/src/tree_data_common.c b/src/tree_data_common.c
index 58ee26e..d5254de 100644
--- a/src/tree_data_common.c
+++ b/src/tree_data_common.c
@@ -1091,7 +1091,7 @@
     return LY_SUCCESS;
 }
 
-const struct lysc_node *
+LIBYANG_API_DEF const struct lysc_node *
 lyd_node_schema(const struct lyd_node *node)
 {
     const struct lysc_node *schema = NULL;