Package org.libvirt.jna
Interface Libvirt
- All Superinterfaces:
com.sun.jna.Library
public interface Libvirt
extends com.sun.jna.Library
The libvirt interface which is exposed via JNA. The complete API is
documented at https://libvirt.org/html/libvirt-libvirt.html.
Known api calls to be missing
LIBVIRT_0.1.0
virDefaultErrorFunc
virConnCopyLastError
virFreeError
LIBVIRT_0_5.0
virEventRegisterImpl
virConnectDomainEventRegister
virConnectDomainEventDeregister
LIBVIRT_0.6.0
virConnectRef
virNetworkRef
virStoragePoolRef
virStorageVolRef
virNodeDeviceRef
LIBVIRT_0.6.1
virFreeError
virSaveLastError
LIBVIRT_0.6.4
virInterfaceRef
LIBVIRT_0.7.1
virSecretRef
LIBVIRT_0.7.2
virStreamRef
LIBVIRT_0.8.0
virNWFilterRef
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
static interface
Callback interface for authorizationstatic interface
Callback interface for connection closed events.static interface
static interface
static interface
static interface
static interface
static interface
static interface
Common Event Callback super interface.static interface
Error callbackstatic interface
static interface
Generic Callbacksstatic interface
static interface
Stream callbacksstatic interface
Nested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.Handler
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Libvirt
static final int
static final int
static final int
static final int
Fields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
-
Method Summary
Modifier and TypeMethodDescriptionint
virConnCopyLastError
(ConnectionPointer virConnectPtr, virError to) Deprecated.as of libvirt 0.6.0, all errors reported in the per-connection object are also duplicated in the global error object.virConnectBaselineCPU
(ConnectionPointer virConnectPtr, String[] xmlCPUs, int ncpus, int flags) int
virConnectClose
(ConnectionPointer virConnectPtr) int
virConnectCompareCPU
(ConnectionPointer virConnectPtr, String xmlDesc, int flags) int
virConnectDomainEventDeregisterAny
(ConnectionPointer virConnectPtr, int callbackID) int
virConnectDomainEventRegisterAny
(ConnectionPointer virConnectPtr, DomainPointer virDomainPtr, int eventID, Libvirt.VirDomainEventCallback cb, com.sun.jna.Pointer opaque, Libvirt.VirFreeCallback freecb) virConnectDomainXMLFromNative
(ConnectionPointer virConnectPtr, String nativeFormat, String nativeConfig, int flags) virConnectDomainXMLToNative
(ConnectionPointer virConnectPtr, String nativeFormat, String domainXML, int flags) virConnectFindStoragePoolSources
(ConnectionPointer virConnectPtr, String type, String srcSpec, int flags) virConnectGetCapabilities
(ConnectionPointer virConnectPtr) virConnectGetHostname
(ConnectionPointer virConnectPtr) int
virConnectGetLibVersion
(ConnectionPointer virConnectPtr, com.sun.jna.ptr.LongByReference libVer) int
virConnectGetMaxVcpus
(ConnectionPointer virConnectPtr, String type) virConnectGetSysinfo
(ConnectionPointer virConnectPtr, int flags) virConnectGetType
(ConnectionPointer virConnectPtr) virConnectGetURI
(ConnectionPointer virConnectPtr) int
virConnectGetVersion
(ConnectionPointer virConnectPtr, com.sun.jna.ptr.LongByReference hvVer) int
virConnectIsAlive
(ConnectionPointer virConnectPtr) int
virConnectIsEncrypted
(ConnectionPointer virConnectPtr) int
virConnectIsSecure
(ConnectionPointer virConnectPtr) int
virConnectListAllDomains
(ConnectionPointer virConnectPtr, DomainByReference domains, int flags) int
virConnectListDefinedDomains
(ConnectionPointer virConnectPtr, CString[] name, int maxnames) int
virConnectListDefinedInterfaces
(ConnectionPointer virConnectPtr, CString[] name, int maxNames) int
virConnectListDefinedNetworks
(ConnectionPointer virConnectPtr, CString[] name, int maxnames) int
virConnectListDefinedStoragePools
(ConnectionPointer virConnectPtr, CString[] names, int maxnames) int
virConnectListDomains
(ConnectionPointer virConnectPtr, int[] ids, int maxnames) int
virConnectListInterfaces
(ConnectionPointer virConnectPtr, CString[] name, int maxNames) int
virConnectListNetworks
(ConnectionPointer virConnectPtr, CString[] name, int maxnames) int
virConnectListNWFilters
(ConnectionPointer virConnectPtr, CString[] name, int maxnames) int
virConnectListSecrets
(ConnectionPointer virConnectPtr, CString[] uids, int maxUids) int
virConnectListStoragePools
(ConnectionPointer virConnectPtr, CString[] names, int maxnames) int
virConnectNumOfDefinedDomains
(ConnectionPointer virConnectPtr) int
virConnectNumOfDefinedInterfaces
(ConnectionPointer virConnectPtr) int
virConnectNumOfDefinedNetworks
(ConnectionPointer virConnectPtr) int
virConnectNumOfDefinedStoragePools
(ConnectionPointer virConnectPtr) int
virConnectNumOfDomains
(ConnectionPointer virConnectPtr) int
virConnectNumOfInterfaces
(ConnectionPointer virConnectPtr) int
virConnectNumOfNetworks
(ConnectionPointer virConnectPtr) int
virConnectNumOfNWFilters
(ConnectionPointer virConnectPtr) int
virConnectNumOfSecrets
(ConnectionPointer virConnectPtr) int
virConnectNumOfStoragePools
(ConnectionPointer virConnectPtr) virConnectOpen
(String name) virConnectOpenAuth
(String name, virConnectAuth auth, int flags) virConnectOpenReadOnly
(String name) int
virConnectRegisterCloseCallback
(ConnectionPointer virConnectPtr, Libvirt.VirConnectCloseFunc cb, com.sun.jna.Pointer opaque, com.sun.jna.Pointer freeOpaque) int
virConnectSetKeepAlive
(ConnectionPointer virConnectPtr, int interval, int count) int
virConnectUnregisterCloseCallback
(ConnectionPointer virConnectPtr, Libvirt.VirConnectCloseFunc cb) virConnGetLastError
(ConnectionPointer virConnectPtr) Deprecated.as of libvirt 0.6.0, all errors reported in the per-connection object are also duplicated in the global error object.void
virConnResetLastError
(ConnectionPointer virConnectPtr) void
virConnSetErrorFunc
(ConnectionPointer virConnectPtr, com.sun.jna.Pointer userData, Libvirt.VirErrorCallback callback) int
virCopyLastError
(virError error) int
virDomainAbortJob
(DomainPointer virDomainPtr) int
virDomainAttachDevice
(DomainPointer virDomainPtr, String deviceXML) int
virDomainAttachDeviceFlags
(DomainPointer virDomainPtr, String deviceXML, int flags) int
virDomainBlockCommit
(DomainPointer virDomainPtr, String disk, String base, String top, long bandwidth, int flags) int
virDomainBlockCopy
(DomainPointer virDomainPtr, String disk, String deviceXML, virTypedParameter[] params, int nparams, int flags) int
virDomainBlockJobAbort
(DomainPointer virDomainPtr, String disk, int flags) int
virDomainBlockPeek
(DomainPointer virDomainPtr, String disk, long offset, SizeT size, ByteBuffer buffer, int flags) int
virDomainBlockResize
(DomainPointer virDomainPtr, String disk, long size, int flags) int
virDomainBlockStats
(DomainPointer virDomainPtr, String path, virDomainBlockStats stats, SizeT size) int
virDomainCoreDump
(DomainPointer virDomainPtr, String to, int flags) int
virDomainCreate
(DomainPointer virDomainPtr) virDomainCreateLinux
(ConnectionPointer virConnectPtr, String xmlDesc, int flags) int
virDomainCreateWithFlags
(DomainPointer virDomainPtr, int flags) virDomainCreateXML
(ConnectionPointer virConnectPtr, String xmlDesc, int flags) virDomainDefineXML
(ConnectionPointer virConnectPtr, String xmlDesc) int
virDomainDestroy
(DomainPointer virDomainPtr) int
virDomainDetachDevice
(DomainPointer virDomainPtr, String deviceXML) int
virDomainDetachDeviceFlags
(DomainPointer virDomainPtr, String deviceXML, int flags) int
virDomainFree
(DomainPointer virDomainPtr) int
virDomainGetAutostart
(DomainPointer virDomainPtr, com.sun.jna.ptr.IntByReference value) int
virDomainGetBlockInfo
(DomainPointer virDomainPtr, String path, virDomainBlockInfo info, int flags) int
virDomainGetBlockJobInfo
(DomainPointer virDomainPtr, String disk, virDomainBlockJobInfo info, int flags) int
virDomainGetID
(DomainPointer virDomainPtr) int
virDomainGetInfo
(DomainPointer virDomainPtr, virDomainInfo vInfo) int
virDomainGetJobInfo
(DomainPointer virDomainPtr, virDomainJobInfo vInfo) com.sun.jna.NativeLong
virDomainGetMaxMemory
(DomainPointer virDomainPtr) int
virDomainGetMaxVcpus
(DomainPointer virDomainPtr) virDomainGetMetadata
(DomainPointer virDomainPtr, int type, String uri, int flags) virDomainGetName
(DomainPointer virDomainPtr) virDomainGetOSType
(DomainPointer virDomainPtr) int
virDomainGetSchedulerParameters
(DomainPointer virDomainPtr, virSchedParameter[] params, com.sun.jna.ptr.IntByReference nparams) virDomainGetSchedulerType
(DomainPointer virDomainPtr, com.sun.jna.ptr.IntByReference nparams) int
virDomainGetSecurityLabel
(DomainPointer virDomainPtr, Libvirt.SecurityLabel seclabel) int
virDomainGetUUID
(DomainPointer virDomainPtr, byte[] uuidString) int
virDomainGetUUIDString
(DomainPointer virDomainPtr, byte[] uuidString) int
virDomainGetVcpus
(DomainPointer virDomainPtr, virVcpuInfo[] info, int maxInfo, byte[] cpumaps, int maplen) virDomainGetXMLDesc
(DomainPointer virDomainPtr, int flags) int
virDomainHasCurrentSnapshot
(DomainPointer virDomainPtr, int flags) int
virDomainHasManagedSaveImage
(DomainPointer virDomainPtr, int flags) int
virDomainInterfaceAddresses
(DomainPointer virDomainPtr, com.sun.jna.ptr.PointerByReference ifaces, int source, int flags) int
int
virDomainInterfaceStats
(DomainPointer virDomainPtr, String path, virDomainInterfaceStats stats, SizeT size) int
virDomainIsActive
(DomainPointer virDomainPtr) int
virDomainIsPersistent
(DomainPointer virDomainPtr) int
virDomainIsUpdated
(DomainPointer virDomainPtr) virDomainLookupByID
(ConnectionPointer virConnectPtr, int id) virDomainLookupByName
(ConnectionPointer virConnectPtr, String name) virDomainLookupByUUID
(ConnectionPointer virConnectPtr, byte[] uuidBytes) virDomainLookupByUUIDString
(ConnectionPointer virConnectPtr, String uuidstr) int
virDomainManagedSave
(DomainPointer virDomainPtr, int flags) int
virDomainManagedSaveRemove
(DomainPointer virDomainPtr, int flags) int
virDomainMemoryPeek
(DomainPointer virDomainPtr, long start, SizeT size, ByteBuffer buffer, int flags) int
virDomainMemoryStats
(DomainPointer virDomainPtr, virDomainMemoryStats[] stats, int nrStats, int flags) virDomainMigrate
(DomainPointer virDomainPtr, ConnectionPointer virConnectPtr, com.sun.jna.NativeLong flags, String dname, String uri, com.sun.jna.NativeLong bandwidth) virDomainMigrate2
(DomainPointer virDomainPtr, ConnectionPointer virConnectPtr, String dxml, com.sun.jna.NativeLong flags, String dname, String uri, com.sun.jna.NativeLong bandwidth) virDomainMigrate3
(DomainPointer virDomainPtr, ConnectionPointer virConnectPtr, virTypedParameter[] params, int nparams, com.sun.jna.NativeLong flags) int
virDomainMigrateSetMaxDowntime
(DomainPointer virDomainPtr, long downtime, int flags) int
virDomainMigrateToURI
(DomainPointer virDomainPtr, String duri, com.sun.jna.NativeLong flags, String dname, com.sun.jna.NativeLong bandwidth) int
virDomainMigrateToURI2
(DomainPointer virDomainPtr, String dconnuri, String miguri, String dxml, com.sun.jna.NativeLong flags, String dname, com.sun.jna.NativeLong bandwidth) int
virDomainPinVcpu
(DomainPointer virDomainPtr, int vcpu, byte[] cpumap, int maplen) int
virDomainPMSuspendForDuration
(DomainPointer virDomainPtr, int target, long duration, int flags) int
virDomainPMWakeup
(DomainPointer virDomainPtr, int flags) int
virDomainReboot
(DomainPointer virDomainPtr, int flags) int
virDomainRef
(DomainPointer virDomainPtr) int
virDomainReset
(DomainPointer virDomainPtr, int flags) int
virDomainRestore
(ConnectionPointer virConnectPtr, String from) int
virDomainResume
(DomainPointer virDomainPtr) int
virDomainRevertToSnapshot
(DomainSnapshotPointer virDomainSnapshotPtr, int flags) int
virDomainSave
(DomainPointer virDomainPtr, String to) virDomainScreenshot
(DomainPointer virDomainPtr, StreamPointer virStreamPtr, int screen, int flags) int
virDomainSendKey
(DomainPointer virDomainPtr, int codeset, int holdtime, int[] keycodes, int nkeycodes, int flags) int
virDomainSetAutostart
(DomainPointer virDomainPtr, int autoStart) int
virDomainSetMaxMemory
(DomainPointer virDomainPtr, com.sun.jna.NativeLong maxMemory) int
virDomainSetMemory
(DomainPointer virDomainPtr, com.sun.jna.NativeLong maxMemory) int
virDomainSetMetadata
(DomainPointer domain, int type, String metadata, String key, String uri, int flags) int
virDomainSetSchedulerParameters
(DomainPointer virDomainPtr, virSchedParameter[] params, int nparams) int
virDomainSetUserPassword
(DomainPointer virDomainPtr, String user, String password, int flags) int
virDomainSetVcpus
(DomainPointer virDomainPtr, int nvcpus) int
virDomainSetVcpusFlags
(DomainPointer virDomainPtr, int nvcpus, int flags) int
virDomainShutdown
(DomainPointer virDomainPtr) virDomainSnapshotCreateXML
(DomainPointer virDomainPtr, String xmlDesc, int flags) virDomainSnapshotCurrent
(DomainPointer virDomainPtr, int flags) int
virDomainSnapshotDelete
(DomainSnapshotPointer virDomainSnapshotPtr, int flags) int
virDomainSnapshotFree
(DomainSnapshotPointer virDomainSnapshotPtr) virDomainSnapshotGetXMLDesc
(DomainSnapshotPointer virDomainSnapshotPtr, int flags) int
virDomainSnapshotListNames
(DomainPointer virDomainPtr, CString[] names, int nameslen, int flags) virDomainSnapshotLookupByName
(DomainPointer virDomainPtr, String name, int flags) int
virDomainSnapshotNum
(DomainPointer virDomainPtr, int flags) int
virDomainSuspend
(DomainPointer virDomainPtr) int
virDomainUndefine
(DomainPointer virDomainPtr) int
virDomainUndefineFlags
(DomainPointer virDomainPtr, int flags) int
virDomainUpdateDeviceFlags
(DomainPointer virDomainPtr, String xml, int flags) int
virEventAddTimeout
(int milliSeconds, Libvirt.VirEventTimeoutCallback cb, com.sun.jna.Pointer opaque, com.sun.jna.Pointer ff) int
int
virEventRemoveTimeout
(int timer) int
void
virEventUpdateTimeout
(int timer, int timeout) int
virGetVersion
(com.sun.jna.ptr.LongByReference libVer, String type, com.sun.jna.ptr.LongByReference typeVer) int
int
virInterfaceCreate
(InterfacePointer virDevicePointer, int flags) virInterfaceDefineXML
(ConnectionPointer virConnectPtr, String xml, int flags) int
virInterfaceDestroy
(InterfacePointer virDevicePointer, int flags) int
virInterfaceFree
(InterfacePointer virDevicePointer) virInterfaceGetMACString
(InterfacePointer virInterfacePtr) virInterfaceGetName
(InterfacePointer virInterfacePtr) virInterfaceGetXMLDesc
(InterfacePointer virInterfacePtr, int flags) int
virInterfaceIsActive
(InterfacePointer virDevicePointer) virInterfaceLookupByMACString
(ConnectionPointer virConnectPtr, String mac) virInterfaceLookupByName
(ConnectionPointer virConnectPtr, String name) int
virInterfaceUndefine
(InterfacePointer virDevicePointer) int
virNetworkCreate
(NetworkPointer virConnectPtr) virNetworkCreateXML
(ConnectionPointer virConnectPtr, String xmlDesc) virNetworkDefineXML
(ConnectionPointer virConnectPtr, String xmlDesc) int
virNetworkDestroy
(NetworkPointer virConnectPtr) int
virNetworkFree
(NetworkPointer virConnectPtr) int
virNetworkGetAutostart
(NetworkPointer virNetworkPtr, com.sun.jna.ptr.IntByReference value) virNetworkGetBridgeName
(NetworkPointer virNetworkPtr) virNetworkGetName
(NetworkPointer virNetworkPtr) int
virNetworkGetUUID
(NetworkPointer virNetworkPtr, byte[] uuidString) int
virNetworkGetUUIDString
(NetworkPointer virNetworkPtr, byte[] uuidString) virNetworkGetXMLDesc
(NetworkPointer virNetworkPtr, int flags) int
virNetworkIsActive
(NetworkPointer virNetworkPtr) int
virNetworkIsPersistent
(NetworkPointer virNetworkPtr) virNetworkLookupByName
(ConnectionPointer virConnectPtr, String name) virNetworkLookupByUUID
(ConnectionPointer virConnectPtr, byte[] uuidBytes) virNetworkLookupByUUIDString
(ConnectionPointer virConnectPtr, String uuidstr) int
virNetworkSetAutostart
(NetworkPointer virConnectPtr, int autoStart) int
virNetworkUndefine
(NetworkPointer virConnectPtr) virNodeDeviceCreateXML
(ConnectionPointer virConnectPtr, String xml, int flags) int
virNodeDeviceDestroy
(DevicePointer virDevicePointer) int
virNodeDeviceDettach
(DevicePointer virDevicePointer) int
virNodeDeviceFree
(DevicePointer virDevicePointer) virNodeDeviceGetName
(DevicePointer virDevicePointer) virNodeDeviceGetParent
(DevicePointer virDevicePointer) virNodeDeviceGetXMLDesc
(DevicePointer virDevicePointer, int flags) int
virNodeDeviceListCaps
(DevicePointer virDevicePointer, CString[] names, int maxNames) virNodeDeviceLookupByName
(ConnectionPointer virConnectPtr, String name) int
virNodeDeviceNumOfCaps
(DevicePointer virDevicePointer) int
virNodeDeviceReAttach
(DevicePointer virDevicePointer) int
virNodeDeviceReset
(DevicePointer virDevicePointer) int
virNodeGetCellsFreeMemory
(ConnectionPointer virConnectPtr, com.sun.jna.ptr.LongByReference freeMems, int startCell, int maxCells) long
virNodeGetFreeMemory
(ConnectionPointer virConnectPtr) int
virNodeGetInfo
(ConnectionPointer virConnectPtr, virNodeInfo virNodeInfo) int
virNodeGetSecurityModel
(ConnectionPointer virConnectPtr, Libvirt.SecurityModel secmodel) int
virNodeListDevices
(ConnectionPointer virConnectPtr, String capabilityName, CString[] names, int maxnames, int flags) int
virNodeNumOfDevices
(ConnectionPointer virConnectPtr, String capabilityName, int flags) virNWFilterDefineXML
(ConnectionPointer virConnectPtr, String xml) int
virNWFilterFree
(NetworkFilterPointer virNWFilterPtr) virNWFilterGetName
(NetworkFilterPointer virNWFilterPtr) int
virNWFilterGetUUID
(NetworkFilterPointer virNWFilterPtr, byte[] uuidString) int
virNWFilterGetUUIDString
(NetworkFilterPointer virNWFilterPtr, byte[] uuidString) virNWFilterGetXMLDesc
(NetworkFilterPointer virNWFilterPtr, int flags) virNWFilterLookupByName
(ConnectionPointer virConnectPtr, String name) virNWFilterLookupByUUID
(ConnectionPointer virConnectPtr, byte[] uuidBytes) virNWFilterLookupByUUIDString
(ConnectionPointer virConnectPtr, String uuidstr) int
virNWFilterUndefine
(NetworkFilterPointer virNWFilterPtr) void
virSecretDefineXML
(ConnectionPointer virConnectPtr, String xml, int flags) int
virSecretFree
(SecretPointer virSecretPtr) virSecretGetUsageID
(SecretPointer virSecretPtr) int
virSecretGetUsageType
(SecretPointer virSecretPtr) int
virSecretGetUUID
(SecretPointer virSecretPtr, byte[] uuidString) int
virSecretGetUUIDString
(SecretPointer virSecretPtr, byte[] uuidString) com.sun.jna.Pointer
virSecretGetValue
(SecretPointer virSecretPtr, SizeTByReference valueSize, int flags) virSecretGetXMLDesc
(SecretPointer virSecretPtr, int flags) virSecretLookupByUsage
(ConnectionPointer virConnectPtr, int usageType, String usageID) virSecretLookupByUUID
(ConnectionPointer virConnectPtr, byte[] uuidBytes) virSecretLookupByUUIDString
(ConnectionPointer virConnectPtr, String uuidstr) int
virSecretSetValue
(SecretPointer virSecretPtr, byte[] value, SizeT valueSize, int flags) int
virSecretSetValue
(SecretPointer virSecretPtr, String value, SizeT valueSize, int flags) int
virSecretUndefine
(SecretPointer virSecretPtr) void
virSetErrorFunc
(com.sun.jna.Pointer userData, Libvirt.VirErrorCallback callback) int
virStoragePoolBuild
(StoragePoolPointer storagePoolPtr, int flags) int
virStoragePoolCreate
(StoragePoolPointer storagePoolPtr, int flags) virStoragePoolCreateXML
(ConnectionPointer virConnectPtr, String xml, int flags) virStoragePoolDefineXML
(ConnectionPointer virConnectPtr, String xml, int flags) int
virStoragePoolDelete
(StoragePoolPointer storagePoolPtr, int flags) int
virStoragePoolDestroy
(StoragePoolPointer storagePoolPtr) int
virStoragePoolFree
(StoragePoolPointer storagePoolPtr) int
virStoragePoolGetAutostart
(StoragePoolPointer storagePoolPtr, com.sun.jna.ptr.IntByReference value) int
virStoragePoolGetInfo
(StoragePoolPointer storagePoolPtr, virStoragePoolInfo info) virStoragePoolGetName
(StoragePoolPointer storagePoolPtr) int
virStoragePoolGetUUID
(StoragePoolPointer storagePoolPtr, byte[] uuidString) int
virStoragePoolGetUUIDString
(StoragePoolPointer storagePoolPtr, byte[] uuidString) virStoragePoolGetXMLDesc
(StoragePoolPointer storagePoolPtr, int flags) int
virStoragePoolIsActive
(StoragePoolPointer storagePoolPtr) int
virStoragePoolIsPersistent
(StoragePoolPointer storagePoolPtr) int
virStoragePoolListVolumes
(StoragePoolPointer storagePoolPtr, CString[] names, int maxnames) virStoragePoolLookupByName
(ConnectionPointer virConnectPtr, String name) virStoragePoolLookupByUUID
(ConnectionPointer virConnectPtr, byte[] uuidBytes) virStoragePoolLookupByUUIDString
(ConnectionPointer virConnectPtr, String uuidstr) virStoragePoolLookupByVolume
(StorageVolPointer storageVolPtr) int
virStoragePoolNumOfVolumes
(StoragePoolPointer storagePoolPtr) int
virStoragePoolRefresh
(StoragePoolPointer storagePoolPtr, int flags) int
virStoragePoolSetAutostart
(StoragePoolPointer storagePoolPtr, int autostart) int
virStoragePoolUndefine
(StoragePoolPointer storagePoolPtr) virStorageVolCreateXML
(StoragePoolPointer storagePoolPtr, String xml, int flags) virStorageVolCreateXMLFrom
(StoragePoolPointer storagePoolPtr, String xml, StorageVolPointer cloneVolume, int flags) int
virStorageVolDelete
(StorageVolPointer storageVolPtr, int flags) int
virStorageVolDownload
(StorageVolPointer storageVolPointer, StreamPointer streamPtr, long offset, long length, int flags) int
virStorageVolFree
(StorageVolPointer storageVolPtr) int
virStorageVolGetInfo
(StorageVolPointer storageVolPtr, virStorageVolInfo info) virStorageVolGetKey
(StorageVolPointer storageVolPtr) virStorageVolGetName
(StorageVolPointer storageVolPtr) virStorageVolGetPath
(StorageVolPointer storageVolPtr) virStorageVolGetXMLDesc
(StorageVolPointer storageVolPtr, int flags) virStorageVolLookupByKey
(ConnectionPointer virConnectPtr, String name) virStorageVolLookupByName
(StoragePoolPointer storagePoolPtr, String name) virStorageVolLookupByPath
(ConnectionPointer virConnectPtr, String path) int
virStorageVolResize
(StorageVolPointer storageVolPtr, long capacity, int flags) int
virStorageVolUpload
(StorageVolPointer storageVolPointer, StreamPointer streamPtr, long offset, long length, int flags) int
virStorageVolWipe
(StorageVolPointer storageVolPtr, int flags) int
virStreamAbort
(StreamPointer virStreamPtr) int
virStreamEventAddCallback
(StreamPointer virStreamPtr, int events, Libvirt.VirStreamEventCallback cb, com.sun.jna.Pointer opaque, Libvirt.VirFreeCallback ff) int
virStreamEventRemoveCallback
(StreamPointer virStreamPtr) int
virStreamEventUpdateCallback
(StreamPointer virStreamPtr, int events) int
virStreamFinish
(StreamPointer virStreamPtr) int
virStreamFree
(StreamPointer virStreamPtr) virStreamNew
(ConnectionPointer virConnectPtr, int flags) int
virStreamRecv
(StreamPointer virStreamPtr, ByteBuffer data, SizeT length) int
virStreamRecvAll
(StreamPointer virStreamPtr, Libvirt.VirStreamSinkFunc handler, com.sun.jna.Pointer opaque) int
virStreamSend
(StreamPointer virStreamPtr, ByteBuffer data, SizeT size) int
virStreamSendAll
(StreamPointer virStreamPtr, Libvirt.VirStreamSourceFunc handler, com.sun.jna.Pointer opaque)
-
Field Details
-
INSTANCE
-
VIR_UUID_BUFLEN
static final int VIR_UUID_BUFLEN- See Also:
-
VIR_UUID_STRING_BUFLEN
static final int VIR_UUID_STRING_BUFLEN- See Also:
-
VIR_DOMAIN_SCHED_FIELD_LENGTH
static final int VIR_DOMAIN_SCHED_FIELD_LENGTH- See Also:
-
VIR_TYPED_PARAM_FIELD_LENGTH
static final int VIR_TYPED_PARAM_FIELD_LENGTH- See Also:
-
-
Method Details
-
virConnectBaselineCPU
CString virConnectBaselineCPU(ConnectionPointer virConnectPtr, String[] xmlCPUs, int ncpus, int flags) -
virConnCopyLastError
Deprecated.as of libvirt 0.6.0, all errors reported in the per-connection object are also duplicated in the global error object. This method remains for backwards compatibility. UsevirCopyLastError(org.libvirt.jna.virError)
instead. -
virConnectClose
-
virConnectCompareCPU
-
virConnectDomainEventRegisterAny
int virConnectDomainEventRegisterAny(ConnectionPointer virConnectPtr, DomainPointer virDomainPtr, int eventID, Libvirt.VirDomainEventCallback cb, com.sun.jna.Pointer opaque, Libvirt.VirFreeCallback freecb) -
virConnectRegisterCloseCallback
int virConnectRegisterCloseCallback(ConnectionPointer virConnectPtr, Libvirt.VirConnectCloseFunc cb, com.sun.jna.Pointer opaque, com.sun.jna.Pointer freeOpaque) -
virConnectUnregisterCloseCallback
int virConnectUnregisterCloseCallback(ConnectionPointer virConnectPtr, Libvirt.VirConnectCloseFunc cb) -
virConnectDomainEventDeregisterAny
-
virConnSetErrorFunc
void virConnSetErrorFunc(ConnectionPointer virConnectPtr, com.sun.jna.Pointer userData, Libvirt.VirErrorCallback callback) -
virConnectIsAlive
-
virConnectIsEncrypted
-
virConnectIsSecure
-
virConnectFindStoragePoolSources
CString virConnectFindStoragePoolSources(ConnectionPointer virConnectPtr, String type, String srcSpec, int flags) -
virConnectGetCapabilities
-
virConnectGetHostname
-
virConnectGetLibVersion
int virConnectGetLibVersion(ConnectionPointer virConnectPtr, com.sun.jna.ptr.LongByReference libVer) -
virConnectGetMaxVcpus
-
virConnectGetSysinfo
-
virConnectGetType
-
virConnectGetURI
-
virConnectGetVersion
-
virConnectListDefinedDomains
-
virConnectListDefinedNetworks
-
virConnectListDefinedStoragePools
int virConnectListDefinedStoragePools(ConnectionPointer virConnectPtr, CString[] names, int maxnames) -
virConnectListDefinedInterfaces
-
virConnectListDomains
-
virConnectListAllDomains
-
virConnectListInterfaces
-
virConnectListNetworks
-
virConnectListNWFilters
-
virConnectListSecrets
-
virConnectListStoragePools
-
virConnectNumOfDefinedDomains
-
virConnectNumOfDefinedNetworks
-
virConnectNumOfDefinedInterfaces
-
virConnectNumOfDefinedStoragePools
-
virConnectNumOfDomains
-
virConnectNumOfInterfaces
-
virConnectNumOfNetworks
-
virConnectNumOfNWFilters
-
virConnectNumOfSecrets
-
virConnectNumOfStoragePools
-
virConnectOpen
-
virConnectOpenAuth
-
virConnectOpenReadOnly
-
virConnectSetKeepAlive
-
virConnGetLastError
Deprecated.as of libvirt 0.6.0, all errors reported in the per-connection object are also duplicated in the global error object. This method remains only for backwards compatibility. UsevirGetLastError()
instead. -
virConnResetLastError
-
virConnectDomainXMLFromNative
CString virConnectDomainXMLFromNative(ConnectionPointer virConnectPtr, String nativeFormat, String nativeConfig, int flags) -
virConnectDomainXMLToNative
CString virConnectDomainXMLToNative(ConnectionPointer virConnectPtr, String nativeFormat, String domainXML, int flags) -
virGetVersion
int virGetVersion(com.sun.jna.ptr.LongByReference libVer, String type, com.sun.jna.ptr.LongByReference typeVer) -
virInitialize
int virInitialize() -
virCopyLastError
-
virGetLastError
virError virGetLastError() -
virResetLastError
void virResetLastError() -
virSetErrorFunc
-
virEventRegisterDefaultImpl
int virEventRegisterDefaultImpl() -
virEventRunDefaultImpl
int virEventRunDefaultImpl() -
virDomainAbortJob
-
virDomainAttachDevice
-
virDomainAttachDeviceFlags
-
virDomainBlockCommit
int virDomainBlockCommit(DomainPointer virDomainPtr, String disk, String base, String top, long bandwidth, int flags) -
virDomainBlockCopy
int virDomainBlockCopy(DomainPointer virDomainPtr, String disk, String deviceXML, virTypedParameter[] params, int nparams, int flags) -
virDomainBlockJobAbort
-
virDomainBlockPeek
int virDomainBlockPeek(DomainPointer virDomainPtr, String disk, long offset, SizeT size, ByteBuffer buffer, int flags) -
virDomainBlockStats
int virDomainBlockStats(DomainPointer virDomainPtr, String path, virDomainBlockStats stats, SizeT size) -
virDomainBlockResize
-
virDomainCoreDump
-
virDomainCreate
-
virDomainCreateWithFlags
-
virDomainCreateLinux
-
virDomainCreateXML
-
virDomainDefineXML
-
virDomainDestroy
-
virDomainDetachDevice
-
virDomainDetachDeviceFlags
-
virDomainFree
-
virDomainGetAutostart
-
virDomainGetBlockInfo
int virDomainGetBlockInfo(DomainPointer virDomainPtr, String path, virDomainBlockInfo info, int flags) -
virDomainGetBlockJobInfo
int virDomainGetBlockJobInfo(DomainPointer virDomainPtr, String disk, virDomainBlockJobInfo info, int flags) -
virDomainGetID
-
virDomainGetInfo
-
virDomainGetJobInfo
-
virDomainGetMaxMemory
-
virDomainGetMaxVcpus
-
virDomainGetMetadata
-
virDomainGetName
-
virDomainGetOSType
-
virDomainGetSchedulerParameters
int virDomainGetSchedulerParameters(DomainPointer virDomainPtr, virSchedParameter[] params, com.sun.jna.ptr.IntByReference nparams) -
virDomainGetSchedulerType
CString virDomainGetSchedulerType(DomainPointer virDomainPtr, com.sun.jna.ptr.IntByReference nparams) -
virDomainGetSecurityLabel
-
virDomainGetUUID
-
virDomainGetUUIDString
-
virDomainGetVcpus
int virDomainGetVcpus(DomainPointer virDomainPtr, virVcpuInfo[] info, int maxInfo, byte[] cpumaps, int maplen) -
virDomainGetXMLDesc
-
virDomainHasCurrentSnapshot
-
virDomainHasManagedSaveImage
-
virDomainInterfaceAddresses
int virDomainInterfaceAddresses(DomainPointer virDomainPtr, com.sun.jna.ptr.PointerByReference ifaces, int source, int flags) -
virDomainInterfaceFree
-
virDomainInterfaceStats
int virDomainInterfaceStats(DomainPointer virDomainPtr, String path, virDomainInterfaceStats stats, SizeT size) -
virDomainIsActive
-
virDomainIsPersistent
-
virDomainIsUpdated
-
virDomainLookupByID
-
virDomainLookupByName
-
virDomainLookupByUUID
-
virDomainLookupByUUIDString
-
virDomainManagedSave
-
virDomainManagedSaveRemove
-
virDomainMemoryPeek
int virDomainMemoryPeek(DomainPointer virDomainPtr, long start, SizeT size, ByteBuffer buffer, int flags) -
virDomainMigrate
DomainPointer virDomainMigrate(DomainPointer virDomainPtr, ConnectionPointer virConnectPtr, com.sun.jna.NativeLong flags, String dname, String uri, com.sun.jna.NativeLong bandwidth) -
virDomainMigrate2
DomainPointer virDomainMigrate2(DomainPointer virDomainPtr, ConnectionPointer virConnectPtr, String dxml, com.sun.jna.NativeLong flags, String dname, String uri, com.sun.jna.NativeLong bandwidth) -
virDomainMigrate3
DomainPointer virDomainMigrate3(DomainPointer virDomainPtr, ConnectionPointer virConnectPtr, virTypedParameter[] params, int nparams, com.sun.jna.NativeLong flags) -
virDomainMigrateSetMaxDowntime
-
virDomainMigrateToURI
int virDomainMigrateToURI(DomainPointer virDomainPtr, String duri, com.sun.jna.NativeLong flags, String dname, com.sun.jna.NativeLong bandwidth) -
virDomainMigrateToURI2
int virDomainMigrateToURI2(DomainPointer virDomainPtr, String dconnuri, String miguri, String dxml, com.sun.jna.NativeLong flags, String dname, com.sun.jna.NativeLong bandwidth) -
virDomainMemoryStats
int virDomainMemoryStats(DomainPointer virDomainPtr, virDomainMemoryStats[] stats, int nrStats, int flags) -
virDomainPinVcpu
-
virDomainPMSuspendForDuration
-
virDomainPMWakeup
-
virDomainReboot
-
virDomainRef
-
virDomainReset
-
virDomainRestore
-
virDomainRevertToSnapshot
-
virDomainResume
-
virDomainSave
-
virDomainSendKey
int virDomainSendKey(DomainPointer virDomainPtr, int codeset, int holdtime, int[] keycodes, int nkeycodes, int flags) -
virDomainScreenshot
CString virDomainScreenshot(DomainPointer virDomainPtr, StreamPointer virStreamPtr, int screen, int flags) -
virDomainSetAutostart
-
virDomainSetMaxMemory
-
virDomainSetMemory
-
virDomainSetMetadata
int virDomainSetMetadata(DomainPointer domain, int type, String metadata, String key, String uri, int flags) -
virDomainSetSchedulerParameters
int virDomainSetSchedulerParameters(DomainPointer virDomainPtr, virSchedParameter[] params, int nparams) -
virDomainSetVcpus
-
virDomainSetVcpusFlags
-
virDomainShutdown
-
virDomainSuspend
-
virDomainUpdateDeviceFlags
-
virDomainUndefine
-
virDomainUndefineFlags
-
virNetworkCreate
-
virNetworkCreateXML
-
virNetworkDefineXML
-
virNetworkDestroy
-
virNetworkFree
-
virNetworkGetAutostart
-
virNetworkGetBridgeName
-
virNetworkGetName
-
virNetworkGetUUID
-
virNetworkGetUUIDString
-
virNetworkGetXMLDesc
-
virNetworkIsActive
-
virNetworkIsPersistent
-
virNetworkLookupByName
-
virNetworkLookupByUUID
-
virNetworkLookupByUUIDString
-
virNetworkSetAutostart
-
virNetworkUndefine
-
virNodeGetInfo
-
virNodeGetCellsFreeMemory
int virNodeGetCellsFreeMemory(ConnectionPointer virConnectPtr, com.sun.jna.ptr.LongByReference freeMems, int startCell, int maxCells) -
virNodeGetFreeMemory
-
virNodeGetSecurityModel
-
virNodeNumOfDevices
-
virNodeListDevices
int virNodeListDevices(ConnectionPointer virConnectPtr, String capabilityName, CString[] names, int maxnames, int flags) -
virNodeDeviceLookupByName
-
virNodeDeviceGetName
-
virNodeDeviceGetParent
-
virNodeDeviceNumOfCaps
-
virNodeDeviceListCaps
-
virNodeDeviceGetXMLDesc
-
virNodeDeviceFree
-
virNodeDeviceDettach
-
virNodeDeviceReAttach
-
virNodeDeviceReset
-
virNodeDeviceCreateXML
-
virNodeDeviceDestroy
-
virStoragePoolBuild
-
virStoragePoolCreate
-
virStoragePoolCreateXML
-
virStoragePoolDefineXML
-
virStoragePoolDelete
-
virStoragePoolDestroy
-
virStoragePoolFree
-
virStoragePoolGetAutostart
int virStoragePoolGetAutostart(StoragePoolPointer storagePoolPtr, com.sun.jna.ptr.IntByReference value) -
virStoragePoolGetInfo
-
virStoragePoolGetName
-
virStoragePoolGetUUID
-
virStoragePoolGetUUIDString
-
virStoragePoolGetXMLDesc
-
virStoragePoolListVolumes
-
virStoragePoolIsActive
-
virStoragePoolIsPersistent
-
virStoragePoolLookupByName
-
virStoragePoolLookupByUUID
-
virStoragePoolLookupByUUIDString
StoragePoolPointer virStoragePoolLookupByUUIDString(ConnectionPointer virConnectPtr, String uuidstr) -
virStoragePoolLookupByVolume
-
virStoragePoolNumOfVolumes
-
virStoragePoolRefresh
-
virStoragePoolSetAutostart
-
virStoragePoolUndefine
-
virStorageVolCreateXML
-
virStorageVolCreateXMLFrom
StorageVolPointer virStorageVolCreateXMLFrom(StoragePoolPointer storagePoolPtr, String xml, StorageVolPointer cloneVolume, int flags) -
virStorageVolDelete
-
virStorageVolDownload
int virStorageVolDownload(StorageVolPointer storageVolPointer, StreamPointer streamPtr, long offset, long length, int flags) -
virStorageVolFree
-
virStorageVolGetInfo
-
virStorageVolGetKey
-
virStorageVolGetName
-
virStorageVolGetPath
-
virStorageVolGetXMLDesc
-
virStorageVolLookupByKey
-
virStorageVolLookupByName
-
virStorageVolLookupByPath
-
virStorageVolWipe
-
virStorageVolResize
-
virStorageVolUpload
int virStorageVolUpload(StorageVolPointer storageVolPointer, StreamPointer streamPtr, long offset, long length, int flags) -
virInterfaceCreate
-
virInterfaceDefineXML
-
virInterfaceDestroy
-
virInterfaceFree
-
virInterfaceGetName
-
virInterfaceGetMACString
-
virInterfaceGetXMLDesc
-
virInterfaceIsActive
-
virInterfaceLookupByMACString
-
virInterfaceLookupByName
-
virInterfaceUndefine
-
virSecretFree
-
virSecretDefineXML
-
virSecretGetUUID
-
virSecretGetUUIDString
-
virSecretGetUsageID
-
virSecretGetUsageType
-
virSecretGetValue
com.sun.jna.Pointer virSecretGetValue(SecretPointer virSecretPtr, SizeTByReference valueSize, int flags) -
virSecretGetXMLDesc
-
virSecretLookupByUsage
SecretPointer virSecretLookupByUsage(ConnectionPointer virConnectPtr, int usageType, String usageID) -
virSecretLookupByUUID
-
virSecretLookupByUUIDString
-
virSecretSetValue
-
virSecretSetValue
-
virSecretUndefine
-
virStreamAbort
-
virStreamEventAddCallback
int virStreamEventAddCallback(StreamPointer virStreamPtr, int events, Libvirt.VirStreamEventCallback cb, com.sun.jna.Pointer opaque, Libvirt.VirFreeCallback ff) -
virStreamEventUpdateCallback
-
virStreamEventRemoveCallback
-
virStreamFinish
-
virStreamFree
-
virStreamNew
-
virStreamSend
-
virStreamSendAll
int virStreamSendAll(StreamPointer virStreamPtr, Libvirt.VirStreamSourceFunc handler, com.sun.jna.Pointer opaque) -
virStreamRecv
-
virStreamRecvAll
int virStreamRecvAll(StreamPointer virStreamPtr, Libvirt.VirStreamSinkFunc handler, com.sun.jna.Pointer opaque) -
virDomainSnapshotCreateXML
DomainSnapshotPointer virDomainSnapshotCreateXML(DomainPointer virDomainPtr, String xmlDesc, int flags) -
virDomainSnapshotCurrent
-
virDomainSnapshotDelete
-
virDomainSnapshotGetXMLDesc
-
virDomainSnapshotFree
-
virDomainSnapshotListNames
int virDomainSnapshotListNames(DomainPointer virDomainPtr, CString[] names, int nameslen, int flags) -
virDomainSnapshotLookupByName
DomainSnapshotPointer virDomainSnapshotLookupByName(DomainPointer virDomainPtr, String name, int flags) -
virDomainSnapshotNum
-
virNWFilterGetXMLDesc
-
virNWFilterDefineXML
-
virNWFilterFree
-
virNWFilterLookupByName
-
virNWFilterLookupByUUID
-
virNWFilterLookupByUUIDString
-
virNWFilterGetName
-
virNWFilterGetUUID
-
virNWFilterGetUUIDString
-
virNWFilterUndefine
-
virEventAddTimeout
int virEventAddTimeout(int milliSeconds, Libvirt.VirEventTimeoutCallback cb, com.sun.jna.Pointer opaque, com.sun.jna.Pointer ff) -
virEventRemoveTimeout
int virEventRemoveTimeout(int timer) -
virEventUpdateTimeout
void virEventUpdateTimeout(int timer, int timeout) -
virDomainSetUserPassword
-