Home
last modified time | relevance | path

Searched refs:LYD_OPT_RPCREPLY (Results 1 – 14 of 14) sorted by relevance

/dports/net/libyang/libyang-1.0.240/tools/lint/
H A Dmain_ni.c484 options_parser = (options_parser & ~LYD_OPT_TYPEMASK) | LYD_OPT_RPCREPLY; in main_ni()
584 if (autodetection || (options_parser & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF))) { in main_ni()
601 …if (oper_file && (!autodetection && !(options_parser & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_N… in main_ni()
811 data_item->type = LYD_OPT_RPCREPLY; in main_ni()
836 if (data_prev && data_prev->type == LYD_OPT_RPCREPLY) { in main_ni()
880 … (options_parser & ~LYD_OPT_TYPEMASK) | LYD_OPT_RPCREPLY, data_item->tree, oper); in main_ni()
883 … (options_parser & ~LYD_OPT_TYPEMASK) | LYD_OPT_RPCREPLY, data_item->tree, oper); in main_ni()
886 } else if ((options_parser & LYD_OPT_TYPEMASK) == LYD_OPT_RPCREPLY) { in main_ni()
988 case LYD_OPT_RPCREPLY: in main_ni()
1001 …lyd_print_file(out, (data_item->type == LYD_OPT_RPCREPLY) ? data_item->tree->child : data_item->tr… in main_ni()
H A Dcommands.c582 opts = (opts & ~LYD_OPT_TYPEMASK) | LYD_OPT_RPCREPLY; in parse_data()
606 if (opts & LYD_OPT_RPCREPLY) { in parse_data()
617 if (opts & LYD_OPT_RPCREPLY) { in parse_data()
787 options = (options & ~LYD_OPT_TYPEMASK) | LYD_OPT_RPCREPLY; in cmd_data()
823 if (options & LYD_OPT_RPCREPLY) { in cmd_data()
931 options = (options & ~LYD_OPT_TYPEMASK) | LYD_OPT_RPCREPLY; in cmd_xpath()
/dports/net/libyang/libyang-1.0.240/src/
H A Dparser_xml.c45 } else if (result->nodetype == LYS_INPUT && (options & LYD_OPT_RPCREPLY)) { in xml_data_search_schemanode()
587 if (!(*root) && !(options & LYD_OPT_RPCREPLY)) { in lyd_parse_xml()
593 } else if (!(options & LYD_OPT_RPCREPLY)) { in lyd_parse_xml()
605 if (options & LYD_OPT_RPCREPLY) { in lyd_parse_xml()
631 if (options & (LYD_OPT_RPC | LYD_OPT_NOTIF | LYD_OPT_RPCREPLY)) { in lyd_parse_xml()
720 if ((options & LYD_OPT_RPCREPLY) && (rpc_act->schema->nodetype != LYS_RPC)) { in lyd_parse_xml()
H A Dvalidation.c72 && (!(options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF)) || op)) { in lyv_data_context()
99 … if ((options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF | LYD_OPT_NOTIF_FILTER)) && !op) { in lyv_data_context()
118 (options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY)) && (node->validity & LYD_VAL_MAND) && op) { in lyv_data_context()
705 if (!diter && (options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF))) { in lyv_data_content()
H A Dparser_json.c1034 } else if ((options & LYD_OPT_RPCREPLY) && (schema->nodetype == LYS_OUTPUT)) { in json_parse_data()
1470 assert(options & LYD_OPT_RPCREPLY); in lyd_parse_json()
1579 if ((options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY))) { in lyd_parse_json()
1585 if ((options & LYD_OPT_RPCREPLY) && (rpc_act->schema->nodetype != LYS_RPC)) { in lyd_parse_json()
H A Dtree_data.h506 #define LYD_OPT_RPCREPLY 0x20 /**< Data represents RPC or action output parameters (maps to NETCO… macro
H A Dtree_data.c905 } else if (options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY)) { in lyd_check_mandatory_tree()
955 if (options & LYD_OPT_RPCREPLY) { in lyd_parse_()
982 if ((options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY)) && lyd_schema_sort(result, 1)) { in lyd_parse_()
1001 if (options & LYD_OPT_RPCREPLY) { in lyd_parse_data_()
1008 if (options & (LYD_OPT_RPC | LYD_OPT_NOTIF | LYD_OPT_RPCREPLY)) { in lyd_parse_data_()
5159 } else if (options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF)) { in lyd_validate()
8027 } else if (options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY)) { in lyd_wd_add()
8075 if (options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF)) { in lyd_defaults_add_unres()
8115 if (data_tree && (options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF))) { in lyd_defaults_add_unres()
8195 if (options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF)) { in lyd_defaults_add_unres()
[all …]
H A Dparser_lyb.c947 if ((sibling->nodetype == LYS_OUTPUT) && (options & LYD_OPT_RPCREPLY)) { in lyb_parse_schema_hash()
1273 if (options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF)) { in lyd_parse_lyb()
H A Dlibyang.h.in863 …* - #LYD_OPT_RPC, #LYD_OPT_RPCREPLY, #LYD_OPT_NOTIF - the default nodes from the particular subtre…
/dports/net/libyang/libyang-1.0.240/tests/data/
H A Dtest_must_1.1.c154 assert_int_equal(lyd_validate(&(st->dt2), LYD_OPT_RPCREPLY, NULL), 1); in test_inout()
159 assert_int_equal(lyd_validate(&(st->dt2), LYD_OPT_RPCREPLY, NULL), 0); in test_inout()
H A Dtest_parse_print.c1037 st->dt = lyd_parse_path(st->ctx, rpcreply, LYD_XML, LYD_OPT_RPCREPLY, st->rpc_act, NULL); in test_parse_print_xml()
1088 st->dt = lyd_parse_path(st->ctx, actreply, LYD_XML, LYD_OPT_RPCREPLY, st->rpc_act, NULL); in test_parse_print_xml()
1218 st->dt = lyd_parse_path(st->ctx, rpcreply, LYD_JSON, LYD_OPT_RPCREPLY, st->rpc_act, NULL); in test_parse_print_json()
1269 st->dt = lyd_parse_path(st->ctx, actreply, LYD_JSON, LYD_OPT_RPCREPLY, st->rpc_act, NULL); in test_parse_print_json()
1466 st->dt = lyd_parse_path(st->ctx, rpcreply, LYD_JSON, LYD_OPT_RPCREPLY, st->rpc_act, NULL); in test_parse_print_lyb()
1471 st->dt = lyd_parse_mem(st->ctx, str, LYD_LYB, LYD_OPT_RPCREPLY, st->rpc_act, NULL); in test_parse_print_lyb()
1529 st->dt = lyd_parse_path(st->ctx, actreply, LYD_JSON, LYD_OPT_RPCREPLY, st->rpc_act, NULL); in test_parse_print_lyb()
1534 st->dt = lyd_parse_mem(st->ctx, str, LYD_LYB, LYD_OPT_RPCREPLY, st->rpc_act, NULL); in test_parse_print_lyb()
H A Dtest_defaults.c438 assert_int_equal(lyd_validate(&(st->dt), LYD_OPT_RPCREPLY, NULL), 0); in test_rpc_output_default()
452 assert_int_equal(lyd_validate(&(st->dt), LYD_OPT_RPCREPLY, NULL), 0); in test_rpc_output_default()
/dports/net/libyang/libyang-1.0.240/tests/conformance/
H A Dtest_sec7_5_4.c113 option = LYD_OPT_RPCREPLY; in TEST_MODULE()
H A Dtest_sec7_13_3.c110 st->node = lyd_parse_path(st->ctx, buf, LYD_XML, LYD_OPT_RPCREPLY, rpc, NULL); in TEST_RPC_OUTPUT()