Lines Matching refs:opts
252 static CharDriverState *qemu_chr_open_null(QemuOpts *opts)
574 static CharDriverState *qemu_chr_open_android_modem(QemuOpts* opts)
580 static CharDriverState *qemu_chr_open_android_gps(QemuOpts* opts)
587 static CharDriverState *qemu_chr_open_android_kmsg(QemuOpts* opts)
592 static CharDriverState *qemu_chr_open_android_qemud(QemuOpts* opts)
695 static CharDriverState *qemu_chr_open_file_out(QemuOpts *opts)
699 TFR(fd_out = qemu_open(qemu_opt_get(opts, "path"),
706 static CharDriverState *qemu_chr_open_pipe(QemuOpts *opts)
710 const char *filename = qemu_opt_get(opts, "path");
734 static CharDriverState *qemu_chr_open_fdpair(QemuOpts* opts)
736 int fd_in = qemu_opt_get_number(opts, "fdin",-1);
737 int fd_out = qemu_opt_get_number(opts, "fdout",-1);
833 static CharDriverState *qemu_chr_open_stdio(QemuOpts *opts)
851 stdio_allow_signal = qemu_opt_get_bool(opts, "signal",
1040 static CharDriverState *qemu_chr_open_pty(QemuOpts *opts)
1071 qemu_opt_set(opts, "path", q_ptsname(s->fd));
1282 static CharDriverState *qemu_chr_open_tty(QemuOpts *opts)
1284 const char *filename = qemu_opt_get(opts, "path");
1303 static CharDriverState *qemu_chr_open_pty(QemuOpts *opts)
1419 static CharDriverState *qemu_chr_open_pp(QemuOpts *opts)
1421 const char *filename = qemu_opt_get(opts, "path");
1489 static CharDriverState *qemu_chr_open_pp(QemuOpts *opts)
1491 const char *filename = qemu_opt_get(opts, "path");
1709 static CharDriverState *qemu_chr_open_win(QemuOpts *opts)
1711 const char *filename = qemu_opt_get(opts, "path");
1809 static CharDriverState *qemu_chr_open_win_pipe(QemuOpts *opts)
1811 const char *filename = qemu_opt_get(opts, "path");
1844 static CharDriverState *qemu_chr_open_win_con(QemuOpts *opts)
1849 static CharDriverState *qemu_chr_open_win_file_out(QemuOpts *opts)
1851 const char *file_out = qemu_opt_get(opts, "path");
1940 static CharDriverState *qemu_chr_open_udp(QemuOpts *opts)
1949 fd = inet_dgram_opts(opts);
2228 static CharDriverState *qemu_chr_open_socket(QemuOpts *opts)
2239 is_listen = qemu_opt_get_bool(opts, "server", 0);
2240 is_waitconnect = qemu_opt_get_bool(opts, "wait", 1);
2241 is_telnet = qemu_opt_get_bool(opts, "telnet", 0);
2242 do_nodelay = !qemu_opt_get_bool(opts, "delay", 1);
2243 is_unix = qemu_opt_get(opts, "path") != NULL;
2252 fd = unix_listen_opts(opts);
2254 fd = unix_connect_opts(opts);
2258 fd = inet_listen_opts(opts, 0);
2260 fd = inet_connect_opts(opts);
2298 qemu_opt_get(opts, "path"),
2299 qemu_opt_get_bool(opts, "server", 0) ? ",server" : "");
2302 qemu_opt_get(opts, "host"), qemu_opt_get(opts, "port"),
2303 qemu_opt_get_bool(opts, "server", 0) ? ",server" : "");
2306 qemu_opt_get(opts, "host"), qemu_opt_get(opts, "port"),
2307 qemu_opt_get_bool(opts, "server", 0) ? ",server" : "");
2395 QemuOpts *opts;
2397 opts = qemu_opts_create(qemu_find_opts("chardev"), label, 1);
2398 if (NULL == opts)
2403 qemu_opt_set(opts, "mux", "on");
2411 qemu_opt_set(opts, "backend", filename);
2412 return opts;
2415 qemu_opt_set(opts, "backend", "vc");
2419 qemu_opt_set(opts, "width", width);
2420 qemu_opt_set(opts, "height", height);
2423 qemu_opt_set(opts, "cols", width);
2424 qemu_opt_set(opts, "rows", height);
2429 return opts;
2432 qemu_opt_set(opts, "backend", "console");
2433 return opts;
2436 qemu_opt_set(opts, "backend", "serial");
2437 qemu_opt_set(opts, "path", filename);
2438 return opts;
2441 qemu_opt_set(opts, "backend", "file");
2442 qemu_opt_set(opts, "path", p);
2443 return opts;
2446 qemu_opt_set(opts, "backend", "pipe");
2447 qemu_opt_set(opts, "path", p);
2448 return opts;
2457 qemu_opt_set(opts, "backend", "socket");
2458 qemu_opt_set(opts, "host", host);
2459 qemu_opt_set(opts, "port", port);
2461 if (qemu_opts_do_parse(opts, p+pos+1, NULL) != 0)
2465 qemu_opt_set(opts, "telnet", "on");
2466 return opts;
2469 qemu_opt_set(opts, "backend", "udp");
2476 qemu_opt_set(opts, "host", host);
2477 qemu_opt_set(opts, "port", port);
2486 qemu_opt_set(opts, "localaddr", host);
2487 qemu_opt_set(opts, "localport", port);
2489 return opts;
2492 qemu_opt_set(opts, "backend", "socket");
2493 if (qemu_opts_do_parse(opts, p, "path") != 0)
2495 return opts;
2499 qemu_opt_set(opts, "backend", "parport");
2500 qemu_opt_set(opts, "path", filename);
2501 return opts;
2504 qemu_opt_set(opts, "backend", "tty");
2505 qemu_opt_set(opts, "path", filename);
2506 return opts;
2512 qemu_opt_set(opts, "backend", "fdpair");
2520 qemu_opt_set(opts, "fdin", temp);
2522 qemu_opt_set(opts, "fdout", temp);
2523 return opts;
2526 qemu_opt_set(opts, "backend", "android-kmsg");
2527 return opts;
2530 qemu_opt_set(opts
2531 return opts;
2534 qemu_opt_set(opts, "backend", "android-modem");
2535 return opts;
2538 qemu_opt_set(opts, "backend", "android-gps");
2539 return opts;
2544 qemu_opts_del(opts);
2550 CharDriverState *(*open)(QemuOpts *opts);
2591 CharDriverState *qemu_chr_open_opts(QemuOpts *opts,
2597 if (qemu_opts_id(opts) == NULL) {
2602 if (qemu_opt_get(opts, "backend") == NULL) {
2604 qemu_opts_id(opts));
2608 if (strcmp(backend_table[i].name, qemu_opt_get(opts, "backend")) == 0)
2613 qemu_opt_get(opts, "backend"));
2617 chr = backend_table[i].open(opts);
2620 qemu_opt_get(opts, "backend"));
2625 chr->filename = qemu_strdup(qemu_opt_get(opts, "backend"));
2629 if (qemu_opt_get_bool(opts, "mux", 0)) {
2631 int len = strlen(qemu_opts_id(opts)) + 6;
2633 snprintf(base->label, len, "%s-base", qemu_opts_id(opts));
2641 chr->label = qemu_strdup(qemu_opts_id(opts));
2649 QemuOpts *opts;
2655 opts = qemu_chr_parse_compat(label, filename);
2656 if (!opts)
2659 chr = qemu_chr_open_opts(opts, init);
2660 if (chr && qemu_opt_get_bool(opts, "mux", 0)) {
2663 qemu_opts_del(opts);