/dports/net/libyang/libyang-1.0.240/tools/lint/ |
H A D | main_ni.c | 484 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 D | commands.c | 582 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 D | parser_xml.c | 45 } 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 D | validation.c | 72 && (!(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 D | parser_json.c | 1034 } 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 D | tree_data.h | 506 #define LYD_OPT_RPCREPLY 0x20 /**< Data represents RPC or action output parameters (maps to NETCO… macro
|
H A D | tree_data.c | 905 } 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 D | parser_lyb.c | 947 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 D | libyang.h.in | 863 …* - #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 D | test_must_1.1.c | 154 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 D | test_parse_print.c | 1037 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 D | test_defaults.c | 438 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 D | test_sec7_5_4.c | 113 option = LYD_OPT_RPCREPLY; in TEST_MODULE()
|
H A D | test_sec7_13_3.c | 110 st->node = lyd_parse_path(st->ctx, buf, LYD_XML, LYD_OPT_RPCREPLY, rpc, NULL); in TEST_RPC_OUTPUT()
|