static void qemu_chr_parse_common(QemuOpts *opts, ChardevCommon *backend)

{

    const char *logfile = qemu_opt_get(opts, "logfile");



    backend->has_logfile = logfile != NULL;

    backend->logfile = logfile ? g_strdup(logfile) : NULL;



    backend->has_logappend = true;

    backend->logappend = qemu_opt_get_bool(opts, "logappend", false);

}

static void qemu_chr_parse_common(QemuOpts *opts, ChardevCommon *backend)

{

    const char *logfile = qemu_opt_get(opts, "logfile");



    backend->has_logfile = logfile != NULL;

    backend->logfile = logfile ? g_strdup(logfile) : NULL;



    backend->has_logappend = true;

    backend->logappend = qemu_opt_get_bool(opts, "logappend", false);

}

static void FUNC_0(QemuOpts *VAR_0, ChardevCommon *VAR_1)

{

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



    VAR_1->has_logfile = VAR_2 != NULL;

    VAR_1->VAR_2 = VAR_2 ? g_strdup(VAR_2) : NULL;



    VAR_1->has_logappend = true;

    VAR_1->logappend = qemu_opt_get_bool(VAR_0, "logappend", false);

}

static void FUNC_0(QemuOpts *VAR_0, ChardevCommon *VAR_1)
{ const char *VAR_2 = qemu_opt_get(VAR_0, "VAR_2"); VAR_1->has_logfile = VAR_2 != NULL; VAR_1->VAR_2 = VAR_2 ? g_strdup(VAR_2) : NULL; VAR_1->has_logappend = true; VAR_1->logappend = qemu_opt_get_bool(VAR_0, "logappend", false); }