mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
* include/libvir.h.in include/libvir.h src/internal.h src/libvir.c
src/xend_internal.c src/xend_internal.h: starting to plug the xend code in, replacing structures mostly, but not finished. Daniel
This commit is contained in:
@@ -63,6 +63,30 @@ typedef enum {
|
||||
VIR_DOMAIN_SHUTOFF = 5 /* the domain is shut off */
|
||||
} virDomainState;
|
||||
|
||||
/**
|
||||
* virDomainRestart:
|
||||
*
|
||||
* Flags that determine the action to take on a shutdown or crash of a domain
|
||||
*/
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DESTROY = 1, /* destroy the domain */
|
||||
VIR_DOMAIN_RESTART = 2, /* restart the domain */
|
||||
VIR_DOMAIN_PRESERVE= 3, /* keep as is, need manual destroy, for debug */
|
||||
VIR_DOMAIN_RENAME_RESTART= 4/* restart under an new unique name */
|
||||
} virDomainRestart;
|
||||
|
||||
/**
|
||||
* virDeviceMode:
|
||||
*
|
||||
* Flags that determine permission to expose a device to the guest
|
||||
*/
|
||||
typedef enum {
|
||||
VIR_DEVICE_DEFAULT = 0, /* Default mode */
|
||||
VIR_DEVICE_RO = 1, /* Access read-only */
|
||||
VIR_DEVICE_RW = 2, /* Access read-write */
|
||||
VIR_DEVICE_RW_FORCE= 3 /* Forced read-write even if already used */
|
||||
} virDeviceMode;
|
||||
|
||||
/**
|
||||
* virDomainInfoPtr:
|
||||
*
|
||||
@@ -99,6 +123,30 @@ struct _virDomainInfo {
|
||||
|
||||
typedef virDomainInfo *virDomainInfoPtr;
|
||||
|
||||
/**
|
||||
* virDomainKernel:
|
||||
*
|
||||
* a virDomainImage is the set of kernel related informations associated
|
||||
* to a domain
|
||||
*/
|
||||
|
||||
typedef struct _virDomainKernel virDomainKernel;
|
||||
|
||||
struct _virDomainKernel {
|
||||
const char *kernel; /* filename pointing to the kernel image */
|
||||
const char *ramdisk; /* an optional init ramdisk */
|
||||
const char *root; /* an optional root block device */
|
||||
const char *extra; /* optional kernel command line parameters */
|
||||
};
|
||||
|
||||
/**
|
||||
* virDomainKernelPtr:
|
||||
*
|
||||
* a virDomainKernelPtr is a pointer to a virDomainKernel structure.
|
||||
*/
|
||||
|
||||
typedef virDomainKernel *virDomainKernelPtr;
|
||||
|
||||
/**
|
||||
* virDomainCreateFlags:
|
||||
*
|
||||
|
||||
@@ -63,6 +63,30 @@ typedef enum {
|
||||
VIR_DOMAIN_SHUTOFF = 5 /* the domain is shut off */
|
||||
} virDomainState;
|
||||
|
||||
/**
|
||||
* virDomainRestart:
|
||||
*
|
||||
* Flags that determine the action to take on a shutdown or crash of a domain
|
||||
*/
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DESTROY = 1, /* destroy the domain */
|
||||
VIR_DOMAIN_RESTART = 2, /* restart the domain */
|
||||
VIR_DOMAIN_PRESERVE= 3, /* keep as is, need manual destroy, for debug */
|
||||
VIR_DOMAIN_RENAME_RESTART= 4/* restart under an new unique name */
|
||||
} virDomainRestart;
|
||||
|
||||
/**
|
||||
* virDeviceMode:
|
||||
*
|
||||
* Flags that determine permission to expose a device to the guest
|
||||
*/
|
||||
typedef enum {
|
||||
VIR_DEVICE_DEFAULT = 0, /* Default mode */
|
||||
VIR_DEVICE_RO = 1, /* Access read-only */
|
||||
VIR_DEVICE_RW = 2, /* Access read-write */
|
||||
VIR_DEVICE_RW_FORCE= 3 /* Forced read-write even if already used */
|
||||
} virDeviceMode;
|
||||
|
||||
/**
|
||||
* virDomainInfoPtr:
|
||||
*
|
||||
@@ -92,12 +116,28 @@ struct _virDomainInfo {
|
||||
};
|
||||
|
||||
/**
|
||||
* virDomainInfoPtr:
|
||||
* virDomainKernel:
|
||||
*
|
||||
* a virDomainInfoPtr is a pointer to a virDomainInfo structure.
|
||||
* a virDomainImage is the set of kernel related informations associated
|
||||
* to a domain
|
||||
*/
|
||||
|
||||
typedef virDomainInfo *virDomainInfoPtr;
|
||||
typedef struct _virDomainKernel virDomainKernel;
|
||||
|
||||
struct _virDomainKernel {
|
||||
const char *kernel; /* filename pointing to the kernel image */
|
||||
const char *ramdisk; /* an optional init ramdisk */
|
||||
const char *root; /* an optional root block device */
|
||||
const char *extra; /* optional kernel command line parameters */
|
||||
};
|
||||
|
||||
/**
|
||||
* virDomainKernelPtr:
|
||||
*
|
||||
* a virDomainKernelPtr is a pointer to a virDomainKernel structure.
|
||||
*/
|
||||
|
||||
typedef virDomainKernel *virDomainKernelPtr;
|
||||
|
||||
/**
|
||||
* virDomainCreateFlags:
|
||||
|
||||
Reference in New Issue
Block a user