Home
last modified time | relevance | path

Searched refs:act_notif (Results 1 – 5 of 5) sorted by relevance

/dports/net/libyang/libyang-1.0.240/src/
H A Dparser_xml.c106 struct lyd_node **act_notif, const char *yang_data_name) in xml_parse_data() argument
483 if (!(options & LYD_OPT_RPC) || *act_notif) { in xml_parse_data()
489 *act_notif = *result; in xml_parse_data()
491 if (!(options & (LYD_OPT_NOTIF | LYD_OPT_NOTIF_FILTER)) || *act_notif) { in xml_parse_data()
496 *act_notif = *result; in xml_parse_data()
574 … lyd_node *result = NULL, *iter, *last, *reply_parent = NULL, *reply_top = NULL, *act_notif = NULL; in lyd_parse_xml() local
689 …_data(ctx, xmlelem, reply_parent, result, last, options, unres, &iter, &act_notif, yang_data_name); in lyd_parse_xml()
722 act_notif = reply_parent; in lyd_parse_xml()
723 } else if ((options & (LYD_OPT_RPC | LYD_OPT_NOTIF)) && !act_notif) { in lyd_parse_xml()
751 if (lyd_defaults_add_unres(&result, options, ctx, NULL, 0, data_tree, act_notif, unres, 1)) { in lyd_parse_xml()
[all …]
H A Dparser_json.c892 struct unres_data *unres, struct lyd_node **act_notif, const char *yang_data_name) in json_parse_data() argument
1225 if (!(options & LYD_OPT_RPC) || *act_notif) { in json_parse_data()
1231 *act_notif = result; in json_parse_data()
1233 if (!(options & LYD_OPT_NOTIF) || *act_notif) { in json_parse_data()
1238 *act_notif = result; in json_parse_data()
1434 … lyd_node *result = NULL, *next, *iter, *reply_parent = NULL, *reply_top = NULL, *act_notif = NULL; in lyd_parse_json() local
1520 …ta(ctx, &data[len], NULL, &next, result, iter, &attrs, options, unres, &act_notif, yang_data_name); in lyd_parse_json()
1587 act_notif = reply_parent; in lyd_parse_json()
1588 } else if ((options & (LYD_OPT_RPC | LYD_OPT_NOTIF)) && !act_notif) { in lyd_parse_json()
1619 if (lyd_defaults_add_unres(&result, options, ctx, NULL, 0, data_tree, act_notif, unres, 1)) { in lyd_parse_json()
[all …]
H A Dparser_lyb.c1213 struct lyd_node *node = NULL, *next, *act_notif = NULL; in lyd_parse_lyb() local
1274 LY_TREE_DFS_BEGIN(node, next, act_notif) { in lyd_parse_lyb()
1275 if (act_notif->schema->nodetype & (LYS_RPC | LYS_ACTION | LYS_NOTIF)) { in lyd_parse_lyb()
1278 LY_TREE_DFS_END(node, next, act_notif); in lyd_parse_lyb()
1281 if (lyd_defaults_add_unres(&node, options, ctx, NULL, 0, data_tree, act_notif, unres, 0)) { in lyd_parse_lyb()
H A Dtree_internal.h558 … int mod_count, const struct lyd_node *data_tree, struct lyd_node *act_notif,
H A Dtree_data.c4963 struct lyd_node *root, *next1, *next2, *iter, *act_notif = NULL; in _lyd_validate() local
4999 if (!(options & LYD_OPT_ACT_NOTIF) || act_notif) { in _lyd_validate()
5005 act_notif = iter; in _lyd_validate()
5028 if (!act_notif) { in _lyd_validate()
5075 if (act_notif) { in _lyd_validate()
5076 if (lyd_check_mandatory_tree(act_notif, ctx, modules, mod_count, options)) { in _lyd_validate()
8094 msg_op = act_notif ? act_notif->schema : (*root)->schema; in lyd_defaults_add_unres()
8103 … if (wd && lyd_wd_add((act_notif ? &act_notif : root), ctx, modules, mod_count, unres, options)) { in lyd_defaults_add_unres()
8120 if (act_notif) { in lyd_defaults_add_unres()
8151 assert(act_notif->parent); in lyd_defaults_add_unres()
[all …]