static int qemu_chr_open_win_pipe(QemuOpts *opts, CharDriverState **_chr)

{

    const char *filename = qemu_opt_get(opts, "path");

    CharDriverState *chr;

    WinCharState *s;



    chr = g_malloc0(sizeof(CharDriverState));

    s = g_malloc0(sizeof(WinCharState));

    chr->opaque = s;

    chr->chr_write = win_chr_write;

    chr->chr_close = win_chr_close;



    if (win_chr_pipe_init(chr, filename) < 0) {

        g_free(s);

        g_free(chr);

        return -EIO;

    }

    qemu_chr_generic_open(chr);



    *_chr = chr;

    return 0;

}

static int qemu_chr_open_win_pipe(QemuOpts *opts, CharDriverState **_chr)

{

    const char *filename = qemu_opt_get(opts, "path");

    CharDriverState *chr;

    WinCharState *s;



    chr = g_malloc0(sizeof(CharDriverState));

    s = g_malloc0(sizeof(WinCharState));

    chr->opaque = s;

    chr->chr_write = win_chr_write;

    chr->chr_close = win_chr_close;



    if (win_chr_pipe_init(chr, filename) < 0) {

        g_free(s);

        g_free(chr);

        return -EIO;

    }

    qemu_chr_generic_open(chr);



    *_chr = chr;

    return 0;

}

    *_chr = chr;     return 0;     *_chr = chr;     return 0;     *_chr = chr;     return 0;     return 0;     return 0;     return 0;     *_chr = chr;     return 0;     *_chr = chr;     return 0;     *_chr = chr;     return 0;     *_chr = chr;     return 0;     *_chr = chr;     return 0;         return -EIO;     *_chr = chr;     return 0; static int qemu_chr_open_win_pipe(QemuOpts *opts, CharDriverState **_chr)         return -EIO;     *_chr = chr;     return 0;     return 0;         return -EIO;         return -EIO;     *_chr = chr;     return 0;     *_chr = chr;     return 0;     *_chr = chr;     return 0;     *_chr = chr;     return 0;
static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)

{

    const char *VAR_2 = qemu_opt_get(VAR_0, "path");

    CharDriverState *chr;

    WinCharState *s;



    chr = g_malloc0(sizeof(CharDriverState));

    s = g_malloc0(sizeof(WinCharState));

    chr->opaque = s;

    chr->chr_write = win_chr_write;

    chr->chr_close = win_chr_close;



    if (win_chr_pipe_init(chr, VAR_2) < 0) {

        g_free(s);

        g_free(chr);

        return -EIO;

    }

    qemu_chr_generic_open(chr);



    *VAR_1 = chr;

    return 0;

}

static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)
{ const char *VAR_2 = qemu_opt_get(VAR_0, "path"); CharDriverState *chr; WinCharState *s; chr = g_malloc0(sizeof(CharDriverState)); s = g_malloc0(sizeof(WinCharState)); chr->opaque = s; chr->chr_write = win_chr_write; chr->chr_close = win_chr_close; if (win_chr_pipe_init(chr, VAR_2) < 0) { g_free(s); g_free(chr); return -EIO; } qemu_chr_generic_open(chr); *VAR_1 = chr; return 0; }