static int qemu_chr_open_win_file(HANDLE fd_out, CharDriverState **pchr)

{

    CharDriverState *chr;

    WinCharState *s;



    chr = g_malloc0(sizeof(CharDriverState));

    s = g_malloc0(sizeof(WinCharState));

    s->hcom = fd_out;

    chr->opaque = s;

    chr->chr_write = win_chr_write;

    qemu_chr_generic_open(chr);

    *pchr = chr;

    return 0;

}

static int qemu_chr_open_win_file(HANDLE fd_out, CharDriverState **pchr)

{

    CharDriverState *chr;

    WinCharState *s;



    chr = g_malloc0(sizeof(CharDriverState));

    s = g_malloc0(sizeof(WinCharState));

    s->hcom = fd_out;

    chr->opaque = s;

    chr->chr_write = win_chr_write;

    qemu_chr_generic_open(chr);

    *pchr = chr;

    return 0;

}

    return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0; static int qemu_chr_open_win_file(HANDLE fd_out, CharDriverState **pchr)     *pchr = chr;     return 0;     return 0;     return 0;     return 0;     return 0;
static int FUNC_0(HANDLE VAR_0, CharDriverState **VAR_1)

{

    CharDriverState *chr;

    WinCharState *s;



    chr = g_malloc0(sizeof(CharDriverState));

    s = g_malloc0(sizeof(WinCharState));

    s->hcom = VAR_0;

    chr->opaque = s;

    chr->chr_write = win_chr_write;

    qemu_chr_generic_open(chr);

    *VAR_1 = chr;

    return 0;

}

static int FUNC_0(HANDLE VAR_0, CharDriverState **VAR_1)
{ CharDriverState *chr; WinCharState *s; chr = g_malloc0(sizeof(CharDriverState)); s = g_malloc0(sizeof(WinCharState)); s->hcom = VAR_0; chr->opaque = s; chr->chr_write = win_chr_write; qemu_chr_generic_open(chr); *VAR_1 = chr; return 0; }