add migration state change notifiers
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 13 Dec 2010 16:30:12 +0000 (17:30 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 24 Jan 2011 14:13:54 +0000 (15:13 +0100)
commit600d8eaef659cef6e6073764e56c86d1ac0350f9
treeb537aab449052a24a630f90ad3405c0d573644db
parentd2829d69d6b052efbea3667f007c286f690307d3
add migration state change notifiers

This patch adds functions to register and unregister notifiers for
migration state changes and a function to query the migration state.
The notifier is called on every state change.  Once after establishing a
new migration object (which is in active state then) and once when the
state changes from active to completed, canceled or error.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
migration.c
migration.h