mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-28 00:25:23 +00:00
639f841346
Introduce a new API in libvirt-qemu.so virDomainPtr virDomainQemuAttach(virConnectPtr domain, unsigned long long pid, unsigned int flags); This allows libvirtd to attach to an existing, externally launched QEMU process. This is useful for QEMU developers who prefer to launch QEMU themselves for debugging/devel reasons, but still want the benefit of libvirt based tools like virt-top, virt-viewer, etc * include/libvirt/libvirt-qemu.h: Define virDomainQemuAttach * src/driver.h, src/libvirt-qemu.c, src/libvirt_qemu.syms: Driver glue for virDomainQemuAttach
40 lines
996 B
C
40 lines
996 B
C
/* -*- c -*-
|
|
* libvirt-qemu.h:
|
|
* Summary: qemu specific interfaces
|
|
* Description: Provides the interfaces of the libvirt library to handle
|
|
* qemu specific methods
|
|
*
|
|
* Copy: Copyright (C) 2010 Red Hat, Inc.
|
|
*
|
|
* See COPYING.LIB for the License of this software
|
|
*
|
|
* Author: Chris Lalancette <clalance@redhat.com>
|
|
*/
|
|
|
|
#ifndef __VIR_QEMU_H__
|
|
# define __VIR_QEMU_H__
|
|
|
|
# include "libvirt/libvirt.h"
|
|
|
|
# ifdef __cplusplus
|
|
extern "C" {
|
|
# endif
|
|
|
|
typedef enum {
|
|
VIR_DOMAIN_QEMU_MONITOR_COMMAND_DEFAULT = 0,
|
|
VIR_DOMAIN_QEMU_MONITOR_COMMAND_HMP = (1 << 0), /* cmd is in HMP */
|
|
} virDomainQemuMonitorCommandFlags;
|
|
|
|
int virDomainQemuMonitorCommand(virDomainPtr domain, const char *cmd,
|
|
char **result, unsigned int flags);
|
|
|
|
virDomainPtr virDomainQemuAttach(virConnectPtr domain,
|
|
unsigned int pid,
|
|
unsigned int flags);
|
|
|
|
# ifdef __cplusplus
|
|
}
|
|
# endif
|
|
|
|
#endif /* __VIR_QEMU_H__ */
|