/dports/devel/clixon/clixon-4.8.0/lib/src/ |
H A D | clixon_yang_module.c | 119 yang_stmt *yspec; in yang_modules_init() local 121 yspec = clicon_dbspec_yang(h); in yang_modules_init() 151 yang_stmt *yspec; in yang_modules_revision() local 156 yspec = clicon_dbspec_yang(h); in yang_modules_revision() 171 yang_stmt *yspec, in yms_build() argument 286 yang_stmt *yspec, in yang_modules_state_get() argument 401 yang_stmt *yspec; in mod_ns_upgrade() local 411 yspec = clicon_dbspec_yang(h); in mod_ns_upgrade() 500 yang_stmt *yspec; in yang_find_module_by_prefix() local 503 if ((yspec = ys_spec(ys)) == NULL){ in yang_find_module_by_prefix() [all …]
|
H A D | clixon_yang_parse_lib.c | 111 yang_stmt *yspec, in ys_grouping_module_resolve() argument 167 yang_stmt *yspec; in ys_grouping_resolve() local 170 yspec = ys_spec(yuses); in ys_grouping_resolve() 661 if (yspec == NULL){ in yang_parse_str() 709 yang_stmt *yspec) in yang_parse_file() argument 872 yang_stmt *yspec) in yang_parse_filename() argument 911 yang_stmt *yspec) in yang_parse_module() argument 1188 yspec = ys_spec(yn); in ys_visit() 1298 yang_stmt *yspec, in yang_parse_post() argument 1311 if (yang_parse_recurse(h, yang_child_i(yspec, i), yspec) < 0) in yang_parse_post() [all …]
|
H A D | clixon_datastore_read.c | 261 yang_stmt *yspec, in text_read_modstate() argument 365 yang_stmt *yspec) in disable_nacm_on_empty() argument 421 yang_stmt *yspec, in xmldb_readfile() argument 527 yang_stmt *yspec; in xmldb_get_nocache() local 537 if ((yspec = clicon_dbspec_yang(h)) == NULL){ in xmldb_get_nocache() 580 if (disable_nacm_on_empty(xt, yspec) < 0) in xmldb_get_nocache() 633 yang_stmt *yspec; in xmldb_get_cache() local 644 if ((yspec = clicon_dbspec_yang(h)) == NULL){ in xmldb_get_cache() 727 if (disable_nacm_on_empty(x1t, yspec) < 0) in xmldb_get_cache() 772 yang_stmt *yspec; in xmldb_get_zerocopy() local [all …]
|
H A D | clixon_xml_io.c | 451 yang_stmt *yspec, in _xml_parse() argument 475 xy.xy_yspec = yspec; in _xml_parse() 516 if ((ret = xml_bind_yang(x, YB_MODULE, yspec, xerr)) < 0) in _xml_parse() 527 if ((ret = xml_bind_yang_rpc(x, yspec, xerr)) < 0) in _xml_parse() 595 yang_stmt *yspec, in clixon_xml_parse_file() argument 616 if (yb == YB_MODULE && yspec == NULL){ in clixon_xml_parse_file() 645 if ((ret = _xml_parse(ptr, yb, yspec, *xt, xerr)) < 0) in clixon_xml_parse_file() 700 yang_stmt *yspec, in clixon_xml_parse_string() argument 708 if (yb == YB_MODULE && yspec == NULL){ in clixon_xml_parse_string() 716 return _xml_parse(str, yb, yspec, *xt, xerr); in clixon_xml_parse_string() [all …]
|
H A D | clixon_json.c | 307 yang_stmt *yspec; in json2xml_decode_identityref() local 313 yspec = ys_spec(y); in json2xml_decode_identityref() 469 yang_stmt *yspec; in xml2json_encode_identityref() local 474 yspec = ys_spec(yp); in xml2json_encode_identityref() 1134 json_xmlns_translate(yang_stmt *yspec, in json_xmlns_translate() argument 1200 yang_stmt *yspec, in _json_parse() argument 1233 if (yspec && xml_prefix(x) == NULL in _json_parse() 1270 if ((ret = xml_bind_yang(x, yb, yspec, xerr)) < 0) in _json_parse() 1342 yang_stmt *yspec, in clixon_json_parse_string() argument 1355 return _json_parse(str, yb, yspec, *xt, xerr); in clixon_json_parse_string() [all …]
|
H A D | clixon_options.c | 203 yang_stmt *yspec, in parse_configfile_one() argument 219 if ((ret = clixon_xml_parse_file(fd, yspec?YB_MODULE:YB_NONE, yspec, NULL, &xt, &xerr)) < 0) in parse_configfile_one() 275 yang_stmt *yspec, in parse_configfile() argument 312 if (parse_configfile_one(filename, yspec, &xt) < 0) in parse_configfile() 332 if (parse_configfile_one(filename1, yspec, &xe) < 0) in parse_configfile() 476 yang_stmt *yspec = NULL; in clicon_options_main() local 480 if ((yspec = yspec_new()) == NULL) in clicon_options_main() 537 if (clicon_config_yang_set(h, yspec) < 0) in clicon_options_main() 539 yspec = NULL; in clicon_options_main() 546 if (yspec) in clicon_options_main() [all …]
|
H A D | clixon_xml_bind.c | 236 yang_stmt *yspec, in populate_self_top() argument 249 if (yspec == NULL){ in populate_self_top() 255 if (ys_module_by_xml(yspec, xt, &ymod) < 0) in populate_self_top() 352 yang_stmt *yspec, in xml_bind_yang() argument 363 if ((ret = xml_bind_yang0(xc, yb, yspec, xerr)) < 0) in xml_bind_yang() 463 yang_stmt *yspec, in xml_bind_yang0() argument 473 if ((ret = populate_self_top(xt, yspec, xerr)) < 0) in xml_bind_yang0() 530 yang_stmt *yspec, in xml_bind_yang_rpc() argument 561 if (ys_module_by_xml(yspec, x, &ymod) < 0) in xml_bind_yang_rpc() 634 yang_stmt *yspec, in xml_bind_yang_rpc_reply() argument [all …]
|
/dports/devel/clixon/clixon-4.8.0/apps/netconf/ |
H A D | netconf_main.c | 107 yang_stmt *yspec) in netconf_rpc_message() argument 194 yang_stmt *yspec) in netconf_input_packet() argument 258 yang_stmt *yspec; in netconf_input_frame() local 263 yspec = clicon_dbspec_yang(h); in netconf_input_frame() 435 yang_stmt *yspec; in netconf_terminate() local 443 yspec_free(yspec); in netconf_terminate() 445 yspec_free(yspec); in netconf_terminate() 509 yang_stmt *yspec = NULL; in main() local 651 if ((yspec = yspec_new()) == NULL) in main() 653 clicon_dbspec_yang_set(h, yspec); in main() [all …]
|
/dports/devel/clixon/clixon-4.8.0/apps/backend/ |
H A D | backend_main.c | 90 yang_stmt *yspec; in backend_terminate() local 113 yspec_free(yspec); in backend_terminate() 115 yspec_free(yspec); in backend_terminate() 117 yspec_free(yspec); in backend_terminate() 185 yang_stmt *yspec = NULL; in nacm_load_external() local 208 if ((yspec = yspec_new()) == NULL) in nacm_load_external() 455 yang_stmt *yspec = NULL; in main() local 733 if ((yspec = yspec_new()) == NULL) in main() 735 clicon_dbspec_yang_set(h, yspec); in main() 751 yspec) < 0) in main() [all …]
|
H A D | backend_client.c | 169 yang_stmt *yspec, in client_get_capabilities() argument 211 yang_stmt *yspec, in client_get_streams() argument 312 yang_stmt *yspec; in client_statedata() local 319 if ((yspec = clicon_dbspec_yang(h)) == NULL){ in client_statedata() 410 yang_stmt *yspec, in client_get_config_only() argument 487 yang_stmt *yspec; in from_client_get_config() local 494 if ((yspec = clicon_dbspec_yang(h)) == NULL){ in from_client_get_config() 582 yang_stmt *yspec; in from_client_edit_config() local 1043 yang_stmt *yspec; in from_client_get() local 1590 yang_stmt *yspec; in from_client_msg() local [all …]
|
H A D | backend_commit.c | 92 yang_stmt *yspec, in generic_validate() argument 189 yang_stmt *yspec; in startup_common() local 208 if ((yspec = clicon_dbspec_yang(h)) == NULL){ in startup_common() 292 if ((ret = generic_validate(h, yspec, td, &xret)) < 0) in startup_common() 464 yang_stmt *yspec; in from_validate_common() local 469 if ((yspec = clicon_dbspec_yang(h)) == NULL){ in from_validate_common() 498 if (xml_diff(yspec, in from_validate_common() 538 if ((ret = generic_validate(h, yspec, td, xret)) < 0) in from_validate_common() 883 yang_stmt *yspec; in from_client_restart_one() local 887 yspec = clicon_dbspec_yang(h); in from_client_restart_one() [all …]
|
/dports/devel/clixon/clixon-4.8.0/util/ |
H A D | clixon_util_yang.c | 81 yang_stmt *yspec = NULL; in main() local 107 if ((yspec = yspec_new()) == NULL) in main() 109 if (yang_parse_file(0, "yang test", yspec) == NULL){ in main() 113 yang_print(stdout, yspec); in main() 115 if (yspec) in main() 116 yspec_free(yspec); in main()
|
H A D | clixon_util_json.c | 95 yang_stmt *yspec = NULL; in main() local 133 if ((yspec = yspec_new()) == NULL) in main() 135 if (yang_parse_filename(yang_filename, yspec) == NULL){ in main() 140 if ((ret = clixon_json_parse_file(0, yspec?YB_MODULE:YB_NONE, yspec, &xt, &xerr)) < 0) in main() 156 if (yspec) in main() 157 yspec_free(yspec); in main()
|
H A D | clixon_util_xml_mod.c | 121 yang_stmt *yspec = NULL; in main() local 186 if ((yspec = yspec_new()) == NULL) in main() 188 if (yang_spec_parse_file(h, yangfile, yspec) < 0) in main() 191 if ((ret = clixon_xml_parse_string(x0str, YB_MODULE, yspec, &x0, &xerr)) < 0){ in main() 213 if ((ret = clixon_xml_parse_string(x1str, YB_PARENT, yspec, &xb, &xerr)) < 0){ in main() 224 if ((ret = clixon_xml_parse_string(x1str, YB_MODULE, yspec, &x1, &xerr)) < 0){ in main() 238 if ((ret = xml_merge(xb, xi, yspec, &reason)) < 0) in main() 247 if ((ret = clixon_xml_parse_string(x1str, YB_MODULE, yspec, &x1, &xerr)) < 0){ in main() 300 if (yspec) in main() 301 yspec_free(yspec); in main()
|
H A D | clixon_util_xml.c | 74 yang_stmt *yspec) in validate_tree() argument 150 yang_stmt *yspec = NULL; in main() local 246 if ((yspec = yspec_new()) == NULL) in main() 253 if (yang_spec_load_dir(h, yang_file_dir, yspec) < 0) in main() 257 if (yang_spec_parse_file(h, yang_file_dir, yspec) < 0) in main() 270 if ((ret = clixon_xml_parse_file(tfd, YB_MODULE, yspec, NULL, &xtop, &xerr)) < 0){ in main() 278 if (validate_tree(h, xtop, yspec) < 0) in main() 282 if (xml_nsctx_yangspec(yspec, &nsc) < 0) in main() 298 …if ((ret = clixon_json_parse_file(fd, top_input_filename?YB_PARENT:YB_MODULE, yspec, &xt, &xerr)) … in main() 312 if ((ret = clixon_xml_parse_file(fd, yb, yspec, NULL, &xt, &xerr)) < 0){ in main() [all …]
|
H A D | clixon_util_path.c | 102 yang_stmt *yspec = NULL; in main() local 167 if ((yspec = yspec_new()) == NULL) in main() 174 if (yang_spec_load_dir(h, yang_file_dir, yspec) < 0) in main() 178 if (yang_spec_parse_file(h, yang_file_dir, yspec) < 0) in main() 226 if ((ret = xml_bind_yang(x, YB_MODULE, yspec, &xerr)) < 0) in main() 266 if ((ret = clixon_xml_find_api_path(x, yspec, &xvec, &xlen, "%s", path)) < 0) in main() 270 if ((ret = clixon_xml_find_instance_id(x, yspec, &xvec, &xlen, "%s", path)) < 0) in main() 288 if (yspec != NULL) in main() 289 yspec_free(yspec); in main()
|
H A D | clixon_util_datastore.c | 110 yang_stmt *yspec = NULL; in main() local 190 if ((yspec = yspec_new()) == NULL) in main() 193 if (yang_spec_parse_file(h, yangfilename, yspec) < 0) in main() 196 clicon_dbspec_yang_set(h, yspec); in main() 258 if (clixon_xml_parse_file(fd, YB_MODULE, yspec, NULL, &xt, NULL) < 0) in main() 263 if (clixon_xml_parse_string(argv[2], YB_MODULE, yspec, &xt, NULL) < 0) in main() 339 if (yspec) in main() 340 yspec_free(yspec); in main()
|
/dports/devel/clixon/clixon-4.8.0/apps/cli/ |
H A D | cli_main.c | 166 yang_stmt *yspec; in cli_terminate() local 172 yspec_free(yspec); in cli_terminate() 174 yspec_free(yspec); in cli_terminate() 269 yang_stmt *yspec; in autocli_tree() local 276 yspec = clicon_dbspec_yang(h); in autocli_tree() 407 yang_stmt *yspec; in main() local 638 if ((yspec = yspec_new()) == NULL) in main() 640 clicon_dbspec_yang_set(h, yspec); in main() 645 if (yang_spec_parse_file(h, str, yspec) < 0) in main() 651 yspec) < 0) in main() [all …]
|
/dports/devel/clixon/clixon-4.8.0/lib/clixon/ |
H A D | clixon_xml_bind.h | 47 int xml_bind_yang_rpc(cxobj *xrpc, yang_stmt *yspec, cxobj **xerr); 48 int xml_bind_yang_rpc_reply(cxobj *xrpc, char *name, yang_stmt *yspec, cxobj **xerr); 49 int xml_bind_yang0(cxobj *xt, yang_bind yb, yang_stmt *yspec, cxobj **xerr); 50 int xml_bind_yang(cxobj *xt, yang_bind yb, yang_stmt *yspec, cxobj **xerr);
|
H A D | clixon_yang_module.h | 70 int yang_modules_state_get(clicon_handle h, yang_stmt *yspec, char *xpath, 74 yang_stmt *yang_find_module_by_prefix_yspec(yang_stmt *yspec, char *prefix); 75 yang_stmt *yang_find_module_by_namespace(yang_stmt *yspec, char *ns); 76 yang_stmt *yang_find_module_by_name(yang_stmt *yspec, char *name);
|
H A D | clixon_xml_io.h | 53 int clixon_xml_parse_file(int fd, yang_bind yb, yang_stmt *yspec, char *endtag, cxobj **xt, cxobj *… 54 int clixon_xml_parse_string(const char *str, yang_bind yb, yang_stmt *yspec, cxobj **xt, cxobj **xe… 57 int clixon_xml_parse_va(yang_bind yb, yang_stmt *yspec, cxobj **xt, cxobj **xerr, 60 int clixon_xml_parse_va(yang_bind yb, yang_stmt *yspec, cxobj **xt, cxobj **xerr,
|
/dports/devel/clixon/clixon-4.8.0/apps/restconf/ |
H A D | restconf_main_fcgi.c | 207 yang_stmt *yspec = NULL; in main() local 351 if ((yspec = yspec_new()) == NULL) in main() 353 clicon_dbspec_yang_set(h, yspec); in main() 372 if (yang_spec_parse_file(h, str, yspec) < 0) in main() 378 yspec) < 0) in main() 383 if (yang_spec_load_dir(h, str, yspec) < 0) in main() 387 if (yang_spec_parse_module(h, "clixon-lib", NULL, yspec) < 0) in main() 394 if (yang_spec_parse_module(h, "ietf-restconf", NULL, yspec)< 0) in main() 403 yang_spec_parse_module(h, "ietf-restconf-monitoring", NULL, yspec)< 0) in main() 406 yang_spec_parse_module(h, "clixon-rfc5277", NULL, yspec)< 0) in main() [all …]
|
H A D | restconf_methods_post.c | 166 yang_stmt *yspec; in api_data_post() local 183 if ((yspec = clicon_dbspec_yang(h)) == NULL){ in api_data_post() 323 if (ys_module_by_xml(yspec, xdata, &ymoddata) < 0) in api_data_post() 385 if (if_feature(yspec, "ietf-netconf", "startup")) in api_data_post() 449 yang_stmt *yspec, in api_operations_post_input() argument 596 yang_stmt *yspec, in api_operations_post_output() argument 649 if ((ret = xml_bind_yang(xoutput, YB_MODULE, yspec, &xerr)) < 0) in api_operations_post_output() 750 yang_stmt *yspec; in api_operations_post() local 771 if ((yspec = clicon_dbspec_yang(h)) == NULL){ in api_operations_post() 800 if ((ys = yang_find(yspec, Y_MODULE, prefix)) == NULL){ in api_operations_post() [all …]
|
/dports/graphics/R-cran-colorspace/colorspace/R/ |
H A D | specplot.R | 207 yspec <- specplot(y, rgb = rgb, hcl = hcl, fix = fix, plot = FALSE) functionVar 210 yspec <- NULL 250 …lines(yspec$RGB[, "R"], lwd = lwd[1L], lty = lty[1L] + 1L, col = rgb[1L], type = type[1L], pch = p… 251 …lines(yspec$RGB[, "G"], lwd = lwd[2L], lty = lty[2L] + 1L, col = rgb[2L], type = type[1L], pch = p… 252 …lines(yspec$RGB[, "B"], lwd = lwd[3L], lty = lty[3L] + 1L, col = rgb[3L], type = type[1L], pch = p… 276 image(matrix(seq_along(yspec$hex), ncol = 1L), col = yspec$hex) 289 …if(y) lines((yspec$HCL[, "H"])/yrad, lwd = lwd[1L], lty = lty[1L] + 1L, col = hcl[1L], type = type… 294 …if(y) lines((yspec$HCL[, "H"] + 360)/(2 * yrad), lwd = lwd[1L], lty = lty[1L] + 1L, col = hcl[1L],… 299 …lines(yspec$HCL[, "C"], lwd = lwd[2L], lty = lty[2L] + 1L, col = hcl[2L], type = type[1L], pch = p… 300 …lines(yspec$HCL[, "L"], lwd = lwd[3L], lty = lty[3L] + 1L, col = hcl[3L], type = type[1L], pch = p…
|
/dports/devel/clixon/clixon-4.8.0/example/main/ |
H A D | example_backend.c | 372 yang_stmt *yspec = NULL; in example_statedata() local 377 yspec = clicon_dbspec_yang(h); in example_statedata() 573 yang_stmt *yspec; in example_upgrade() local 586 yspec = clicon_dbspec_yang(h); /* Get all yangs */ in example_upgrade() 588 if (xml_nsctx_yangspec(yspec, &nsc) < 0) in example_upgrade() 677 yang_stmt *yspec; in upgrade_2014_to_2016() local 692 yspec = clicon_dbspec_yang(h); in upgrade_2014_to_2016() 693 if ((ym = yang_find_module_by_namespace(yspec, ns)) == NULL) in upgrade_2014_to_2016() 780 yang_stmt *yspec; in upgrade_2016_to_2018() local 794 yspec = clicon_dbspec_yang(h); in upgrade_2016_to_2018() [all …]
|