context CHANGE clb for copying data nodes priv pointer
Fixes #478
diff --git a/src/libyang.h.in b/src/libyang.h.in
index 016cb7b..805d055 100644
--- a/src/libyang.h.in
+++ b/src/libyang.h.in
@@ -1437,6 +1437,12 @@
*/
ly_module_data_clb ly_ctx_get_module_data_clb(const struct ly_ctx *ctx, void **user_data);
+#ifdef LY_ENABLED_LYD_PRIV
+
+void ly_ctx_set_priv_dup_clb(struct ly_ctx *ctx, void *(*priv_dup_clb)(const void *priv));
+
+#endif
+
/**
* @brief Get pointer to the schema tree of the module of the specified namespace
*