[libvirt] [PATCH V3 1/5] Add public API virDomainSendSysrq
Jiri Denemark
jdenemar at redhat.com
Wed Dec 17 10:52:27 UTC 2014
On Wed, Dec 17, 2014 at 16:48:52 +0800, Chunyan Liu wrote:
> Add public API virDomainSendSysrq for sending SysRequest key.
>
> Signed-off-by: Chunyan Liu <cyliu at suse.com>
> ---
> changes:
> * add 'flags' to the new API
> * change parameter from 'const char *key' to 'char key'
> * change version number from 1.2.11 to 1.2.12
>
> include/libvirt/libvirt-domain.h | 3 +++
> src/driver-hypervisor.h | 4 ++++
> src/libvirt-domain.c | 39 +++++++++++++++++++++++++++++++++++++++
> src/libvirt_public.syms | 5 +++++
> 4 files changed, 51 insertions(+)
>
> diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h
> index baef32d..5f72850 100644
> --- a/include/libvirt/libvirt-domain.h
> +++ b/include/libvirt/libvirt-domain.h
> @@ -3526,6 +3526,9 @@ int virDomainGetFSInfo(virDomainPtr dom,
> virDomainFSInfoPtr **info,
> unsigned int flags);
>
> +/* virDomainSendSysrq */
> +int virDomainSendSysrq(virDomainPtr dom, char key, unsigned int flags);
> +
I think quite a few reviewers (Daniel, Eric, and I) agreed on using an
enum instead of char so that the API is more general.
Jirka
More information about the libvir-list
mailing list