/dports/net/libyang/libyang-1.0.240/tools/lint/ |
H A D | main_ni.c | 486 options_parser = (options_parser & ~LYD_OPT_TYPEMASK) | LYD_OPT_NOTIF; in main_ni() 584 if (autodetection || (options_parser & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF))) { in main_ni() 601 …file && (!autodetection && !(options_parser & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF)))) { in main_ni() 822 options_parser = (options_parser & ~LYD_OPT_TYPEMASK) | LYD_OPT_NOTIF; in main_ni() 823 data_item->type = LYD_OPT_NOTIF; in main_ni() 991 case LYD_OPT_NOTIF: in main_ni()
|
H A D | commands.c | 591 opts = (opts & ~LYD_OPT_TYPEMASK) | LYD_OPT_NOTIF; in parse_data() 608 } else if (opts & (LYD_OPT_RPC | LYD_OPT_NOTIF)) { in parse_data() 628 } else if (opts & (LYD_OPT_RPC | LYD_OPT_NOTIF)) { in parse_data() 789 options = (options & ~LYD_OPT_TYPEMASK) | LYD_OPT_NOTIF; in cmd_data() 933 options = (options & ~LYD_OPT_TYPEMASK) | LYD_OPT_NOTIF; in cmd_xpath()
|
/dports/net/libyang/libyang-1.0.240/tests/data/ |
H A D | test_must_1.1.c | 176 assert_int_equal(lyd_validate(&(st->dt), LYD_OPT_NOTIF, NULL), 1); in test_notif() 181 assert_int_equal(lyd_validate(&(st->dt), LYD_OPT_NOTIF, NULL), 0); in test_notif()
|
H A D | test_parse_print.c | 1113 st->dt = lyd_parse_path(st->ctx, notif, LYD_XML, LYD_OPT_NOTIF, NULL); in test_parse_print_xml() 1136 st->dt = lyd_parse_path(st->ctx, innotif, LYD_XML, LYD_OPT_NOTIF, NULL); in test_parse_print_xml() 1294 st->dt = lyd_parse_path(st->ctx, notif, LYD_JSON, LYD_OPT_NOTIF, NULL); in test_parse_print_json() 1319 st->dt = lyd_parse_path(st->ctx, innotif, LYD_JSON, LYD_OPT_NOTIF, NULL); in test_parse_print_json() 1560 st->dt = lyd_parse_path(st->ctx, notif, LYD_JSON, LYD_OPT_NOTIF, NULL); in test_parse_print_lyb() 1565 st->dt = lyd_parse_mem(st->ctx, str, LYD_LYB, LYD_OPT_NOTIF, NULL); in test_parse_print_lyb() 1589 st->dt = lyd_parse_path(st->ctx, innotif, LYD_JSON, LYD_OPT_NOTIF, NULL); in test_parse_print_lyb() 1594 st->dt = lyd_parse_mem(st->ctx, str, LYD_LYB, LYD_OPT_NOTIF, NULL); in test_parse_print_lyb()
|
H A D | test_defaults.c | 486 assert_int_equal(lyd_validate(&(st->dt), LYD_OPT_NOTIF, NULL), 0); in test_notif_default() 500 assert_int_equal(lyd_validate(&(st->dt), LYD_OPT_NOTIF, NULL), 0); in test_notif_default()
|
/dports/net/libyang/libyang-1.0.240/src/ |
H A D | parser_xml.c | 491 if (!(options & (LYD_OPT_NOTIF | LYD_OPT_NOTIF_FILTER)) || *act_notif) { in xml_parse_data() 589 if (options & (LYD_OPT_RPC | LYD_OPT_NOTIF)) { in lyd_parse_xml() 631 if (options & (LYD_OPT_RPC | LYD_OPT_NOTIF | LYD_OPT_RPCREPLY)) { in lyd_parse_xml() 723 } else if ((options & (LYD_OPT_RPC | LYD_OPT_NOTIF)) && !act_notif) { 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() 705 if (!diter && (options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF))) { in lyv_data_content()
|
H A D | tree_data.h | 507 #define LYD_OPT_NOTIF 0x40 /**< Data represents an event notification data. In case of a neste… macro
|
H A D | tree_data.c | 818 if (!(options & LYD_OPT_NOTIF)) { in lyd_check_mandatory_subtree() 897 } else if (options & LYD_OPT_NOTIF) { in lyd_check_mandatory_tree() 957 } else if (options & (LYD_OPT_RPC | LYD_OPT_NOTIF)) { in lyd_parse_() 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() 8019 } else if (options & (LYD_OPT_NOTIF | LYD_OPT_NOTIF_FILTER)) { in lyd_wd_add() 8075 if (options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF)) { in lyd_defaults_add_unres() 8088 if ((options & LYD_OPT_NOTIF) && !act_notif && ((*root)->schema->nodetype != LYS_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_json.c | 1233 if (!(options & LYD_OPT_NOTIF) || *act_notif) { in json_parse_data() 1588 } else if ((options & (LYD_OPT_RPC | LYD_OPT_NOTIF)) && !act_notif) { in lyd_parse_json()
|
H A D | parser_lyb.c | 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/swig/cpp/examples/ |
H A D | process_notif_tree.cpp | 75 node = ctx->parse_data_mem(data_xml, LYD_XML, LYD_OPT_NOTIF); in main()
|
/dports/net/libyang/libyang-1.0.240/tests/conformance/ |
H A D | test_sec7_14.c | 99 st->node = lyd_parse_path(st->ctx, buf, LYD_XML, LYD_OPT_NOTIF, NULL); in TEST_NOTIFICATION()
|
H A D | test_sec7_5_4.c | 107 option = LYD_OPT_NOTIF; in TEST_MODULE()
|
/dports/net/libyang/libyang-1.0.240/tests/internal/ |
H A D | test_lyb.c | 544 …tx, TESTS_DIR"/data/files/ietf-netconf-notifications.json", LYD_JSON, LYD_OPT_NOTIF | LYD_OPT_TRUS… in test_anydata() 582 …st->dt2 = lyd_parse_mem(st->ctx, st->mem, LYD_LYB, LYD_OPT_NOTIF | LYD_OPT_STRICT | LYD_OPT_NOEXTD… in test_anydata() 587 …tx, TESTS_DIR"/data/files/ietf-netconf-notifications.json", LYD_JSON, LYD_OPT_NOTIF | LYD_OPT_TRUS… in test_anydata()
|