@@ -262,7 +262,7 @@ struct lyd_node {
262262 uint32_t hash ;
263263 uint32_t flags ;
264264 const struct lysc_node * schema ;
265- struct lyd_node_inner * parent ;
265+ struct lyd_node * parent ;
266266 struct lyd_node * next ;
267267 struct lyd_node * prev ;
268268 struct lyd_meta * meta ;
@@ -273,7 +273,6 @@ LY_ERR lys_set_implemented(struct lys_module *, const char **);
273273
274274#define LYD_NEW_VAL_OUTPUT ...
275275#define LYD_NEW_VAL_STORE_ONLY ...
276- #define LYD_NEW_VAL_BIN ...
277276#define LYD_NEW_VAL_CANON ...
278277#define LYD_NEW_META_CLEAR_DFLT ...
279278#define LYD_NEW_PATH_UPDATE ...
@@ -876,9 +875,8 @@ struct lysc_ext {
876875#define LYS_GETNEXT_WITHCASE ...
877876#define LYS_GETNEXT_INTONPCONT ...
878877#define LYS_GETNEXT_OUTPUT ...
879- #define LYS_GETNEXT_WITHSCHEMAMOUNT ...
880878
881- const struct lysc_node * lys_find_child (const struct lysc_node * , const struct lys_module * , const char * , size_t , uint16_t , uint32_t );
879+ const struct lysc_node * lys_find_child (const struct ly_ctx * , const struct lysc_node * , const struct lys_module * , const char * , uint32_t , const char * , uint32_t , uint32_t );
882880const struct lysc_node * lysc_node_child (const struct lysc_node * );
883881const struct lysc_node_action * lysc_node_actions (const struct lysc_node * );
884882const struct lysc_node_notif * lysc_node_notifs (const struct lysc_node * );
@@ -902,7 +900,7 @@ struct lyd_node_inner {
902900 uint32_t hash ;
903901 uint32_t flags ;
904902 const struct lysc_node * schema ;
905- struct lyd_node_inner * parent ;
903+ struct lyd_node * parent ;
906904 struct lyd_node * next ;
907905 struct lyd_node * prev ;
908906 struct lyd_meta * meta ;
@@ -924,7 +922,7 @@ struct lyd_node_term {
924922 uint32_t hash ;
925923 uint32_t flags ;
926924 const struct lysc_node * schema ;
927- struct lyd_node_inner * parent ;
925+ struct lyd_node * parent ;
928926 struct lyd_node * next ;
929927 struct lyd_node * prev ;
930928 struct lyd_meta * meta ;
@@ -984,9 +982,6 @@ struct lysc_must {
984982 struct lysc_ext_instance * exts ;
985983};
986984
987- struct pcre2_real_code ;
988- typedef struct pcre2_real_code pcre2_code ;
989-
990985struct lysc_pattern {
991986 const char * expr ;
992987 const char * dsc ;
@@ -1161,39 +1156,25 @@ struct lyd_meta {
11611156 struct lyd_value value ;
11621157};
11631158
1164- typedef enum {
1165- LYD_ANYDATA_DATATREE ,
1166- LYD_ANYDATA_STRING ,
1167- LYD_ANYDATA_XML ,
1168- LYD_ANYDATA_JSON
1169- } LYD_ANYDATA_VALUETYPE ;
1170-
1171- union lyd_any_value {
1172- struct lyd_node * tree ;
1173- const char * str ;
1174- const char * xml ;
1175- const char * json ;
1176- };
1177-
11781159struct lyd_node_any {
11791160 union {
11801161 struct lyd_node node ;
11811162 struct {
11821163 uint32_t hash ;
11831164 uint32_t flags ;
11841165 const struct lysc_node * schema ;
1185- struct lyd_node_inner * parent ;
1166+ struct lyd_node * parent ;
11861167 struct lyd_node * next ;
11871168 struct lyd_node * prev ;
11881169 struct lyd_meta * meta ;
11891170 void * priv ;
11901171 };
11911172 };
1192- union lyd_any_value value ;
1193- LYD_ANYDATA_VALUETYPE value_type ;
1173+ struct lyd_node * child ;
1174+ ... ;
11941175};
11951176
1196- LY_ERR lyd_any_value_str (const struct lyd_node * , char * * );
1177+ LY_ERR lyd_any_value_str (const struct lyd_node * , LYD_FORMAT , char * * );
11971178
11981179#define LYD_MERGE_DEFAULTS ...
11991180#define LYD_MERGE_DESTRUCT ...
@@ -1212,8 +1193,8 @@ LY_ERR lyd_diff_apply_all(struct lyd_node **, const struct lyd_node *);
12121193#define LYD_DUP_WITH_FLAGS ...
12131194#define LYD_DUP_WITH_PARENTS ...
12141195
1215- LY_ERR lyd_dup_siblings (const struct lyd_node * , struct lyd_node_inner * , uint32_t , struct lyd_node * * );
1216- LY_ERR lyd_dup_single (const struct lyd_node * , struct lyd_node_inner * , uint32_t , struct lyd_node * * );
1196+ LY_ERR lyd_dup_siblings (const struct lyd_node * , struct lyd_node * , uint32_t , struct lyd_node * * );
1197+ LY_ERR lyd_dup_single (const struct lyd_node * , struct lyd_node * , uint32_t , struct lyd_node * * );
12171198void lyd_free_meta_single (struct lyd_meta * );
12181199
12191200struct lysp_tpdf {
@@ -1291,7 +1272,7 @@ struct lyd_node_opaq {
12911272 uint32_t hash ;
12921273 uint32_t flags ;
12931274 const struct lysc_node * schema ;
1294- struct lyd_node_inner * parent ;
1275+ struct lyd_node * parent ;
12951276 struct lyd_node * next ;
12961277 struct lyd_node * prev ;
12971278 struct lyd_meta * meta ;
0 commit comments