/dports/net/libyang/libyang-1.0.240/src/ |
H A D | parser.h | 35 struct lys_module *yin_read_module(struct ly_ctx *ctx, const char *data, const char *revision, int … 44 struct lyd_node *xml_read_data(struct ly_ctx *ctx, const char *data, int options); 108 int lyp_check_length_range(struct ly_ctx *ctx, const char *expr, struct lys_type *type); 110 int lyp_check_pattern(struct ly_ctx *ctx, const char *pattern, pcre **pcre_precomp); 141 int lyp_data_check_options(struct ly_ctx *ctx, int options, const char *func); 144 int lyp_check_date(struct ly_ctx *ctx, const char *date); 153 void lyp_check_circmod_pop(struct ly_ctx *ctx); 177 int lyp_get_ext_list(struct ly_ctx *ctx, void *elem, LYEXT_PAR elem_type, 220 int lyp_mmap(struct ly_ctx *ctx, int fd, size_t addsize, size_t *length, void **addr); 238 unsigned int pututf8(struct ly_ctx *ctx, char *dst, int32_t value); [all …]
|
H A D | parser_yang.h | 124 void *yang_read_type(struct ly_ctx *ctx, void *parent, char *value, enum yytokentype type); 126 void *yang_read_length(struct ly_ctx *ctx, struct yang_type *stype, char *value, int is_ext_instanc… 133 void yang_free_type_union(struct ly_ctx *ctx, struct lys_type *type); 135 void yang_type_free(struct ly_ctx *ctx, struct lys_type *type); 139 int yang_read_require_instance(struct ly_ctx *ctx, struct yang_type *stype, int req); 143 void *yang_read_range(struct ly_ctx *ctx, struct yang_type *stype, char *value, int is_ext_instance… 145 int yang_read_fraction(struct ly_ctx *ctx, struct yang_type *typ, uint32_t value); 151 int yang_read_bit(struct ly_ctx *ctx, struct yang_type *typ, struct lys_type_bit *bit, char *value); 159 void *yang_read_deviate(struct ly_ctx *ctx, struct lys_deviation *dev, LYS_DEVIATE_TYPE mod); 161 void *yang_read_deviate_unsupported(struct ly_ctx *ctx, struct lys_deviation *dev); [all …]
|
H A D | xml.h | 40 struct ly_ctx; 145 struct lyxml_elem *lyxml_parse_mem(struct ly_ctx *ctx, const char *data, int options); 157 struct lyxml_elem *lyxml_parse_path(struct ly_ctx *ctx, const char *filename, int options); 259 struct lyxml_elem *lyxml_dup(struct ly_ctx *ctx, struct lyxml_elem *root); 268 void lyxml_free(struct ly_ctx *ctx, struct lyxml_elem *elem); 278 void lyxml_free_withsiblings(struct ly_ctx *ctx, struct lyxml_elem *elem); 288 void lyxml_unlink(struct ly_ctx *ctx, struct lyxml_elem *elem);
|
H A D | xml_internal.h | 61 int lyxml_add_child(struct ly_ctx *ctx, struct lyxml_elem *parent, struct lyxml_elem *child); 64 void lyxml_correct_elem_ns(struct ly_ctx *ctx, struct lyxml_elem *elem, struct lyxml_elem *orig, in… 67 struct lyxml_elem *lyxml_dup_elem(struct ly_ctx *ctx, struct lyxml_elem *elem, 78 void lyxml_free_attr(struct ly_ctx *ctx, struct lyxml_elem *parent, struct lyxml_attr *attr); 86 void lyxml_free_attrs(struct ly_ctx *ctx, struct lyxml_elem *elem); 110 void lyxml_unlink_elem(struct ly_ctx *ctx, struct lyxml_elem *elem, int copy_ns); 129 int lyxml_getutf8(struct ly_ctx *ctx, const char *buf, unsigned int *read);
|
H A D | tree_internal.h | 78 struct ly_ctx *ctx; 294 int lys_ext_dup(struct ly_ctx *ctx, struct lys_module *mod, struct lys_ext_instance **orig, uint8_t… 313 void lys_extension_instances_free(struct ly_ctx *ctx, struct lys_ext_instance **e, unsigned int siz… 332 void lys_when_free(struct ly_ctx *ctx, struct lys_when *w, 345 void lys_restr_free(struct ly_ctx *ctx, struct lys_restr *restr, 358 void lys_type_free(struct ly_ctx *ctx, struct lys_type *type, 377 void lys_node_free(struct ly_ctx *ctx, struct lys_node *node, 524 int lyd_check_mandatory_tree(struct lyd_node *root, struct ly_ctx *ctx, const struct lys_module **m… 557 int lyd_defaults_add_unres(struct lyd_node **root, int options, struct ly_ctx *ctx, const struct ly… 576 const struct lys_module *lys_parse_fd_(struct ly_ctx *ctx, int fd, LYS_INFORMAT format, const char … [all …]
|
H A D | context.c | 83 API struct ly_ctx * 88 struct ly_ctx *ctx = NULL; in ly_ctx_new() 220 static struct ly_ctx * 230 struct ly_ctx *ctx = NULL; in ly_ctx_new_yl_common() 312 API struct ly_ctx * 320 API struct ly_ctx * 413 ly_ctx_set_trusted(struct ly_ctx *ctx) in ly_ctx_set_trusted() 429 ly_ctx_get_options(struct ly_ctx *ctx) in ly_ctx_get_options() 1208 struct ly_ctx *ctx; /* shortcut */ in lys_set_disabled() 1355 struct ly_ctx *ctx; /* shortcut */ in lys_set_enabled() [all …]
|
H A D | dict.h | 27 struct ly_ctx; 50 const char *lydict_insert(struct ly_ctx *ctx, const char *value, size_t len); 66 const char *lydict_insert_zc(struct ly_ctx *ctx, char *value); 77 void lydict_remove(struct ly_ctx *ctx, const char *value);
|
H A D | tree_data.h | 585 struct lyd_node *lyd_parse_mem(struct ly_ctx *ctx, const char *data, LYD_FORMAT format, int options… 625 struct lyd_node *lyd_parse_fd(struct ly_ctx *ctx, int fd, LYD_FORMAT format, int options, ...); 663 struct lyd_node *lyd_parse_path(struct ly_ctx *ctx, const char *path, LYD_FORMAT format, int option… 711 struct lyd_node *lyd_parse_xml(struct ly_ctx *ctx, struct lyxml_elem **root, int options,...); 898 struct lyd_node *lyd_new_path(struct lyd_node *data_tree, const struct ly_ctx *ctx, const char *pat… 972 struct lyd_node *lyd_dup_to_ctx(const struct lyd_node *node, int options, struct ly_ctx *ctx); 1023 int lyd_merge_to_ctx(struct lyd_node **trg, const struct lyd_node *src, int options, struct ly_ctx … 1410 void lyd_free_attr(struct ly_ctx *ctx, struct lyd_node *parent, struct lyd_attr *attr, int recursiv… 1541 struct lyd_node *lyd_find_path_hash_based(struct lyd_node *data_tree, const struct ly_ctx *ctx, con…
|
H A D | xml.c | 311 lyxml_dup(struct ly_ctx *ctx, struct lyxml_elem *root) in lyxml_dup() 319 lyxml_unlink_elem(struct ly_ctx *ctx, struct lyxml_elem *elem, int copy_ns) in lyxml_unlink_elem() 374 lyxml_unlink(struct ly_ctx *ctx, struct lyxml_elem *elem) in lyxml_unlink() 425 lyxml_free_attrs(struct ly_ctx *ctx, struct lyxml_elem *elem) in lyxml_free_attrs() 448 lyxml_free_elem(struct ly_ctx *ctx, struct lyxml_elem *elem) in lyxml_free_elem() 466 lyxml_free(struct ly_ctx *ctx, struct lyxml_elem *elem) in lyxml_free() 479 lyxml_free_withsiblings(struct ly_ctx *ctx, struct lyxml_elem *elem) in lyxml_free_withsiblings() 557 lyxml_getutf8(struct ly_ctx *ctx, const char *buf, unsigned int *read) in lyxml_getutf8() 666 parse_text(struct ly_ctx *ctx, const char *data, char delim, unsigned int *len) in parse_text() 1247 lyxml_parse_mem(struct ly_ctx *ctx, const char *data, int options) in lyxml_parse_mem() [all …]
|
H A D | log.c | 79 log_store(const struct ly_ctx *ctx, LY_LOG_LEVEL level, LY_ERR no, LY_VECODE vecode, char *msg, cha… in log_store() 151 log_vprintf(const struct ly_ctx *ctx, LY_LOG_LEVEL level, LY_ERR no, LY_VECODE vecode, char *path, in log_vprintf() 226 ly_log(const struct ly_ctx *ctx, LY_LOG_LEVEL level, LY_ERR no, const char *format, ...) in ly_log() 326 lyext_vlog(const struct ly_ctx *ctx, LY_VECODE vecode, const char *plugin, const char *function, in lyext_vlog() 849 ly_vlog(const struct ly_ctx *ctx, LY_ECODE ecode, enum LY_VLOG_ELEM elem_type, const void *elem, ..… in ly_vlog() 897 ly_vlog_str(const struct ly_ctx *ctx, enum LY_VLOG_ELEM elem_type, const char *str, ...) in ly_vlog_str() 949 err_print(struct ly_ctx *ctx, struct ly_err_item *last_eitem) in err_print() 974 ly_err_free_next(struct ly_ctx *ctx, struct ly_err_item *last_eitem) in ly_err_free_next() 992 err_clean(struct ly_ctx *ctx, struct ly_err_item *prev_eitem, int keep) in err_clean() 1065 ly_err_last_set_apptag(const struct ly_ctx *ctx, const char *apptag) in ly_err_last_set_apptag() [all …]
|
H A D | extensions.h | 226 void lyext_log(const struct ly_ctx *ctx, LY_LOG_LEVEL level, const char *plugin, const char *functi… 256 void lyext_vlog(const struct ly_ctx *ctx, LY_VECODE vecode, const char *plugin, const char *functio… 283 void lys_iffeature_free(struct ly_ctx *ctx, struct lys_iffeature *iffeature, uint8_t iffeature_size…
|
/dports/net/libyang/libyang-1.0.240/tests/schema/ |
H A D | test_feature.c | 38 struct ly_ctx *ctx; in setup_ctx_yin() 50 struct ly_ctx *ctx; in setup_ctx_yang() 70 struct ly_ctx *ctx = *state; in test_fullset() 155 struct ly_ctx *ctx = *state; in test_circle1() 171 struct ly_ctx *ctx = *state; in test_circle2() 184 struct ly_ctx *ctx = *state; in test_inval_expr1() 200 struct ly_ctx *ctx = *state; in test_inval_expr2() 216 struct ly_ctx *ctx = *state; in test_inval_expr3() 232 struct ly_ctx *ctx = *state; in test_inval_expr4() 248 struct ly_ctx *ctx = *state; in test_inval_expr5()
|
H A D | test_conformance.c | 55 struct ly_ctx *ctx = *state; in test_implemented1_yin() 89 struct ly_ctx *ctx = *state; in test_implemented1_yang() 123 struct ly_ctx *ctx = *state; in test_implemented2_yin() 141 struct ly_ctx *ctx = *state; in test_implemented2_yang() 159 struct ly_ctx *ctx = *state; in test_implemented_info_yin() 303 struct ly_ctx *ctx = *state; in test_implemented_info_yang() 447 struct ly_ctx *ctx = *state; in test_revision_date_yin() 510 struct ly_ctx *ctx = *state; in test_revision_date_yang() 554 _my_data_clb(struct ly_ctx *ctx, const char *name, const char *ns, int options, void *user_data) in _my_data_clb() 572 struct ly_ctx *ctx = *state; in test_issue_already_implemented()
|
H A D | test_import.c | 54 struct ly_ctx *ctx = *state; in test_mult_revisions() 98 struct ly_ctx *ctx = *state; in test_circular_import() 118 struct ly_ctx *ctx = *state; in test_autoimplement_augment_import() 127 struct ly_ctx *ctx = *state; in test_autoimplement_leafref_import()
|
H A D | test_printer.c | 25 struct ly_ctx *ctx; 492 struct ly_ctx *ctx2 = NULL; in test_parse_yin_with_unique() 516 struct ly_ctx *ctx2 = NULL; in test_parse_yang_with_unique() 540 struct ly_ctx *ctx2 = NULL; in test_parse_yin_with_submodule_types() 569 struct ly_ctx *ctx2 = NULL; in test_parse_yang_with_submodule_types() 599 struct ly_ctx *ctx2 = NULL; in test_parse_yin_with_submodule_grouping_idref_default() 636 struct ly_ctx *ctx2 = NULL; in test_parse_yang_with_submodule_grouping_idref_default()
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/lib/ |
H A D | yang_translator.c | 44 static struct ly_ctx *ly_translator_ctx; 175 if (!translator->ly_ctx) { in yang_translator_load() 293 ly_ctx_destroy(translator->ly_ctx, NULL); in yang_translator_unload() 310 struct ly_ctx *ly_ctx; in yang_translate_xpath() local 318 ly_ctx = translator->ly_ctx; in yang_translate_xpath() 320 ly_ctx = ly_native_ctx; in yang_translate_xpath() 353 struct ly_ctx *ly_ctx; in yang_translate_dnode() local 359 ly_ctx = ly_native_ctx; in yang_translate_dnode() 361 ly_ctx = translator->ly_ctx; in yang_translate_dnode() 362 new = yang_dnode_new(ly_ctx, false); in yang_translate_dnode() [all …]
|
H A D | northbound_cli.c | 443 struct ly_ctx *ly_ctx; in nb_cli_candidate_load_file() local 462 ly_ctx = translator ? translator->ly_ctx : ly_native_ctx; in nb_cli_candidate_load_file() 1390 struct ly_ctx *ly_ctx; in nb_cli_oper_data_cb() local 1407 ly_ctx = translator->ly_ctx; in nb_cli_oper_data_cb() 1409 ly_ctx = ly_native_ctx; in nb_cli_oper_data_cb() 1448 struct ly_ctx *ly_ctx; variable 1465 ly_ctx = translator->ly_ctx; 1505 struct ly_ctx *ly_ctx; variable 1518 ly_ctx = translator->ly_ctx; 1577 struct ly_ctx *ly_ctx; variable [all …]
|
H A D | yang.h | 121 extern struct ly_ctx *ly_native_ctx; 440 extern struct lyd_node *yang_dnode_new(struct ly_ctx *ly_ctx, bool config_only); 514 extern struct ly_ctx *yang_ctx_new_setup(bool embedded_modules); 539 extern const char *yang_print_errors(struct ly_ctx *ly_ctx, char *buf,
|
H A D | yang.c | 34 struct ly_ctx *ly_native_ctx; 557 struct lyd_node *yang_dnode_new(struct ly_ctx *ly_ctx, bool config_only) in yang_dnode_new() argument 568 if (lyd_validate(&dnode, options, ly_ctx) != 0) { in yang_dnode_new() 661 const char *yang_print_errors(struct ly_ctx *ly_ctx, char *buf, size_t buf_len) in yang_print_errors() argument 666 ei = ly_err_first(ly_ctx); in yang_print_errors() 677 path = ly_errpath(ly_ctx); in yang_print_errors() 684 ly_err_clean(ly_ctx, NULL); in yang_print_errors() 700 struct ly_ctx *yang_ctx_new_setup(bool embedded_modules) in yang_ctx_new_setup() 702 struct ly_ctx *ctx; in yang_ctx_new_setup()
|
/dports/net/frr7/frr-frr-7.5.1/lib/ |
H A D | yang_translator.c | 44 static struct ly_ctx *ly_translator_ctx; 175 if (!translator->ly_ctx) { in yang_translator_load() 293 ly_ctx_destroy(translator->ly_ctx, NULL); in yang_translator_unload() 310 struct ly_ctx *ly_ctx; in yang_translate_xpath() local 318 ly_ctx = translator->ly_ctx; in yang_translate_xpath() 320 ly_ctx = ly_native_ctx; in yang_translate_xpath() 353 struct ly_ctx *ly_ctx; in yang_translate_dnode() local 359 ly_ctx = ly_native_ctx; in yang_translate_dnode() 361 ly_ctx = translator->ly_ctx; in yang_translate_dnode() 362 new = yang_dnode_new(ly_ctx, false); in yang_translate_dnode() [all …]
|
H A D | northbound_cli.c | 443 struct ly_ctx *ly_ctx; in nb_cli_candidate_load_file() local 462 ly_ctx = translator ? translator->ly_ctx : ly_native_ctx; in nb_cli_candidate_load_file() 1390 struct ly_ctx *ly_ctx; in nb_cli_oper_data_cb() local 1407 ly_ctx = translator->ly_ctx; in nb_cli_oper_data_cb() 1409 ly_ctx = ly_native_ctx; in nb_cli_oper_data_cb() 1448 struct ly_ctx *ly_ctx; variable 1465 ly_ctx = translator->ly_ctx; 1505 struct ly_ctx *ly_ctx; variable 1518 ly_ctx = translator->ly_ctx; 1577 struct ly_ctx *ly_ctx; variable [all …]
|
H A D | yang.h | 121 extern struct ly_ctx *ly_native_ctx; 440 extern struct lyd_node *yang_dnode_new(struct ly_ctx *ly_ctx, bool config_only); 514 extern struct ly_ctx *yang_ctx_new_setup(bool embedded_modules); 539 extern const char *yang_print_errors(struct ly_ctx *ly_ctx, char *buf,
|
H A D | yang.c | 34 struct ly_ctx *ly_native_ctx; 557 struct lyd_node *yang_dnode_new(struct ly_ctx *ly_ctx, bool config_only) in yang_dnode_new() argument 568 if (lyd_validate(&dnode, options, ly_ctx) != 0) { in yang_dnode_new() 661 const char *yang_print_errors(struct ly_ctx *ly_ctx, char *buf, size_t buf_len) in yang_print_errors() argument 666 ei = ly_err_first(ly_ctx); in yang_print_errors() 677 path = ly_errpath(ly_ctx); in yang_print_errors() 684 ly_err_clean(ly_ctx, NULL); in yang_print_errors() 700 struct ly_ctx *yang_ctx_new_setup(bool embedded_modules) in yang_ctx_new_setup() 702 struct ly_ctx *ctx; in yang_ctx_new_setup()
|
/dports/net/libyang/libyang-1.0.240/swig/cpp/src/ |
H A D | Libyang.hpp | 47 Context(struct ly_ctx *ctx, S_Deleter deleter); 145 struct ly_ctx *swig_ctx() {return ctx;}; in swig_ctx() 148 struct ly_ctx *ctx; 152 S_Context create_new_Context(struct ly_ctx *ctx);
|
/dports/net/libyang/libyang-1.0.240/src/user_types/ |
H A D | user_inet_types.c | 69 ip_store_clb(struct ly_ctx *ctx, const char *UNUSED(type_name), const char **value_str, lyd_val *va… in ip_store_clb() 119 ipv4_prefix_store_clb(struct ly_ctx *ctx, const char *UNUSED(type_name), const char **value_str, ly… in ipv4_prefix_store_clb() 203 ipv6_prefix_store_clb(struct ly_ctx *ctx, const char *UNUSED(type_name), const char **value_str, ly… in ipv6_prefix_store_clb() 287 ip_prefix_store_clb(struct ly_ctx *ctx, const char *type_name, const char **value_str, lyd_val *val… in ip_prefix_store_clb()
|