static void qemu_chr_parse_pipe(QemuOpts *opts, ChardevBackend *backend,

                                Error **errp)

{

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

    ChardevHostdev *dev;



    if (device == NULL) {

        error_setg(errp, "chardev: pipe: no device path given");

        return;

    }

    dev = backend->u.pipe = g_new0(ChardevHostdev, 1);

    qemu_chr_parse_common(opts, qapi_ChardevHostdev_base(dev));

    dev->device = g_strdup(device);

}

static void qemu_chr_parse_pipe(QemuOpts *opts, ChardevBackend *backend,

                                Error **errp)

{

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

    ChardevHostdev *dev;



    if (device == NULL) {

        error_setg(errp, "chardev: pipe: no device path given");

        return;

    }

    dev = backend->u.pipe = g_new0(ChardevHostdev, 1);

    qemu_chr_parse_common(opts, qapi_ChardevHostdev_base(dev));

    dev->device = g_strdup(device);

}

static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,

                                Error **VAR_2)

{

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

    ChardevHostdev *dev;



    if (VAR_3 == NULL) {

        error_setg(VAR_2, "chardev: pipe: no VAR_3 path given");

        return;

    }

    dev = VAR_1->u.pipe = g_new0(ChardevHostdev, 1);

    qemu_chr_parse_common(VAR_0, qapi_ChardevHostdev_base(dev));

    dev->VAR_3 = g_strdup(VAR_3);

}

static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,
Error **VAR_2)
{ const char *VAR_3 = qemu_opt_get(VAR_0, "path"); ChardevHostdev *dev; if (VAR_3 == NULL) { error_setg(VAR_2, "chardev: pipe: no VAR_3 path given"); return; } dev = VAR_1->u.pipe = g_new0(ChardevHostdev, 1); qemu_chr_parse_common(VAR_0, qapi_ChardevHostdev_base(dev)); dev->VAR_3 = g_strdup(VAR_3); }