@@ -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,12 @@ 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_BIN ...
267
+ #define LYD_NEW_VAL_CANON ...
268
+ #define LYD_NEW_META_CLEAR_DFLT ...
264
269
#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 ...
270
+ #define LYD_NEW_PATH_OPAQ ...
269
271
LY_ERR lyd_new_path (struct lyd_node * , const struct ly_ctx * , const char * , const char * , uint32_t , struct lyd_node * * );
270
272
LY_ERR lyd_find_xpath (const struct lyd_node * , const char * , struct ly_set * * );
271
273
void lyd_unlink_siblings (struct lyd_node * node );
@@ -614,6 +616,7 @@ struct lysp_node_list {
614
616
};
615
617
616
618
struct lysc_type {
619
+ const char * name ;
617
620
struct lysc_ext_instance * exts ;
618
621
struct lyplg_type * plugin ;
619
622
LY_DATA_TYPE basetype ;
@@ -641,6 +644,7 @@ struct lysp_type {
641
644
struct lysp_qname {
642
645
const char * str ;
643
646
const struct lysp_module * mod ;
647
+ ...;
644
648
};
645
649
646
650
struct lysp_node {
@@ -682,7 +686,6 @@ struct lysc_ext {
682
686
struct lysc_ext_instance * exts ;
683
687
struct lyplg_ext * plugin ;
684
688
struct lys_module * module ;
685
- uint32_t refcount ;
686
689
uint16_t flags ;
687
690
};
688
691
@@ -703,11 +706,10 @@ typedef enum {
703
706
LYD_PATH_STD_NO_LAST_PRED
704
707
} LYD_PATH_TYPE ;
705
708
706
- LY_ERR lyd_new_term (struct lyd_node * , const struct lys_module * , const char * , const char * , ly_bool , struct lyd_node * * );
709
+ LY_ERR lyd_new_term (struct lyd_node * , const struct lys_module * , const char * , const char * , uint32_t , struct lyd_node * * );
707
710
char * lyd_path (const struct lyd_node * , LYD_PATH_TYPE , char * , size_t );
708
711
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 * * );
712
+ LY_ERR lyd_new_list (struct lyd_node * , const struct lys_module * , const char * , uint32_t , struct lyd_node * * node , ...);
711
713
712
714
struct lyd_node_inner {
713
715
union {
@@ -821,6 +823,7 @@ struct lysp_restr {
821
823
};
822
824
823
825
struct lysc_type_num {
826
+ const char * name ;
824
827
struct lysc_ext_instance * exts ;
825
828
struct lyplg_type * plugin ;
826
829
LY_DATA_TYPE basetype ;
@@ -829,6 +832,7 @@ struct lysc_type_num {
829
832
};
830
833
831
834
struct lysc_type_dec {
835
+ const char * name ;
832
836
struct lysc_ext_instance * exts ;
833
837
struct lyplg_type * plugin ;
834
838
LY_DATA_TYPE basetype ;
@@ -838,6 +842,7 @@ struct lysc_type_dec {
838
842
};
839
843
840
844
struct lysc_type_str {
845
+ const char * name ;
841
846
struct lysc_ext_instance * exts ;
842
847
struct lyplg_type * plugin ;
843
848
LY_DATA_TYPE basetype ;
@@ -859,6 +864,7 @@ struct lysc_type_bitenum_item {
859
864
};
860
865
861
866
struct lysc_type_enum {
867
+ const char * name ;
862
868
struct lysc_ext_instance * exts ;
863
869
struct lyplg_type * plugin ;
864
870
LY_DATA_TYPE basetype ;
@@ -867,6 +873,7 @@ struct lysc_type_enum {
867
873
};
868
874
869
875
struct lysc_type_bits {
876
+ const char * name ;
870
877
struct lysc_ext_instance * exts ;
871
878
struct lyplg_type * plugin ;
872
879
LY_DATA_TYPE basetype ;
@@ -875,18 +882,19 @@ struct lysc_type_bits {
875
882
};
876
883
877
884
struct lysc_type_leafref {
885
+ const char * name ;
878
886
struct lysc_ext_instance * exts ;
879
887
struct lyplg_type * plugin ;
880
888
LY_DATA_TYPE basetype ;
881
889
uint32_t refcount ;
882
890
struct lyxp_expr * path ;
883
891
struct lysc_prefix * prefixes ;
884
- const struct lys_module * cur_mod ;
885
892
struct lysc_type * realtype ;
886
893
uint8_t require_instance ;
887
894
};
888
895
889
896
struct lysc_type_identityref {
897
+ const char * name ;
890
898
struct lysc_ext_instance * exts ;
891
899
struct lyplg_type * plugin ;
892
900
LY_DATA_TYPE basetype ;
@@ -895,6 +903,7 @@ struct lysc_type_identityref {
895
903
};
896
904
897
905
struct lysc_type_instanceid {
906
+ const char * name ;
898
907
struct lysc_ext_instance * exts ;
899
908
struct lyplg_type * plugin ;
900
909
LY_DATA_TYPE basetype ;
@@ -903,6 +912,7 @@ struct lysc_type_instanceid {
903
912
};
904
913
905
914
struct lysc_type_union {
915
+ const char * name ;
906
916
struct lysc_ext_instance * exts ;
907
917
struct lyplg_type * plugin ;
908
918
LY_DATA_TYPE basetype ;
@@ -911,6 +921,7 @@ struct lysc_type_union {
911
921
};
912
922
913
923
struct lysc_type_bin {
924
+ const char * name ;
914
925
struct lysc_ext_instance * exts ;
915
926
struct lyplg_type * plugin ;
916
927
LY_DATA_TYPE basetype ;
@@ -1053,7 +1064,7 @@ LY_ERR lyd_merge_module(struct lyd_node **, const struct lyd_node *, const struc
1053
1064
LY_ERR lyd_new_implicit_tree (struct lyd_node * , uint32_t , struct lyd_node * * );
1054
1065
LY_ERR lyd_new_implicit_all (struct lyd_node * * , const struct ly_ctx * , uint32_t , struct lyd_node * * );
1055
1066
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 * * );
1067
+ 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
1068
1058
1069
struct ly_opaq_name {
1059
1070
const char * name ;
0 commit comments