]> git.ipfire.org Git - thirdparty/libvirt.git/commit
migration: refactor: merge direct and p2p into unmanaged
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Fri, 2 Oct 2015 07:52:46 +0000 (10:52 +0300)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 12 Oct 2015 11:31:14 +0000 (13:31 +0200)
commit323ba66eaabc799c3a5e7a435520d0ebb2de0d9a
treea6338c3c6fb6d6e3937f0648b72734a54c03494e
parent5c239b3a2f575600790da479c7e05a9bb16ee9d6
migration: refactor: merge direct and p2p into unmanaged

p2p plain and direct function are good candidates for code reuse. Their main
function is same - to branch among different versions of migration protocol and
implementation of this function is also same. Also they have other common
functionality in lesser aspects. So let's merge them.

But as they have different signatures we have to get to convention on how to
pass direct migration 'uri' in 'dconnuri' and 'miguri'. Fortunately we alreay
have such convention in parameters passed to toURI2 function, just let's follow
it. 'uri' is passed in miguri and dconnuri is ignored.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
src/libvirt-domain.c