Home
last modified time | relevance | path

Searched refs:LYD_OPT_NOTIF (Results 1 – 16 of 16) sorted by relevance

/dports/net/libyang/libyang-1.0.240/tools/lint/
H A Dmain_ni.c486 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 Dcommands.c591 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 Dtest_must_1.1.c176 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 Dtest_parse_print.c1113 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 Dtest_defaults.c486 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 Dparser_xml.c491 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 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()
705 if (!diter && (options & (LYD_OPT_RPC | LYD_OPT_RPCREPLY | LYD_OPT_NOTIF))) { in lyv_data_content()
H A Dtree_data.h507 #define LYD_OPT_NOTIF 0x40 /**< Data represents an event notification data. In case of a neste… macro
H A Dtree_data.c818 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 Dparser_json.c1233 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 Dparser_lyb.c1273 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/swig/cpp/examples/
H A Dprocess_notif_tree.cpp75 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 Dtest_sec7_14.c99 st->node = lyd_parse_path(st->ctx, buf, LYD_XML, LYD_OPT_NOTIF, NULL); in TEST_NOTIFICATION()
H A Dtest_sec7_5_4.c107 option = LYD_OPT_NOTIF; in TEST_MODULE()
/dports/net/libyang/libyang-1.0.240/tests/internal/
H A Dtest_lyb.c544 …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()