[libvirt] [PATCH 2/4] Add new virDomainShutdownFlags API

Eric Blake eblake at redhat.com
Thu Oct 20 01:56:00 UTC 2011


On 10/19/2011 06:22 PM, MATSUDA, Daiki wrote:
>> diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
>> index 83f4f3c..eaf8bbd 100644
>> --- a/src/remote/remote_driver.c
>> +++ b/src/remote/remote_driver.c
>> @@ -4312,6 +4312,7 @@ static virDriver remote_driver = {
>> .domainSuspend = remoteDomainSuspend, /* 0.3.0 */
>> .domainResume = remoteDomainResume, /* 0.3.0 */
>> .domainShutdown = remoteDomainShutdown, /* 0.3.0 */
>> + .domainShutdownFlags = remoteDomainShutdownFlags, /* 0.9.7 */

>> + REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS = 246 /* autogen autogen */
>>
>> /*
>> * Notice how the entries are grouped in sets of 10 ?
>
> I think it does not works well if target is localhost or not, because
> remoteDomainShutdownFlags() function is not implemented. So, do you have
> a plan ?

The notation "autogen autogen" after REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS 
_is_ what implements remoteDomainShutdownFlags().  See 
src/rpc/genprotocol.pl.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list