void qemu_start_incoming_migration(const char *uri, Error **errp)

{

    const char *p;



    if (strstart(uri, "tcp:", &p))

        tcp_start_incoming_migration(p, errp);

#ifdef CONFIG_RDMA

    else if (strstart(uri, "rdma:", &p))

        rdma_start_incoming_migration(p, errp);

#endif

#if !defined(WIN32)

    else if (strstart(uri, "exec:", &p))

        exec_start_incoming_migration(p, errp);

    else if (strstart(uri, "unix:", &p))

        unix_start_incoming_migration(p, errp);

    else if (strstart(uri, "fd:", &p))

        fd_start_incoming_migration(p, errp);

#endif

    else {

        error_setg(errp, "unknown migration protocol: %s", uri);

    }

}

void qemu_start_incoming_migration(const char *uri, Error **errp)

{

    const char *p;



    if (strstart(uri, "tcp:", &p))

        tcp_start_incoming_migration(p, errp);

#ifdef CONFIG_RDMA

    else if (strstart(uri, "rdma:", &p))

        rdma_start_incoming_migration(p, errp);

#endif

#if !defined(WIN32)

    else if (strstart(uri, "exec:", &p))

        exec_start_incoming_migration(p, errp);

    else if (strstart(uri, "unix:", &p))

        unix_start_incoming_migration(p, errp);

    else if (strstart(uri, "fd:", &p))

        fd_start_incoming_migration(p, errp);

#endif

    else {

        error_setg(errp, "unknown migration protocol: %s", uri);

    }

}

void FUNC_0(const char *VAR_0, Error **VAR_1)

{

    const char *VAR_2;



    if (strstart(VAR_0, "tcp:", &VAR_2))

        tcp_start_incoming_migration(VAR_2, VAR_1);

#ifdef CONFIG_RDMA

    else if (strstart(VAR_0, "rdma:", &VAR_2))

        rdma_start_incoming_migration(VAR_2, VAR_1);

#endif

#if !defined(WIN32)

    else if (strstart(VAR_0, "exec:", &VAR_2))

        exec_start_incoming_migration(VAR_2, VAR_1);

    else if (strstart(VAR_0, "unix:", &VAR_2))

        unix_start_incoming_migration(VAR_2, VAR_1);

    else if (strstart(VAR_0, "fd:", &VAR_2))

        fd_start_incoming_migration(VAR_2, VAR_1);

#endif

    else {

        error_setg(VAR_1, "unknown migration protocol: %s", VAR_0);

    }

}

void FUNC_0(const char *VAR_0, Error **VAR_1)
{ const char *VAR_2; if (strstart(VAR_0, "tcp:", &VAR_2))
tcp_start_incoming_migration(VAR_2, VAR_1); #ifdef CONFIG_RDMA
else if (strstart(VAR_0, "rdma:", &VAR_2))
rdma_start_incoming_migration(VAR_2, VAR_1); #endif
#if !defined(WIN32)
else if (strstart(VAR_0, "exec:", &VAR_2))
exec_start_incoming_migration(VAR_2, VAR_1); else if (strstart(VAR_0, "unix:", &VAR_2))
unix_start_incoming_migration(VAR_2, VAR_1); else if (strstart(VAR_0, "fd:", &VAR_2))
fd_start_incoming_migration(VAR_2, VAR_1); #endif
else { error_setg(VAR_1, "unknown migration protocol: %s", VAR_0); } }