virLXCProcessReboot: Remove the need to re-register autodestroy callback
virLXCProcessReboot: Remove the need to re-register autodestroy callback

Add a new flag VIR_LXC_PROCESS_CLEANUP_AUTODESTROY to
virLXCProcessCleanupFlags for skipping removal of the autodestroy
callback so that fake reboot of the container doesn't need to fetch the
connection and re-register it.

Since virLXCProcessReboot is defined before virLXCProcessCleanupFlags,
this patch also moves the flag enum typedef to the beginning of the
file.

Signed-off-by: Peter Krempa <2cf5c04c61aa466e4a47bfedc747d17279c72ffc@redhat.com>
Reviewed-by: Tim Wiederhake <da93ee425e056cfcf1ddac9fc87851b25464abf4@redhat.com>

olafhering/libvirt,libvirt/libvirt,zippy2/libvirt,jfehlig/libvirt,jfehlig/libvirt,crobinso/libvirt,zippy2/libvirt,crobinso/libvirt,olafhering/libvirt,zippy2/libvirt,libvirt/libvirt,olafhering/libvirt,olafhering/libvirt,crobinso/libvirt,libvirt/libvirt,libvirt/libvirt,jfehlig/libvirt,zippy2/libvirt,crobinso/libvirt,jfehlig/libvirt