]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/yang.h
lib: STAILQ_FOREACH_SAFE never gives a null elem
[mirror_frr.git] / lib / yang.h
index 3259189e987099ba9ab83f1c388a8b25e999b258..885218272a5fb0ef1853d074a29e655f3287222c 100644 (file)
 
 #include "yang_wrappers.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 DECLARE_MTYPE(YANG_MODULE)
 DECLARE_MTYPE(YANG_DATA)
 
@@ -509,6 +513,11 @@ extern void yang_data_free(struct yang_data *data);
  */
 extern struct list *yang_data_list_new(void);
 
+/*
+ * Create and set up a libyang context (for use by the translator)
+ */
+extern struct ly_ctx *yang_ctx_new_setup(void);
+
 /*
  * Initialize the YANG subsystem. Should be called only once during the
  * daemon initialization process.
@@ -521,4 +530,8 @@ extern void yang_init(void);
  */
 extern void yang_terminate(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _FRR_YANG_H_ */