static int spapr_vty_init(VIOsPAPRDevice *sdev)
{
    VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)sdev;
    qemu_chr_add_handlers(dev->chardev, vty_can_receive,
                          vty_receive, NULL, dev);
    return 0;
static int spapr_vty_init(VIOsPAPRDevice *sdev)
{
    VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)sdev;
    qemu_chr_add_handlers(dev->chardev, vty_can_receive,
                          vty_receive, NULL, dev);
    return 0;
static int FUNC_0(VIOsPAPRDevice *VAR_0)
{
    VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)VAR_0;
    qemu_chr_add_handlers(dev->chardev, vty_can_receive,
                          vty_receive, NULL, dev);
    return 0;
static int FUNC_0(VIOsPAPRDevice *VAR_0)
{ VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)VAR_0; qemu_chr_add_handlers(dev->chardev, vty_can_receive,
vty_receive, NULL, dev); return 0;