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

                                   Error **errp)

{

    int val;

    ChardevRingbuf *ringbuf;



    ringbuf = backend->u.ringbuf = g_new0(ChardevRingbuf, 1);

    qemu_chr_parse_common(opts, qapi_ChardevRingbuf_base(ringbuf));



    val = qemu_opt_get_size(opts, "size", 0);

    if (val != 0) {

        ringbuf->has_size = true;

        ringbuf->size = val;

    }

}

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

                                   Error **errp)

{

    int val;

    ChardevRingbuf *ringbuf;



    ringbuf = backend->u.ringbuf = g_new0(ChardevRingbuf, 1);

    qemu_chr_parse_common(opts, qapi_ChardevRingbuf_base(ringbuf));



    val = qemu_opt_get_size(opts, "size", 0);

    if (val != 0) {

        ringbuf->has_size = true;

        ringbuf->size = val;

    }

}

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

                                   Error **VAR_2)

{

    int VAR_3;

    ChardevRingbuf *ringbuf;



    ringbuf = VAR_1->u.ringbuf = g_new0(ChardevRingbuf, 1);

    qemu_chr_parse_common(VAR_0, qapi_ChardevRingbuf_base(ringbuf));



    VAR_3 = qemu_opt_get_size(VAR_0, "size", 0);

    if (VAR_3 != 0) {

        ringbuf->has_size = true;

        ringbuf->size = VAR_3;

    }

}

static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,
Error **VAR_2)
{ int VAR_3; ChardevRingbuf *ringbuf; ringbuf = VAR_1->u.ringbuf = g_new0(ChardevRingbuf, 1); qemu_chr_parse_common(VAR_0, qapi_ChardevRingbuf_base(ringbuf)); VAR_3 = qemu_opt_get_size(VAR_0, "size", 0); if (VAR_3 != 0) { ringbuf->has_size = true; ringbuf->size = VAR_3; } }