/dports/net/libyang/libyang-1.0.240/src/ |
H A D | tree_internal.h | 82 struct lys_node *first_sibling; 132 LYB_HASH lyb_hash(struct lys_node *sibling, uint8_t collision_id); 223 int lys_node_addchild(struct lys_node *parent, struct lys_module *module, struct lys_node *child, i… 249 int lys_check_id(struct lys_node *node, struct lys_node *parent, struct lys_module *module); 257 int lys_has_xpath(const struct lys_node *node); 277 struct lys_node *lys_node_dup(struct lys_module *module, struct lys_node *parent, const struct lys_… 366 void lys_node_unlink(struct lys_node *node); 377 void lys_node_free(struct ly_ctx *ctx, struct lys_node *node, 483 int nam_len, LYS_NODE type, const struct lys_node **ret); 533 int lys_ingrouping(const struct lys_node *node); [all …]
|
H A D | tree_schema.h | 162 if (lys_parent((struct lys_node *)(ELEM)) == lys_parent((struct lys_node *)(START))) { \ 1209 struct lys_node { struct 1529 struct lys_node *child; /**< always NULL */ 1849 struct lys_node *target; /**< pointer to the target node */ 2235 const struct lys_node *lys_is_disabled(const struct lys_node *node, int recursive); 2275 const struct lys_node *lys_getnext(const struct lys_node *last, const struct lys_node *parent, 2372 char *lys_path(const struct lys_node *node, int options); 2384 char *lys_data_path(const struct lys_node *node); 2411 struct lys_node *lys_parent(const struct lys_node *node); 2422 struct lys_module *lys_node_module(const struct lys_node *node); [all …]
|
H A D | resolve.h | 84 struct lys_node *list; 167 int inherit_config_flag(struct lys_node *node, int flags, int clear); 177 int no_innerlist, const struct lys_node **ret); 179 …e_default_schema_nodeid(const char *nodeid, const struct lys_node *start, const struct lys_node **… 182 const struct lys_node **ret); 184 const struct lys_node *resolve_json_nodeid(const char *nodeid, const struct ly_ctx *ctx, const stru… 192 const struct lys_node *parent, struct lys_tpdf **ret); 194 int resolve_unique(struct lys_node *parent, const char *uniq_str_path, uint8_t *trg_type); 196 void resolve_when_ctx_snode(const struct lys_node *schema, struct lys_node **ctx_snode, 204 int resolve_applies_when(const struct lys_node *schema, int mode, const struct lys_node *stop); [all …]
|
H A D | printer.h | 98 void (*clb_print_grouping)(struct lyout*, const struct lys_node*, int*), 100 void (*clb_print_choice)(struct lyout*, const struct lys_node*, int*), 101 void (*clb_print_leaf)(struct lyout*, const struct lys_node*, int*), 103 void (*clb_print_list)(struct lyout*, const struct lys_node*, int*), 104 void (*clb_print_anydata)(struct lyout*, const struct lys_node*, int*), 105 void (*clb_print_case)(struct lyout*, const struct lys_node*, int*), 106 void (*clb_print_notif)(struct lyout*, const struct lys_node*, int*), 107 void (*clb_print_rpc)(struct lyout*, const struct lys_node*, int*), 108 void (*clb_print_action)(struct lyout*, const struct lys_node*, int*), 109 void (*clb_print_input)(struct lyout*, const struct lys_node*, int*), [all …]
|
H A D | tree_schema.c | 52 struct lys_node *parent = (struct lys_node *)node; in lys_is_key() 80 API const struct lys_node * 261 API const struct lys_node * 552 struct lys_node *last = (struct lys_node *)lastgrp; in lys_get_next_grouping() 553 struct lys_node *next; in lys_get_next_grouping() 3052 static struct lys_node * 3594 struct lys_node * 3657 lys_node_switch(struct lys_node *node1, struct lys_node *node2) in lys_node_switch() 4163 API struct lys_node * 4192 struct lys_node ** [all …]
|
H A D | parser_yang.h | 59 struct lys_node **node; 100 void *yang_read_when(struct lys_module *module, struct lys_node *node, enum yytokentype type, char … 113 void *yang_read_node(struct lys_module *module, struct lys_node *parent, struct lys_node **root, 128 int yang_check_type(struct lys_module *module, struct lys_node *parent, struct yang_type *typ, stru… 155 void *yang_read_typedef(struct lys_module *module, struct lys_node *parent, char *value); 157 int yang_read_augment(struct lys_module *module, struct lys_node *parent, struct lys_node_augment *… 183 struct lys_node *node, LY_STMT stmt); 212 const char *data, unsigned int size_data, struct lys_node **node);
|
H A D | parser.h | 113 int fill_yin_type(struct lys_module *module, struct lys_node *parent, struct lyxml_elem *yin, struc… 118 const struct lys_node *node); 132 int lyp_is_rpc_action(struct lys_node *node); 143 …_ctx *ctx, const char *id, enum LY_IDENT type, struct lys_module *module, struct lys_node *parent); 145 int lyp_check_mandatory_augment(struct lys_node_augment *node, const struct lys_node *target); 146 int lyp_check_mandatory_choice(struct lys_node *node); 159 int lyp_deviate_inherit_config_r(struct lys_node *node); 162 const struct lys_node *lyp_get_yang_data_template(const struct lys_module *module, const char *yang…
|
H A D | xpath.h | 216 struct lys_node *snode; 293 int lyxp_atomize(const char *expr, const struct lys_node *cur_snode, enum lyxp_node_type cur_snode_… 294 struct lyxp_set *set, int options, const struct lys_node **ctx_snode); 316 int lyxp_node_atomize(const struct lys_node *node, struct lyxp_set *set, int set_ext_dep_flags); 325 int lyxp_node_check_syntax(const struct lys_node *node);
|
H A D | printer_tree.c | 77 struct lys_node *cur, *cur2; in tree_sibling_is_valid_child() 89 LY_TREE_FOR((struct lys_node *)(including ? node : node->next), cur) { in tree_sibling_is_valid_child() 152 tree_next_indent(int level, const struct lys_node *node, const struct lys_node *aug_parent, tp_opts… in tree_next_indent() 182 tree_get_max_name_len(const struct lys_node *sibling, const struct lys_node *aug_parent, int type_m… in tree_get_max_name_len() 185 const struct lys_node *sub; in tree_get_max_name_len() 250 tree_leaf_is_mandatory(const struct lys_node *node) in tree_leaf_is_mandatory() 252 const struct lys_node *parent; in tree_leaf_is_mandatory() 505 struct lys_node *sub; in tree_print_snode() 790 const struct lys_node *parent; in tree_print_subtree() 870 struct lys_node *node = NULL, *data, *aug; in tree_print_model() [all …]
|
H A D | printer_lyb.c | 39 struct lys_node *val1 = *(struct lys_node **)val1_p; in lyb_ptr_equal_cb() 40 struct lys_node *val2 = *(struct lys_node **)val2_p; in lyb_ptr_equal_cb() 55 struct lys_node **col_node; in lyb_hash_sequence_check() 87 lyb_check_augment_collision(struct hash_table *ht, struct lys_node *aug1, struct lys_node *aug2) in lyb_check_augment_collision() 89 struct lys_node *iter1 = NULL, *iter2 = NULL; in lyb_check_augment_collision() 128 lyb_check_augments(struct lys_node *parent, struct hash_table *ht) in lyb_check_augments() 130 struct lys_node *sibling = NULL, **augs = NULL; in lyb_check_augments() 186 struct lys_node *parent; in lyb_hash_siblings() 275 lyb_hash_find(struct hash_table *ht, struct lys_node *node) in lyb_hash_find() 900 struct lys_node *first_sibling, *parent; in lyb_print_schema_hash() [all …]
|
H A D | printer.c | 497 void (*clb_print_choice)(struct lyout*, const struct lys_node*, int*), in lys_print_target() 498 void (*clb_print_leaf)(struct lyout*, const struct lys_node*, int*), in lys_print_target() 500 void (*clb_print_list)(struct lyout*, const struct lys_node*, int*), in lys_print_target() 502 void (*clb_print_case)(struct lyout*, const struct lys_node*, int*), in lys_print_target() 503 void (*clb_print_notif)(struct lyout*, const struct lys_node*, int*), in lys_print_target() 504 void (*clb_print_rpc)(struct lyout*, const struct lys_node*, int*), in lys_print_target() 506 void (*clb_print_input)(struct lyout*, const struct lys_node*, int*), in lys_print_target() 511 struct lys_node *target = NULL; in lys_print_target() 544 (const struct lys_node **)&target); in lys_print_target() 650 0, (const struct lys_node **)&target); in lys_print_target() [all …]
|
H A D | log.c | 592 struct lys_node *sparent = NULL; in ly_vlog_build_path() 620 sparent = lys_parent((struct lys_node *)elem); in ly_vlog_build_path() 625 prefix = lys_node_module((struct lys_node *)elem)->name; in ly_vlog_build_path() 635 name = ((struct lys_node *)elem)->name; in ly_vlog_build_path() 640 if (((struct lys_node *)elem)->nodetype == LYS_GROUPING) { in ly_vlog_build_path() 645 } else if (((struct lys_node *)elem)->nodetype == LYS_EXT) { in ly_vlog_build_path() 650 prefix = lys_node_module((struct lys_node *)elem)->name; in ly_vlog_build_path() 653 name = ((struct lys_node *)elem)->name; in ly_vlog_build_path() 656 if (((struct lys_node *)elem)->nodetype == LYS_EXT) { in ly_vlog_build_path() 668 sparent = ((struct lys_node *)elem)->parent; in ly_vlog_build_path() [all …]
|
H A D | printer_info.c | 65 info_print_snode(struct lyout *out, const struct lys_node *parent, const struct lys_node *node, con… in info_print_snode() 647 struct lys_node *node; in info_print_data_mainmod_with_include() 811 info_print_snode(out, (struct lys_node *)cont, cont->child, "Children:"); in info_print_container() 833 info_print_snode(out, (struct lys_node *)choice, choice->child, "Cases:"); in info_print_choice() 890 info_print_snode(out, (struct lys_node *)list, list->child, "Children:"); in info_print_list() 920 info_print_snode(out, (struct lys_node *)group, group->child, "Children:"); in info_print_grouping() 936 info_print_snode(out, (struct lys_node *)cas, cas->child, "Children:"); in info_print_case() 950 info_print_snode(out, (struct lys_node *)input, input->child, "Children:"); in info_print_input() 981 info_print_snode(out, (struct lys_node *)ntf, ntf->child, "Params:"); in info_print_notif() 997 info_print_snode(out, (struct lys_node *)rpc, rpc->child, "Data:"); in info_print_rpc() [all …]
|
H A D | printer_json_schema.c | 230 struct lys_node *node; in jsons_print_type_() 778 struct lys_node *node; in jsons_print_data_() 820 struct lys_node *node; in jsons_print_nodes_uses_() 841 struct lys_node *node; in jsons_print_nodes_() 866 jsons_print_groupings(struct lyout *out, struct lys_node *data, int *first) in jsons_print_groupings() 872 jsons_print_rpcs(struct lyout *out, struct lys_node *data, int *first) in jsons_print_rpcs() 878 jsons_print_actions(struct lyout *out, struct lys_node *data, int *first) in jsons_print_actions() 884 jsons_print_notifs(struct lyout *out, struct lys_node *data, int *first) in jsons_print_notifs() 1213 jsons_print_rpc(struct lyout *out, const struct lys_node *node, int *first) in jsons_print_rpc() 1215 const struct lys_node *child; in jsons_print_rpc() [all …]
|
H A D | parser_yang.c | 27 static int yang_check_nodes(struct lys_module *module, struct lys_node *parent, struct lys_node *no… 407 yang_read_node(struct lys_module *module, struct lys_node *parent, struct lys_node **root, in yang_read_node() 410 struct lys_node *node, **child; in yang_read_node() 644 struct lys_node *siter; in yang_check_type() 1534 struct lys_node *node; in yang_fill_deviate_default() 1774 struct lys_node *parent; in yang_check_deviate_mandatory() 2508 check_status_flag(struct lys_node *node, struct lys_node *parent) in check_status_flag() 2639 struct lys_node *node = NULL; in yang_parse_ext_substatement() 3955 struct lys_node *node; in yang_check_list() 4148 struct lys_node *child; in yang_check_augment() [all …]
|
H A D | tree_data.h | 177 struct lys_node *schema; /**< pointer to the schema definition of this node */ 218 …struct lys_node *schema; /**< pointer to the schema definition of this node which is ::lys… 279 …struct lys_node *schema; /**< pointer to the schema definition of this node which is ::lys… 1163 struct ly_set *lyd_find_instance(const struct lyd_node *data, const struct lys_node *schema); 1214 int lyd_find_sibling_val(const struct lyd_node *siblings, const struct lys_node *schema, const char… 1305 int lyd_validate_value(struct lys_node *node, const char *value); 1323 int lyd_value_type(struct lys_node *node, const char *value, struct lys_type **type);
|
/dports/net/frr7/frr-frr-7.5.1/lib/ |
H A D | yang.h | 111 typedef int (*yang_iterate_cb)(const struct lys_node *snode, void *arg); 183 extern int yang_snodes_iterate_subtree(const struct lys_node *snode, 242 extern void yang_snode_get_path(const struct lys_node *snode, 256 extern struct lys_node *yang_snode_real_parent(const struct lys_node *snode); 267 extern struct lys_node *yang_snode_parent_list(const struct lys_node *snode); 279 extern bool yang_snode_is_typeless_data(const struct lys_node *snode); 290 extern const char *yang_snode_get_default(const struct lys_node *snode); 303 extern const struct lys_type *yang_snode_get_type(const struct lys_node *snode);
|
H A D | yang.c | 149 int yang_snodes_iterate_subtree(const struct lys_node *snode, in yang_snodes_iterate_subtree() 152 struct lys_node *child; in yang_snodes_iterate_subtree() 232 struct lys_node *snode; in yang_snodes_iterate_module() 243 (const struct lys_node *)&module->augment[i], cb, flags, in yang_snodes_iterate_module() 287 struct lys_node *yang_snode_real_parent(const struct lys_node *snode) in yang_snode_real_parent() 289 struct lys_node *parent = snode->parent; in yang_snode_real_parent() 311 struct lys_node *yang_snode_parent_list(const struct lys_node *snode) in yang_snode_parent_list() 313 struct lys_node *parent = snode->parent; in yang_snode_parent_list() 491 struct lys_node *snode; in yang_dnode_is_default() 529 struct lys_node *snode; in yang_dnode_is_default_recursive() [all …]
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/lib/ |
H A D | yang.h | 111 typedef int (*yang_iterate_cb)(const struct lys_node *snode, void *arg); 183 extern int yang_snodes_iterate_subtree(const struct lys_node *snode, 242 extern void yang_snode_get_path(const struct lys_node *snode, 256 extern struct lys_node *yang_snode_real_parent(const struct lys_node *snode); 267 extern struct lys_node *yang_snode_parent_list(const struct lys_node *snode); 279 extern bool yang_snode_is_typeless_data(const struct lys_node *snode); 290 extern const char *yang_snode_get_default(const struct lys_node *snode); 303 extern const struct lys_type *yang_snode_get_type(const struct lys_node *snode);
|
H A D | yang.c | 149 int yang_snodes_iterate_subtree(const struct lys_node *snode, in yang_snodes_iterate_subtree() 152 struct lys_node *child; in yang_snodes_iterate_subtree() 232 struct lys_node *snode; in yang_snodes_iterate_module() 243 (const struct lys_node *)&module->augment[i], cb, flags, in yang_snodes_iterate_module() 287 struct lys_node *yang_snode_real_parent(const struct lys_node *snode) in yang_snode_real_parent() 289 struct lys_node *parent = snode->parent; in yang_snode_real_parent() 311 struct lys_node *yang_snode_parent_list(const struct lys_node *snode) in yang_snode_parent_list() 313 struct lys_node *parent = snode->parent; in yang_snode_parent_list() 491 struct lys_node *snode; in yang_dnode_is_default() 529 struct lys_node *snode; in yang_dnode_is_default_recursive() [all …]
|
/dports/net/libyang/libyang-1.0.240/src/extensions/ |
H A D | nacm.c | 48 if (((struct lys_node*)parent)->nodetype & in nacm_position() 67 int nacm_inherit(struct lys_ext_instance *UNUSED(ext), struct lys_node *node) in nacm_inherit() 103 extlist = ((struct lys_node *)ext->parent)->ext; in nacm_cardinality() 104 extsize = ((struct lys_node *)ext->parent)->ext_size; in nacm_cardinality() 120 path = lys_path((struct lys_node *)(ext->parent), LYS_PATH_FIRST_PREFIX); in nacm_cardinality()
|
H A D | yangdata.c | 29 int check_node(struct lys_node *node); 57 int check_choice(struct lys_node *root) { in check_choice() 58 struct lys_node *node, *next; in check_choice() 77 int check_node(struct lys_node *node) { in check_node() 120 void fix_schema(struct lys_node *root, struct ly_ctx *ctx) { in fix_schema() 121 struct lys_node *node, *next; in fix_schema() 176 struct lys_node **root; in yang_data_result()
|
/dports/net/libyang/libyang-1.0.240/swig/cpp/src/ |
H A D | Tree_Schema.hpp | 604 struct lys_node *node; 637 struct lys_node *node; 666 struct lys_node *node; 702 struct lys_node *node; 746 struct lys_node *node; 795 struct lys_node *node; 826 struct lys_node *node; 861 struct lys_node *node; 890 struct lys_node *node; 917 struct lys_node *node; [all …]
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/tools/ |
H A D | gen_northbound_callbacks.c | 121 static void generate_callback_name(struct lys_node *snode, in generate_callback_name() 156 static int generate_prototypes(const struct lys_node *snode, void *arg) in generate_prototypes() 178 generate_callback_name((struct lys_node *)snode, cb->operation, in generate_prototypes() 216 static int generate_callbacks(const struct lys_node *snode, void *arg) in generate_callbacks() 253 generate_callback_name((struct lys_node *)snode, cb->operation, in generate_callbacks() 261 static int generate_nb_nodes(const struct lys_node *snode, void *arg) in generate_nb_nodes() 298 generate_callback_name((struct lys_node *)snode, cb->operation, in generate_nb_nodes()
|
/dports/net/frr7/frr-frr-7.5.1/tools/ |
H A D | gen_northbound_callbacks.c | 121 static void generate_callback_name(struct lys_node *snode, in generate_callback_name() 156 static int generate_prototypes(const struct lys_node *snode, void *arg) in generate_prototypes() 178 generate_callback_name((struct lys_node *)snode, cb->operation, in generate_prototypes() 216 static int generate_callbacks(const struct lys_node *snode, void *arg) in generate_callbacks() 253 generate_callback_name((struct lys_node *)snode, cb->operation, in generate_callbacks() 261 static int generate_nb_nodes(const struct lys_node *snode, void *arg) in generate_nb_nodes() 298 generate_callback_name((struct lys_node *)snode, cb->operation, in generate_nb_nodes()
|