Home
last modified time | relevance | path

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

/dports/net/libyang/libyang-1.0.240/tests/data/
H A Dtest_autodel.c58 st->dt = lyd_new(NULL, mod, "c"); in setup_f()
104 node = lyd_new(st->dt, NULL, "b1"); in test_atob()
119 node = lyd_new(st->dt, NULL, "b1"); in test_btoa()
147 st->aux = lyd_new(NULL, st->dt->schema->module, "c"); in test_insert_fail()
149 node = lyd_new(st->aux, NULL, "b1"); in test_insert_fail()
169 st->aux = lyd_new(NULL, st->dt->schema->module, "c"); in test_insert_correct()
171 node = lyd_new(st->aux, NULL, "b1"); in test_insert_correct()
H A Dtest_when.c179 st->dt = lyd_new(NULL, st->mod, "top"); in test_insert()
183 node = lyd_new(st->dt, NULL, "b"); in test_insert()
199 st->dt = lyd_new(NULL, st->mod, "top"); in test_insert_noautodel()
203 node = lyd_new(st->dt, NULL, "b"); in test_insert_noautodel()
214 st->dt = lyd_new(NULL, st->mod, "top"); in test_insert_noautodel()
222 node = lyd_new(st->dt, NULL, "b"); in test_insert_noautodel()
H A Dtest_yang_data_ns.c108 node1 = lyd_new(NULL, st->mod1, "con1"); in test_anydata_ns()
115 node2 = lyd_new(NULL, st->mod2, "con2"); in test_anydata_ns()
H A Dtest_keys.c87 st->dt = lyd_new(NULL, ly_ctx_get_module(st->ctx, "keys", NULL, 1), "l"); in test_keys_correct2()
124 st->dt = lyd_new(NULL, ly_ctx_get_module(st->ctx, "keys", NULL, 1), "l"); in test_keys_missing2()
183 st->dt = lyd_new(NULL, ly_ctx_get_module(st->ctx, "keys", NULL, 1), "l"); in test_keys_inorder2()
H A Dtest_defaults.c235 st->dt = lyd_new(NULL, st->mod, "df"); in test_df1()
238 assert_ptr_not_equal((node = lyd_new(st->dt, NULL, "bar")), NULL); in test_df1()
265 st->dt = lyd_new(NULL, st->mod, "df"); in test_df2()
302 st->dt = lyd_new(NULL, st->mod, "df"); in test_df3()
306 assert_ptr_not_equal((node = lyd_new(st->dt, NULL, "c")), NULL); in test_df3()
353 st->dt = lyd_new(NULL, st->mod, "df"); in test_df4()
/dports/net/libyang/libyang-1.0.240/tests/perf/
H A Daddloop.c50 next = lyd_new(NULL, mod, "ptest1"); in main()
/dports/net/libyang/libyang-1.0.240/tests/api/
H A Dtest_tree_data.c498 new = lyd_new(root, root->child->schema->module, "bar-y"); in test_lyd_new()
884 new = lyd_new(NULL, lyd_node_module(root), "l"); in test_lyd_insert_after()
895 new = lyd_new(NULL, lyd_node_module(root), "l"); in test_lyd_insert_after()
921 root = lyd_new(NULL, module, "l"); in test_lyd_schema_sort()
928 node = lyd_new(NULL, module, "x"); in test_lyd_schema_sort()
1764 new = lyd_new(NULL, old->schema->module, "z"); in test_lyd_validation_dflt_empty_containers()
1785 second = lyd_new(NULL, root->schema->module, "z"); in test_lyd_diff()
1938 st->dt1 = lyd_new(NULL, mod, "cont"); in test_lyd_new_anydata()
1969 st->dt1 = lyd_new(NULL, mod, "cont"); in test_lyd_new_output_anydata()
/dports/net/libyang/libyang-1.0.240/src/
H A Dcontext.c1708 cont = lyd_new(parent, NULL, "deviation"); in ylib_deviation()
1737 item = lyd_new(parent, NULL, "submodule"); in ylib_submodules()
1803 root = lyd_new(NULL, mod, "modules-state"); in ly_ctx_info()
1809 if (!(root_bis = lyd_new(NULL, mod, "yang-library"))) { in ly_ctx_info()
1813 if (!(set_bis = lyd_new(root_bis, NULL, "module-set"))) { in ly_ctx_info()
1831 cont = lyd_new(root, NULL, "module"); in ly_ctx_info()
1881 if (!(cont = lyd_new(set_bis, NULL, "module"))) { in ly_ctx_info()
1885 if (!(cont = lyd_new(set_bis, NULL, "import-only-module"))) { in ly_ctx_info()
1938 if (!(cont = lyd_new(root_bis, NULL, "schema"))) { in ly_ctx_info()
H A Dtree_data.h724 struct lyd_node *lyd_new(struct lyd_node *parent, const struct lys_module *module, const char *name…
H A Dlibyang.h.in725 …* the node name and/or its parent (lyd_new(), \b lyd_new_anydata_*(), lyd_new_leaf(), and their ou…
751 * - lyd_new()
776 … is done on the data tree (via a combination of \b lyd_change_*(), \b lyd_insert*(), \b lyd_new*(),
1053 * - data manipulation (lyd_new(), lyd_insert(), lyd_unlink(), lyd_free() and many other
H A Dtree_data.c1178 lyd_new(struct lyd_node *parent, const struct lys_module *module, const char *name) in lyd_new() function
/dports/net/libyang/libyang-1.0.240/tests/conformance/
H A Dtest_sec7_5_4.c114 rpc = lyd_new(NULL, mod, "rpc_test"); in TEST_MODULE()
H A Dtest_sec7_13_3.c109 rpc = lyd_new(NULL, mod, data_rpc_name[j]); in TEST_RPC_OUTPUT()
/dports/net/libyang/libyang-1.0.240/tests/internal/
H A Dtest_lyb.c558 st->dt1 = lyd_new(NULL, mod, "cont"); in test_anydata()
/dports/net/libyang/libyang-1.0.240/swig/cpp/src/
H A DTree_Data.cpp84 new_node = lyd_new(parent ? parent->node : NULL, module ? module->module : NULL, name); in Data_Node()
/dports/net/libyang/libyang-1.0.240/
H A Dlibyang.dump1134 'lyd_new' => 1,