@@ -179,10 +179,10 @@ int ly_log_options(int);
179
179
180
180
LY_LOG_LEVEL ly_log_level (LY_LOG_LEVEL );
181
181
extern "Python" void lypy_log_cb (LY_LOG_LEVEL , const char * , const char * );
182
- void ly_set_log_clb (void (* )(LY_LOG_LEVEL , const char * , const char * ), int );
183
- struct ly_err_item * ly_err_first (const struct ly_ctx * );
182
+ void ly_set_log_clb (void (* )(LY_LOG_LEVEL , const char * , const char * , const char * , uint64_t ));
183
+ const struct ly_err_item * ly_err_first (const struct ly_ctx * );
184
+ const struct ly_err_item * ly_err_last (const struct ly_ctx * );
184
185
void ly_err_clean (struct ly_ctx * , struct ly_err_item * );
185
- LY_VECODE ly_vecode (const struct ly_ctx * );
186
186
187
187
#define LYS_UNKNOWN ...
188
188
#define LYS_CONTAINER ...
@@ -238,14 +238,15 @@ struct lysc_node {
238
238
239
239
struct ly_err_item {
240
240
LY_LOG_LEVEL level ;
241
- LY_ERR no ;
241
+ LY_ERR err ;
242
242
LY_VECODE vecode ;
243
243
char * msg ;
244
- char * path ;
244
+ char * data_path ;
245
+ char * schema_path ;
246
+ uint64_t line ;
245
247
char * apptag ;
246
248
struct ly_err_item * next ;
247
249
struct ly_err_item * prev ;
248
- ...;
249
250
};
250
251
251
252
struct lyd_node {
@@ -261,11 +262,15 @@ struct lyd_node {
261
262
262
263
LY_ERR lys_set_implemented (struct lys_module * , const char * * );
263
264
265
+ #define LYD_NEW_VAL_OUTPUT ...
266
+ #define LYD_NEW_VAL_STORE_ONLY ...
267
+ #define LYD_NEW_VAL_BIN ...
268
+ #define LYD_NEW_VAL_CANON ...
269
+ #define LYD_NEW_META_CLEAR_DFLT ...
264
270
#define LYD_NEW_PATH_UPDATE ...
265
- #define LYD_NEW_PATH_OUTPUT ...
266
- #define LYD_NEW_PATH_OPAQ ...
267
- #define LYD_NEW_PATH_BIN_VALUE ...
268
- #define LYD_NEW_PATH_CANON_VALUE ...
271
+ #define LYD_NEW_PATH_OPAQ ...
272
+ #define LYD_NEW_PATH_WITH_OPAQ ...
273
+ #define LYD_NEW_ANY_USE_VALUE ...
269
274
LY_ERR lyd_new_path (struct lyd_node * , const struct ly_ctx * , const char * , const char * , uint32_t , struct lyd_node * * );
270
275
LY_ERR lyd_find_xpath (const struct lyd_node * , const char * , struct ly_set * * );
271
276
void lyd_unlink_siblings (struct lyd_node * node );
@@ -310,6 +315,7 @@ LY_ERR lyd_print_all(struct ly_out *, const struct lyd_node *, LYD_FORMAT, uint3
310
315
#define LYD_PARSE_OPTS_MASK ...
311
316
#define LYD_PARSE_ORDERED ...
312
317
#define LYD_PARSE_STRICT ...
318
+ #define LYD_PARSE_STORE_ONLY ...
313
319
314
320
#define LYD_VALIDATE_NO_STATE ...
315
321
#define LYD_VALIDATE_PRESENT ...
@@ -614,6 +620,7 @@ struct lysp_node_list {
614
620
};
615
621
616
622
struct lysc_type {
623
+ const char * name ;
617
624
struct lysc_ext_instance * exts ;
618
625
struct lyplg_type * plugin ;
619
626
LY_DATA_TYPE basetype ;
@@ -641,6 +648,7 @@ struct lysp_type {
641
648
struct lysp_qname {
642
649
const char * str ;
643
650
const struct lysp_module * mod ;
651
+ ...;
644
652
};
645
653
646
654
struct lysp_node {
@@ -682,7 +690,6 @@ struct lysc_ext {
682
690
struct lysc_ext_instance * exts ;
683
691
struct lyplg_ext * plugin ;
684
692
struct lys_module * module ;
685
- uint32_t refcount ;
686
693
uint16_t flags ;
687
694
};
688
695
@@ -703,11 +710,10 @@ typedef enum {
703
710
LYD_PATH_STD_NO_LAST_PRED
704
711
} LYD_PATH_TYPE ;
705
712
706
- LY_ERR lyd_new_term (struct lyd_node * , const struct lys_module * , const char * , const char * , ly_bool , struct lyd_node * * );
713
+ LY_ERR lyd_new_term (struct lyd_node * , const struct lys_module * , const char * , const char * , uint32_t , struct lyd_node * * );
707
714
char * lyd_path (const struct lyd_node * , LYD_PATH_TYPE , char * , size_t );
708
715
LY_ERR lyd_new_inner (struct lyd_node * , const struct lys_module * , const char * , ly_bool , struct lyd_node * * );
709
- LY_ERR lyd_new_list (struct lyd_node * , const struct lys_module * , const char * , ly_bool , struct lyd_node * * , ...);
710
- LY_ERR lyd_new_list2 (struct lyd_node * , const struct lys_module * , const char * , const char * , ly_bool , struct lyd_node * * );
716
+ LY_ERR lyd_new_list (struct lyd_node * , const struct lys_module * , const char * , uint32_t , struct lyd_node * * node , ...);
711
717
712
718
struct lyd_node_inner {
713
719
union {
@@ -821,6 +827,7 @@ struct lysp_restr {
821
827
};
822
828
823
829
struct lysc_type_num {
830
+ const char * name ;
824
831
struct lysc_ext_instance * exts ;
825
832
struct lyplg_type * plugin ;
826
833
LY_DATA_TYPE basetype ;
@@ -829,6 +836,7 @@ struct lysc_type_num {
829
836
};
830
837
831
838
struct lysc_type_dec {
839
+ const char * name ;
832
840
struct lysc_ext_instance * exts ;
833
841
struct lyplg_type * plugin ;
834
842
LY_DATA_TYPE basetype ;
@@ -838,6 +846,7 @@ struct lysc_type_dec {
838
846
};
839
847
840
848
struct lysc_type_str {
849
+ const char * name ;
841
850
struct lysc_ext_instance * exts ;
842
851
struct lyplg_type * plugin ;
843
852
LY_DATA_TYPE basetype ;
@@ -859,6 +868,7 @@ struct lysc_type_bitenum_item {
859
868
};
860
869
861
870
struct lysc_type_enum {
871
+ const char * name ;
862
872
struct lysc_ext_instance * exts ;
863
873
struct lyplg_type * plugin ;
864
874
LY_DATA_TYPE basetype ;
@@ -867,6 +877,7 @@ struct lysc_type_enum {
867
877
};
868
878
869
879
struct lysc_type_bits {
880
+ const char * name ;
870
881
struct lysc_ext_instance * exts ;
871
882
struct lyplg_type * plugin ;
872
883
LY_DATA_TYPE basetype ;
@@ -875,18 +886,19 @@ struct lysc_type_bits {
875
886
};
876
887
877
888
struct lysc_type_leafref {
889
+ const char * name ;
878
890
struct lysc_ext_instance * exts ;
879
891
struct lyplg_type * plugin ;
880
892
LY_DATA_TYPE basetype ;
881
893
uint32_t refcount ;
882
894
struct lyxp_expr * path ;
883
895
struct lysc_prefix * prefixes ;
884
- const struct lys_module * cur_mod ;
885
896
struct lysc_type * realtype ;
886
897
uint8_t require_instance ;
887
898
};
888
899
889
900
struct lysc_type_identityref {
901
+ const char * name ;
890
902
struct lysc_ext_instance * exts ;
891
903
struct lyplg_type * plugin ;
892
904
LY_DATA_TYPE basetype ;
@@ -895,6 +907,7 @@ struct lysc_type_identityref {
895
907
};
896
908
897
909
struct lysc_type_instanceid {
910
+ const char * name ;
898
911
struct lysc_ext_instance * exts ;
899
912
struct lyplg_type * plugin ;
900
913
LY_DATA_TYPE basetype ;
@@ -903,6 +916,7 @@ struct lysc_type_instanceid {
903
916
};
904
917
905
918
struct lysc_type_union {
919
+ const char * name ;
906
920
struct lysc_ext_instance * exts ;
907
921
struct lyplg_type * plugin ;
908
922
LY_DATA_TYPE basetype ;
@@ -911,6 +925,7 @@ struct lysc_type_union {
911
925
};
912
926
913
927
struct lysc_type_bin {
928
+ const char * name ;
914
929
struct lysc_ext_instance * exts ;
915
930
struct lyplg_type * plugin ;
916
931
LY_DATA_TYPE basetype ;
@@ -1053,7 +1068,7 @@ LY_ERR lyd_merge_module(struct lyd_node **, const struct lyd_node *, const struc
1053
1068
LY_ERR lyd_new_implicit_tree (struct lyd_node * , uint32_t , struct lyd_node * * );
1054
1069
LY_ERR lyd_new_implicit_all (struct lyd_node * * , const struct ly_ctx * , uint32_t , struct lyd_node * * );
1055
1070
1056
- LY_ERR lyd_new_meta (const struct ly_ctx * , struct lyd_node * , const struct lys_module * , const char * , const char * , ly_bool , struct lyd_meta * * );
1071
+ LY_ERR lyd_new_meta (const struct ly_ctx * , struct lyd_node * , const struct lys_module * , const char * , const char * , uint32_t , struct lyd_meta * * );
1057
1072
1058
1073
struct ly_opaq_name {
1059
1074
const char * name ;
0 commit comments