libvirt

package module
v0.0.0-...-04a61f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 11 Imported by: 0

README

libvirt-go

CI CodeQL

A cgo-free Go binding for libvirt, loaded at runtime with purego.

This project is an independent implementation. It does not import or wrap gitlab.com/libvirt/libvirt-go-module.

[!WARNING] This project is experimental. CI covers Linux synthetic drivers and disposable QEMU/libvirt fixtures, but it has not been validated in a production libvirt/QEMU/KVM environment and is not currently recommended for production workloads. macOS, FreeBSD, and NetBSD are untested and unsupported.

Why

  • Build with CGO_ENABLED=0.
  • No libvirt headers, pkg-config, or C compiler are needed at build time.
  • Keep the normal in-process libvirt C API instead of reimplementing its RPC protocols.
  • Preserve libvirt's reference-counting and structured error information in an idiomatic Go API.

A compatible Linux libvirt shared library is still required at runtime. The loader tries libvirt.so.0/libvirt.so; set LIBVIRT_GO_LIBRARY before the first API call to use an explicit path. Admin, QEMU, and LXC extension libraries can be overridden with LIBVIRT_ADMIN_LIBRARY, LIBVIRT_QEMU_LIBRARY, and LIBVIRT_LXC_LIBRARY.

Repository layout

  • .github/workflows/: CI and CodeQL pipelines;
  • api/: vendored libvirt 12.6.0 API XML metadata;
  • ci/: isolated libvirt daemon configuration for CI;
  • cmd/libvirt-api-gen/: generator executable;
  • internal/generator/: XML parsing, templates, and Go source generation;
  • integration/: black-box synthetic and gated real-libvirt tests;
  • integration/testdata/real/: mutating real Linux XML fixtures;
  • examples/: buildable public API examples;
  • docs/: architecture, CI, and testing details.

Public package files remain at the repository root because Go package and method boundaries follow directories. See docs/architecture.md for the rationale.

Generated API metadata

A shared library exposes symbol names, but it does not describe C parameter types, enum values, or ownership rules. Generation therefore uses libvirt's official main, admin, QEMU, and LXC API XML files. The repository vendors the libvirt 12.6.0 metadata under api/; see api/README.md for provenance.

go generate ./... resolves the XML in this order:

  1. the path in LIBVIRT_API_XML;
  2. libvirt-api.xml or api/libvirt-api.xml in this repository;
  3. /usr/share/libvirt/api/libvirt-api.xml or the corresponding /usr/local path.

The admin, LXC, and QEMU XML files must be present beside the resolved main XML file. Their runtime shared libraries are optional; absent extension libraries make only their corresponding symbols unavailable.

The generator emits every function declared by all four API XML files (568 functions and 1,093 enums for the vendored libvirt 12.6.0 metadata), including purego signatures, introduction versions, source-library routing, the symbol registration table, and public RawAPI.Vir* methods. It also emits idiomatic enum aliases used by the high-level API. The generated libvirt_api.gen.go is committed, so package consumers still need only the runtime shared library.

Generated symbols are optional at load time. This lets output generated from a new libvirt XML load an older libvirt shared library: symbol presence is checked with dlsym, missing functions are recorded, and a high-level call returns a SymbolUnavailableError wrapping ErrSymbolUnavailable instead of calling a nil function pointer. HasSymbol reports runtime availability and SymbolVersion reports the upstream introduction version. Symbol presence, rather than only a numeric version comparison, also supports distribution backports. Both high-level and generated raw calls return the compatibility error before touching a missing function pointer.

Raw methods otherwise preserve C return values and ownership rules. Their error result only represents symbol availability, so callers must still check libvirt's C failure sentinel and manage native resources. Lock the goroutine with runtime.LockOSThread when a raw failing call must be paired with RawAPI.VirGetLastError.

To update against a libvirt source checkout or a specific installed version:

LIBVIRT_API_XML=/path/to/libvirt-api.xml go generate ./...
CGO_ENABLED=0 go test ./...

High-level wrappers remain handwritten because reference ownership, allocated return values, thread-local errors, and idiomatic Go resource lifetimes are behavioral contracts rather than facts recoverable from an ELF/Mach-O symbol table.

Current scope

The generated low-level surface covers the main, admin, QEMU, and LXC API XML files. The ownership-aware high-level API covers connections, domains, networks and ports, storage pools and volumes, secrets, node devices, host interfaces, network filters, snapshots, checkpoints, streams, typed domain parameters, the default event loop, connection-close callbacks, and domain lifecycle callbacks. Other specialized operations remain available through RawAPI.

The public API owns native resources explicitly:

  • call (*Connect).Close for every successful open;
  • call Free for every returned object or stream reference;
  • call callback handle Close methods to unregister callbacks;
  • do not copy handle values after first use.

Example

package main

import (
 "fmt"
 "log"

 libvirt "github.com/Ns2Kracy/libvirt-go"
)

func main() {
 raw, err := libvirt.GetVersion()
 if err != nil {
  log.Fatal(err)
 }
 fmt.Println("libvirt", libvirt.DecodeVersion(raw))

 conn, err := libvirt.NewConnectReadOnly("test:///default")
 if err != nil {
  log.Fatal(err)
 }
 defer conn.Close()

 domains, err := conn.ListAllDomains(0)
 if err != nil {
  log.Fatal(err)
 }
 for _, domain := range domains {
  name, nameErr := domain.GetName()
  if freeErr := domain.Free(); freeErr != nil {
   log.Printf("free domain: %v", freeErr)
  }
  if nameErr != nil {
   log.Fatal(nameErr)
  }
  fmt.Println(name)
 }
}

Run it without cgo:

CGO_ENABLED=0 go run ./path/to/your/program

Platform and ABI notes

Only Linux amd64 is currently runtime-tested and supported. Linux arm64 has only been compile-checked. The macOS, FreeBSD, and NetBSD loader code has not been tested by this project and must be treated as unsupported.

Foreign signatures must exactly match libvirt's C ABI. Failed calls and virGetLastError are kept on one OS thread so libvirt's thread-local error record cannot be lost to goroutine migration. Strings and arrays owned by the caller are copied into Go memory and released with the process C allocator.

The shared library intentionally remains loaded for the process lifetime; unloading it would invalidate the registered foreign function values.

Validation

CGO_ENABLED=0 go test ./...
LIBVIRT_INTEGRATION=1 CGO_ENABLED=0 go test -run Integration ./integration

The integration test uses libvirt's synthetic test:///default driver on Linux. It exercises resource ownership, typed parameters, callback registration, and main/admin/QEMU/LXC symbol loading.

Real Linux fixtures live in integration/testdata/real and are protected by explicit mutation gates:

LIBVIRT_REAL_INTEGRATION=1 \
LIBVIRT_REAL_ALLOW_MUTATION=1 \
LIBVIRT_REAL_URI=qemu:///session \
CGO_ENABLED=0 go test -run RealIntegration -v ./integration

Set LIBVIRT_REAL_START_GUEST=1 to additionally start the no-disk fixture VM and wait for a lifecycle callback. Run this only on a disposable Linux host or VM; see integration/testdata/real/README.md. The GitHub Actions real-integration job provisions this environment on an ephemeral runner. This development machine has no usable Docker daemon, QEMU binary, or libvirt daemon, so the same job could not be executed locally. No production-environment validation has been performed.

Next areas

Before a stable release, the real fixture suite must be run in disposable libvirtd/virtqemud environments with QEMU/KVM, storage/stream transfers and callback delivery need stress coverage, and the binding needs race/fuzz tests, security review, and validation against multiple old and new libvirt versions.

License

Project code and documentation are licensed under the MIT License; see LICENSE. Vendored libvirt API XML metadata under api/ is derived from libvirt's LGPL-2.1-or-later headers and retains that license; see api/LICENSE and api/README.md.

Documentation

Overview

Package libvirt provides a cgo-free Go binding to the libvirt C API.

The package resolves libvirt at runtime and calls it through purego. It does not require libvirt headers, pkg-config, or a C compiler at build time. A compatible libvirt shared library is still required when the API is used. RawAPI exposes functions generated from the main, admin, QEMU, and LXC API metadata; ownership-aware wrappers provide the idiomatic resource layer. The project is experimental, Linux-only, and not production validated.

Index

Constants

View Source
const (
	VIR_CLIENT_TRANS_LAST                                            = 3
	VIR_CLIENT_TRANS_TCP                                             = 1
	VIR_CLIENT_TRANS_TLS                                             = 2
	VIR_CLIENT_TRANS_UNIX                                            = 0
	VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES                         = 1
	VIR_CONNECT_BASELINE_CPU_IGNORE_HOST                             = 4
	VIR_CONNECT_BASELINE_CPU_MIGRATABLE                              = 2
	VIR_CONNECT_CLOSE_REASON_CLIENT                                  = 3
	VIR_CONNECT_CLOSE_REASON_EOF                                     = 1
	VIR_CONNECT_CLOSE_REASON_ERROR                                   = 0
	VIR_CONNECT_CLOSE_REASON_KEEPALIVE                               = 2
	VIR_CONNECT_CLOSE_REASON_LAST                                    = 4
	VIR_CONNECT_COMPARE_CPU_FAIL_INCOMPATIBLE                        = 1
	VIR_CONNECT_COMPARE_CPU_VALIDATE_XML                             = 2
	VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_CHANNEL          = 2
	VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_DOMAIN_STARTED   = 1
	VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_LAST             = 3
	VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_UNKNOWN          = 0
	VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_CONNECTED         = 1
	VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_DISCONNECTED      = 2
	VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_LAST              = 3
	VIR_CONNECT_DOMAIN_EVENT_CHANNEL_LIFECYCLE_REASON_CHANNEL        = 2
	VIR_CONNECT_DOMAIN_EVENT_CHANNEL_LIFECYCLE_REASON_DOMAIN_STARTED = 1
	VIR_CONNECT_DOMAIN_EVENT_CHANNEL_LIFECYCLE_REASON_LAST           = 3
	VIR_CONNECT_DOMAIN_EVENT_CHANNEL_LIFECYCLE_REASON_UNKNOWN        = 0
	VIR_CONNECT_DOMAIN_EVENT_CHANNEL_LIFECYCLE_STATE_CONNECTED       = 1
	VIR_CONNECT_DOMAIN_EVENT_CHANNEL_LIFECYCLE_STATE_DISCONNECTED    = 2
	VIR_CONNECT_DOMAIN_EVENT_CHANNEL_LIFECYCLE_STATE_LAST            = 3
	VIR_CONNECT_DOMAIN_QEMU_MONITOR_EVENT_REGISTER_NOCASE            = 2
	VIR_CONNECT_DOMAIN_QEMU_MONITOR_EVENT_REGISTER_REGEX             = 1
	VIR_CONNECT_GET_ALL_DOMAINS_STATS_ACTIVE                         = VIR_CONNECT_LIST_DOMAINS_ACTIVE
	VIR_CONNECT_GET_ALL_DOMAINS_STATS_BACKING                        = 1073741824
	VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS                  = 2147483648
	VIR_CONNECT_GET_ALL_DOMAINS_STATS_INACTIVE                       = VIR_CONNECT_LIST_DOMAINS_INACTIVE
	VIR_CONNECT_GET_ALL_DOMAINS_STATS_NOWAIT                         = 536870912
	VIR_CONNECT_GET_ALL_DOMAINS_STATS_OTHER                          = VIR_CONNECT_LIST_DOMAINS_OTHER
	VIR_CONNECT_GET_ALL_DOMAINS_STATS_PAUSED                         = VIR_CONNECT_LIST_DOMAINS_PAUSED
	VIR_CONNECT_GET_ALL_DOMAINS_STATS_PERSISTENT                     = VIR_CONNECT_LIST_DOMAINS_PERSISTENT
	VIR_CONNECT_GET_ALL_DOMAINS_STATS_RUNNING                        = VIR_CONNECT_LIST_DOMAINS_RUNNING
	VIR_CONNECT_GET_ALL_DOMAINS_STATS_SHUTOFF                        = VIR_CONNECT_LIST_DOMAINS_SHUTOFF
	VIR_CONNECT_GET_ALL_DOMAINS_STATS_TRANSIENT                      = VIR_CONNECT_LIST_DOMAINS_TRANSIENT
	VIR_CONNECT_GET_DOMAIN_CAPABILITIES_DISABLE_DEPRECATED_FEATURES  = 1
	VIR_CONNECT_GET_DOMAIN_CAPABILITIES_EXPAND_CPU_FEATURES          = 2
	VIR_CONNECT_GET_DOMAIN_CAPABILITIES_SUPPORTED_CPU_FEATURES       = 4
	VIR_CONNECT_LIST_DOMAINS_ACTIVE                                  = 1
	VIR_CONNECT_LIST_DOMAINS_AUTOSTART                               = 1024
	VIR_CONNECT_LIST_DOMAINS_HAS_CHECKPOINT                          = 16384
	VIR_CONNECT_LIST_DOMAINS_HAS_SNAPSHOT                            = 4096
	VIR_CONNECT_LIST_DOMAINS_INACTIVE                                = 2
	VIR_CONNECT_LIST_DOMAINS_MANAGEDSAVE                             = 256
	VIR_CONNECT_LIST_DOMAINS_NO_AUTOSTART                            = 2048
	VIR_CONNECT_LIST_DOMAINS_NO_CHECKPOINT                           = 32768
	VIR_CONNECT_LIST_DOMAINS_NO_MANAGEDSAVE                          = 512
	VIR_CONNECT_LIST_DOMAINS_NO_SNAPSHOT                             = 8192
	VIR_CONNECT_LIST_DOMAINS_OTHER                                   = 128
	VIR_CONNECT_LIST_DOMAINS_PAUSED                                  = 32
	VIR_CONNECT_LIST_DOMAINS_PERSISTENT                              = 4
	VIR_CONNECT_LIST_DOMAINS_RUNNING                                 = 16
	VIR_CONNECT_LIST_DOMAINS_SHUTOFF                                 = 64
	VIR_CONNECT_LIST_DOMAINS_TRANSIENT                               = 8
	VIR_CONNECT_LIST_INTERFACES_ACTIVE                               = 2
	VIR_CONNECT_LIST_INTERFACES_INACTIVE                             = 1
	VIR_CONNECT_LIST_NETWORKS_ACTIVE                                 = 2
	VIR_CONNECT_LIST_NETWORKS_AUTOSTART                              = 16
	VIR_CONNECT_LIST_NETWORKS_INACTIVE                               = 1
	VIR_CONNECT_LIST_NETWORKS_NO_AUTOSTART                           = 32
	VIR_CONNECT_LIST_NETWORKS_PERSISTENT                             = 4
	VIR_CONNECT_LIST_NETWORKS_TRANSIENT                              = 8
	VIR_CONNECT_LIST_NODE_DEVICES_ACTIVE                             = 2147483648
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_CARD                        = 262144
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_MATRIX                      = 1048576
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_QUEUE                       = 524288
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_CCWGROUP_DEV                   = 4194304
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_CCWGROUP_MEMBER                = 8388608
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_CCW_DEV                        = 32768
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_CSS_DEV                        = 65536
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_DRM                            = 4096
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_FC_HOST                        = 512
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_MDEV                           = 16384
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_MDEV_TYPES                     = 8192
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_NET                            = 16
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_PCI_DEV                        = 2
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI                           = 128
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_GENERIC                   = 2048
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_HOST                      = 32
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_TARGET                    = 64
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_STORAGE                        = 256
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_SYSTEM                         = 1
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_DEV                        = 4
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_INTERFACE                  = 8
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_VDPA                           = 131072
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPD                            = 2097152
	VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPORTS                         = 1024
	VIR_CONNECT_LIST_NODE_DEVICES_INACTIVE                           = 1073741824
	VIR_CONNECT_LIST_NODE_DEVICES_PERSISTENT                         = 268435456
	VIR_CONNECT_LIST_NODE_DEVICES_TRANSIENT                          = 536870912
	VIR_CONNECT_LIST_SECRETS_EPHEMERAL                               = 1
	VIR_CONNECT_LIST_SECRETS_NO_EPHEMERAL                            = 2
	VIR_CONNECT_LIST_SECRETS_NO_PRIVATE                              = 8
	VIR_CONNECT_LIST_SECRETS_PRIVATE                                 = 4
	VIR_CONNECT_LIST_STORAGE_POOLS_ACTIVE                            = 2
	VIR_CONNECT_LIST_STORAGE_POOLS_AUTOSTART                         = 16
	VIR_CONNECT_LIST_STORAGE_POOLS_DIR                               = 64
	VIR_CONNECT_LIST_STORAGE_POOLS_DISK                              = 1024
	VIR_CONNECT_LIST_STORAGE_POOLS_FS                                = 128
	VIR_CONNECT_LIST_STORAGE_POOLS_GLUSTER                           = 65536
	VIR_CONNECT_LIST_STORAGE_POOLS_INACTIVE                          = 1
	VIR_CONNECT_LIST_STORAGE_POOLS_ISCSI                             = 2048
	VIR_CONNECT_LIST_STORAGE_POOLS_ISCSI_DIRECT                      = 524288
	VIR_CONNECT_LIST_STORAGE_POOLS_LOGICAL                           = 512
	VIR_CONNECT_LIST_STORAGE_POOLS_MPATH                             = 8192
	VIR_CONNECT_LIST_STORAGE_POOLS_NETFS                             = 256
	VIR_CONNECT_LIST_STORAGE_POOLS_NO_AUTOSTART                      = 32
	VIR_CONNECT_LIST_STORAGE_POOLS_PERSISTENT                        = 4
	VIR_CONNECT_LIST_STORAGE_POOLS_RBD                               = 16384
	VIR_CONNECT_LIST_STORAGE_POOLS_SCSI                              = 4096
	VIR_CONNECT_LIST_STORAGE_POOLS_SHEEPDOG                          = 32768
	VIR_CONNECT_LIST_STORAGE_POOLS_TRANSIENT                         = 8
	VIR_CONNECT_LIST_STORAGE_POOLS_VSTORAGE                          = 262144
	VIR_CONNECT_LIST_STORAGE_POOLS_ZFS                               = 131072
	VIR_CONNECT_NO_ALIASES                                           = 2
	VIR_CONNECT_RO                                                   = 1
	VIR_CPU_COMPARE_ERROR                                            = -1
	VIR_CPU_COMPARE_IDENTICAL                                        = 1
	VIR_CPU_COMPARE_INCOMPATIBLE                                     = 0
	VIR_CPU_COMPARE_LAST                                             = 3
	VIR_CPU_COMPARE_SUPERSET                                         = 2
	VIR_CRED_AUTHNAME                                                = 2
	VIR_CRED_CNONCE                                                  = 4
	VIR_CRED_ECHOPROMPT                                              = 6
	VIR_CRED_EXTERNAL                                                = 9
	VIR_CRED_LANGUAGE                                                = 3
	VIR_CRED_LAST                                                    = 10
	VIR_CRED_NOECHOPROMPT                                            = 7
	VIR_CRED_PASSPHRASE                                              = 5
	VIR_CRED_REALM                                                   = 8
	VIR_CRED_USERNAME                                                = 1
	VIR_DAEMON_SHUTDOWN_PRESERVE                                     = 1
	VIR_DOMAIN_ABORT_JOB_POSTCOPY                                    = 1
	VIR_DOMAIN_AFFECT_CONFIG                                         = 2
	VIR_DOMAIN_AFFECT_CURRENT                                        = 0
	VIR_DOMAIN_AFFECT_LIVE                                           = 1
	VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK                          = -2
	VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_DEFAULT                        = -1
	VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAIT                         = 0
	VIR_DOMAIN_AUTHORIZED_SSH_KEYS_SET_APPEND                        = 1
	VIR_DOMAIN_AUTHORIZED_SSH_KEYS_SET_REMOVE                        = 2
	VIR_DOMAIN_BACKUP_BEGIN_PRESERVE_SHUTDOWN_DOMAIN                 = 2
	VIR_DOMAIN_BACKUP_BEGIN_REUSE_EXTERNAL                           = 1
	VIR_DOMAIN_BLKIO_PARAM_BOOLEAN                                   = VIR_TYPED_PARAM_BOOLEAN
	VIR_DOMAIN_BLKIO_PARAM_DOUBLE                                    = VIR_TYPED_PARAM_DOUBLE
	VIR_DOMAIN_BLKIO_PARAM_INT                                       = VIR_TYPED_PARAM_INT
	VIR_DOMAIN_BLKIO_PARAM_LLONG                                     = VIR_TYPED_PARAM_LLONG
	VIR_DOMAIN_BLKIO_PARAM_UINT                                      = VIR_TYPED_PARAM_UINT
	VIR_DOMAIN_BLKIO_PARAM_ULLONG                                    = VIR_TYPED_PARAM_ULLONG
	VIR_DOMAIN_BLOCKED                                               = 2
	VIR_DOMAIN_BLOCKED_LAST                                          = 1
	VIR_DOMAIN_BLOCKED_UNKNOWN                                       = 0
	VIR_DOMAIN_BLOCK_COMMIT_ACTIVE                                   = 4
	VIR_DOMAIN_BLOCK_COMMIT_BANDWIDTH_BYTES                          = 16
	VIR_DOMAIN_BLOCK_COMMIT_DELETE                                   = 2
	VIR_DOMAIN_BLOCK_COMMIT_RELATIVE                                 = 8
	VIR_DOMAIN_BLOCK_COMMIT_SHALLOW                                  = 1
	VIR_DOMAIN_BLOCK_COPY_REUSE_EXT                                  = 2
	VIR_DOMAIN_BLOCK_COPY_SHALLOW                                    = 1
	VIR_DOMAIN_BLOCK_COPY_SYNCHRONOUS_WRITES                         = 8
	VIR_DOMAIN_BLOCK_COPY_TARGET_ZEROED                              = 16
	VIR_DOMAIN_BLOCK_COPY_TRANSIENT_JOB                              = 4
	VIR_DOMAIN_BLOCK_JOB_ABORT_ASYNC                                 = 1
	VIR_DOMAIN_BLOCK_JOB_ABORT_PIVOT                                 = 2
	VIR_DOMAIN_BLOCK_JOB_CANCELED                                    = 2
	VIR_DOMAIN_BLOCK_JOB_COMPLETED                                   = 0
	VIR_DOMAIN_BLOCK_JOB_FAILED                                      = 1
	VIR_DOMAIN_BLOCK_JOB_INFO_BANDWIDTH_BYTES                        = 1
	VIR_DOMAIN_BLOCK_JOB_LAST                                        = 4
	VIR_DOMAIN_BLOCK_JOB_READY                                       = 3
	VIR_DOMAIN_BLOCK_JOB_SPEED_BANDWIDTH_BYTES                       = 1
	VIR_DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT                          = 4
	VIR_DOMAIN_BLOCK_JOB_TYPE_BACKUP                                 = 5
	VIR_DOMAIN_BLOCK_JOB_TYPE_COMMIT                                 = 3
	VIR_DOMAIN_BLOCK_JOB_TYPE_COPY                                   = 2
	VIR_DOMAIN_BLOCK_JOB_TYPE_LAST                                   = 6
	VIR_DOMAIN_BLOCK_JOB_TYPE_PULL                                   = 1
	VIR_DOMAIN_BLOCK_JOB_TYPE_UNKNOWN                                = 0
	VIR_DOMAIN_BLOCK_PULL_BANDWIDTH_BYTES                            = 64
	VIR_DOMAIN_BLOCK_REBASE_BANDWIDTH_BYTES                          = 64
	VIR_DOMAIN_BLOCK_REBASE_COPY                                     = 8
	VIR_DOMAIN_BLOCK_REBASE_COPY_DEV                                 = 32
	VIR_DOMAIN_BLOCK_REBASE_COPY_RAW                                 = 4
	VIR_DOMAIN_BLOCK_REBASE_RELATIVE                                 = 16
	VIR_DOMAIN_BLOCK_REBASE_REUSE_EXT                                = 2
	VIR_DOMAIN_BLOCK_REBASE_SHALLOW                                  = 1
	VIR_DOMAIN_BLOCK_RESIZE_BYTES                                    = 1
	VIR_DOMAIN_BLOCK_RESIZE_CAPACITY                                 = 2
	VIR_DOMAIN_BLOCK_RESIZE_EXTEND                                   = 4
	VIR_DOMAIN_CHANNEL_FORCE                                         = 1
	VIR_DOMAIN_CHECKPOINT_CREATE_QUIESCE                             = 2
	VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE                            = 1
	VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE_VALIDATE                   = 4
	VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN                            = 1
	VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN_ONLY                       = 4
	VIR_DOMAIN_CHECKPOINT_DELETE_METADATA_ONLY                       = 2
	VIR_DOMAIN_CHECKPOINT_LIST_DESCENDANTS                           = 1
	VIR_DOMAIN_CHECKPOINT_LIST_LEAVES                                = 4
	VIR_DOMAIN_CHECKPOINT_LIST_NO_LEAVES                             = 8
	VIR_DOMAIN_CHECKPOINT_LIST_ROOTS                                 = 1
	VIR_DOMAIN_CHECKPOINT_LIST_TOPOLOGICAL                           = 2
	VIR_DOMAIN_CHECKPOINT_XML_NO_DOMAIN                              = 2
	VIR_DOMAIN_CHECKPOINT_XML_SECURE                                 = 1
	VIR_DOMAIN_CHECKPOINT_XML_SIZE                                   = 4
	VIR_DOMAIN_CONSOLE_FORCE                                         = 1
	VIR_DOMAIN_CONSOLE_SAFE                                          = 2
	VIR_DOMAIN_CONTROL_ERROR                                         = 3
	VIR_DOMAIN_CONTROL_ERROR_REASON_INTERNAL                         = 3
	VIR_DOMAIN_CONTROL_ERROR_REASON_LAST                             = 4
	VIR_DOMAIN_CONTROL_ERROR_REASON_MONITOR                          = 2
	VIR_DOMAIN_CONTROL_ERROR_REASON_NONE                             = 0
	VIR_DOMAIN_CONTROL_ERROR_REASON_UNKNOWN                          = 1
	VIR_DOMAIN_CONTROL_JOB                                           = 1
	VIR_DOMAIN_CONTROL_LAST                                          = 4
	VIR_DOMAIN_CONTROL_OCCUPIED                                      = 2
	VIR_DOMAIN_CONTROL_OK                                            = 0
	VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_LZO                            = 2
	VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_SNAPPY                         = 3
	VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_ZLIB                           = 1
	VIR_DOMAIN_CORE_DUMP_FORMAT_LAST                                 = 5
	VIR_DOMAIN_CORE_DUMP_FORMAT_RAW                                  = 0
	VIR_DOMAIN_CORE_DUMP_FORMAT_WIN_DMP                              = 4
	VIR_DOMAIN_CRASHED                                               = 6
	VIR_DOMAIN_CRASHED_LAST                                          = 2
	VIR_DOMAIN_CRASHED_PANICKED                                      = 1
	VIR_DOMAIN_CRASHED_UNKNOWN                                       = 0
	VIR_DOMAIN_DEFINE_VALIDATE                                       = 1
	VIR_DOMAIN_DESTROY_DEFAULT                                       = 0
	VIR_DOMAIN_DESTROY_GRACEFUL                                      = 1
	VIR_DOMAIN_DESTROY_REMOVE_LOGS                                   = 2
	VIR_DOMAIN_DEVICE_MODIFY_CONFIG                                  = VIR_DOMAIN_AFFECT_CONFIG
	VIR_DOMAIN_DEVICE_MODIFY_CURRENT                                 = VIR_DOMAIN_AFFECT_CURRENT
	VIR_DOMAIN_DEVICE_MODIFY_FORCE                                   = 4
	VIR_DOMAIN_DEVICE_MODIFY_LIVE                                    = VIR_DOMAIN_AFFECT_LIVE
	VIR_DOMAIN_DIRTYRATE_LAST                                        = 3
	VIR_DOMAIN_DIRTYRATE_MEASURED                                    = 2
	VIR_DOMAIN_DIRTYRATE_MEASURING                                   = 1
	VIR_DOMAIN_DIRTYRATE_MODE_DIRTY_BITMAP                           = 1
	VIR_DOMAIN_DIRTYRATE_MODE_DIRTY_RING                             = 2
	VIR_DOMAIN_DIRTYRATE_MODE_PAGE_SAMPLING                          = 0
	VIR_DOMAIN_DIRTYRATE_UNSTARTED                                   = 0
	VIR_DOMAIN_DISK_ERROR_LAST                                       = 3
	VIR_DOMAIN_DISK_ERROR_NONE                                       = 0
	VIR_DOMAIN_DISK_ERROR_NO_SPACE                                   = 2
	VIR_DOMAIN_DISK_ERROR_UNSPEC                                     = 1
	VIR_DOMAIN_EVENT_CRASHED                                         = 8
	VIR_DOMAIN_EVENT_CRASHED_CRASHLOADED                             = 1
	VIR_DOMAIN_EVENT_CRASHED_LAST                                    = 2
	VIR_DOMAIN_EVENT_CRASHED_PANICKED                                = 0
	VIR_DOMAIN_EVENT_DEFINED                                         = 0
	VIR_DOMAIN_EVENT_DEFINED_ADDED                                   = 0
	VIR_DOMAIN_EVENT_DEFINED_FROM_SNAPSHOT                           = 3
	VIR_DOMAIN_EVENT_DEFINED_LAST                                    = 4
	VIR_DOMAIN_EVENT_DEFINED_RENAMED                                 = 2
	VIR_DOMAIN_EVENT_DEFINED_UPDATED                                 = 1
	VIR_DOMAIN_EVENT_DISK_CHANGE_LAST                                = 2
	VIR_DOMAIN_EVENT_DISK_CHANGE_MISSING_ON_START                    = 0
	VIR_DOMAIN_EVENT_DISK_DROP_MISSING_ON_START                      = 1
	VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV4                           = 0
	VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV6                           = 1
	VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_LAST                           = 3
	VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_UNIX                           = 2
	VIR_DOMAIN_EVENT_GRAPHICS_CONNECT                                = 0
	VIR_DOMAIN_EVENT_GRAPHICS_DISCONNECT                             = 2
	VIR_DOMAIN_EVENT_GRAPHICS_INITIALIZE                             = 1
	VIR_DOMAIN_EVENT_GRAPHICS_LAST                                   = 3
	VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE                              = 18
	VIR_DOMAIN_EVENT_ID_BALLOON_CHANGE                               = 13
	VIR_DOMAIN_EVENT_ID_BLOCK_JOB                                    = 8
	VIR_DOMAIN_EVENT_ID_BLOCK_JOB_2                                  = 16
	VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD                              = 24
	VIR_DOMAIN_EVENT_ID_CHANNEL_LIFECYCLE                            = 29
	VIR_DOMAIN_EVENT_ID_CONTROL_ERROR                                = 7
	VIR_DOMAIN_EVENT_ID_DEVICE_ADDED                                 = 19
	VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED                        = 22
	VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED                               = 15
	VIR_DOMAIN_EVENT_ID_DISK_CHANGE                                  = 9
	VIR_DOMAIN_EVENT_ID_GRAPHICS                                     = 5
	VIR_DOMAIN_EVENT_ID_IO_ERROR                                     = 4
	VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON                              = 6
	VIR_DOMAIN_EVENT_ID_JOB_COMPLETED                                = 21
	VIR_DOMAIN_EVENT_ID_LAST                                         = 30
	VIR_DOMAIN_EVENT_ID_LIFECYCLE                                    = 0
	VIR_DOMAIN_EVENT_ID_MEMORY_DEVICE_SIZE_CHANGE                    = 26
	VIR_DOMAIN_EVENT_ID_MEMORY_FAILURE                               = 25
	VIR_DOMAIN_EVENT_ID_METADATA_CHANGE                              = 23
	VIR_DOMAIN_EVENT_ID_MIGRATION_ITERATION                          = 20
	VIR_DOMAIN_EVENT_ID_NIC_MAC_CHANGE                               = 27
	VIR_DOMAIN_EVENT_ID_PMSUSPEND                                    = 12
	VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK                               = 14
	VIR_DOMAIN_EVENT_ID_PMWAKEUP                                     = 11
	VIR_DOMAIN_EVENT_ID_REBOOT                                       = 1
	VIR_DOMAIN_EVENT_ID_RTC_CHANGE                                   = 2
	VIR_DOMAIN_EVENT_ID_TRAY_CHANGE                                  = 10
	VIR_DOMAIN_EVENT_ID_TUNABLE                                      = 17
	VIR_DOMAIN_EVENT_ID_VCPU_REMOVED                                 = 28
	VIR_DOMAIN_EVENT_ID_WATCHDOG                                     = 3
	VIR_DOMAIN_EVENT_IO_ERROR_LAST                                   = 3
	VIR_DOMAIN_EVENT_IO_ERROR_NONE                                   = 0
	VIR_DOMAIN_EVENT_IO_ERROR_PAUSE                                  = 1
	VIR_DOMAIN_EVENT_IO_ERROR_REPORT                                 = 2
	VIR_DOMAIN_EVENT_LAST                                            = 9
	VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_FATAL                     = 2
	VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_IGNORE                    = 0
	VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_INJECT                    = 1
	VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_LAST                      = 4
	VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_RESET                     = 3
	VIR_DOMAIN_EVENT_MEMORY_FAILURE_RECIPIENT_GUEST                  = 1
	VIR_DOMAIN_EVENT_MEMORY_FAILURE_RECIPIENT_HYPERVISOR             = 0
	VIR_DOMAIN_EVENT_MEMORY_FAILURE_RECIPIENT_LAST                   = 2
	VIR_DOMAIN_EVENT_PMSUSPENDED                                     = 7
	VIR_DOMAIN_EVENT_PMSUSPENDED_DISK                                = 1
	VIR_DOMAIN_EVENT_PMSUSPENDED_LAST                                = 2
	VIR_DOMAIN_EVENT_PMSUSPENDED_MEMORY                              = 0
	VIR_DOMAIN_EVENT_RESUMED                                         = 4
	VIR_DOMAIN_EVENT_RESUMED_FROM_SNAPSHOT                           = 2
	VIR_DOMAIN_EVENT_RESUMED_LAST                                    = 5
	VIR_DOMAIN_EVENT_RESUMED_MIGRATED                                = 1
	VIR_DOMAIN_EVENT_RESUMED_POSTCOPY                                = 3
	VIR_DOMAIN_EVENT_RESUMED_POSTCOPY_FAILED                         = 4
	VIR_DOMAIN_EVENT_RESUMED_UNPAUSED                                = 0
	VIR_DOMAIN_EVENT_SHUTDOWN                                        = 6
	VIR_DOMAIN_EVENT_SHUTDOWN_FINISHED                               = 0
	VIR_DOMAIN_EVENT_SHUTDOWN_GUEST                                  = 1
	VIR_DOMAIN_EVENT_SHUTDOWN_HOST                                   = 2
	VIR_DOMAIN_EVENT_SHUTDOWN_LAST                                   = 3
	VIR_DOMAIN_EVENT_STARTED                                         = 2
	VIR_DOMAIN_EVENT_STARTED_BOOTED                                  = 0
	VIR_DOMAIN_EVENT_STARTED_FROM_SNAPSHOT                           = 3
	VIR_DOMAIN_EVENT_STARTED_LAST                                    = 6
	VIR_DOMAIN_EVENT_STARTED_MIGRATED                                = 1
	VIR_DOMAIN_EVENT_STARTED_RECREATED                               = 5
	VIR_DOMAIN_EVENT_STARTED_RESTORED                                = 2
	VIR_DOMAIN_EVENT_STARTED_WAKEUP                                  = 4
	VIR_DOMAIN_EVENT_STOPPED                                         = 5
	VIR_DOMAIN_EVENT_STOPPED_CRASHED                                 = 2
	VIR_DOMAIN_EVENT_STOPPED_DESTROYED                               = 1
	VIR_DOMAIN_EVENT_STOPPED_FAILED                                  = 5
	VIR_DOMAIN_EVENT_STOPPED_FROM_SNAPSHOT                           = 6
	VIR_DOMAIN_EVENT_STOPPED_LAST                                    = 8
	VIR_DOMAIN_EVENT_STOPPED_MIGRATED                                = 3
	VIR_DOMAIN_EVENT_STOPPED_RECREATED                               = 7
	VIR_DOMAIN_EVENT_STOPPED_SAVED                                   = 4
	VIR_DOMAIN_EVENT_STOPPED_SHUTDOWN                                = 0
	VIR_DOMAIN_EVENT_SUSPENDED                                       = 3
	VIR_DOMAIN_EVENT_SUSPENDED_API_ERROR                             = 6
	VIR_DOMAIN_EVENT_SUSPENDED_FROM_SNAPSHOT                         = 5
	VIR_DOMAIN_EVENT_SUSPENDED_GUEST_SHUTDOWN                        = 9
	VIR_DOMAIN_EVENT_SUSPENDED_IOERROR                               = 2
	VIR_DOMAIN_EVENT_SUSPENDED_LAST                                  = 10
	VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED                              = 1
	VIR_DOMAIN_EVENT_SUSPENDED_PAUSED                                = 0
	VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY                              = 7
	VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY_FAILED                       = 8
	VIR_DOMAIN_EVENT_SUSPENDED_RESTORED                              = 4
	VIR_DOMAIN_EVENT_SUSPENDED_WATCHDOG                              = 3
	VIR_DOMAIN_EVENT_TRAY_CHANGE_CLOSE                               = 1
	VIR_DOMAIN_EVENT_TRAY_CHANGE_LAST                                = 2
	VIR_DOMAIN_EVENT_TRAY_CHANGE_OPEN                                = 0
	VIR_DOMAIN_EVENT_UNDEFINED                                       = 1
	VIR_DOMAIN_EVENT_UNDEFINED_LAST                                  = 2
	VIR_DOMAIN_EVENT_UNDEFINED_REMOVED                               = 0
	VIR_DOMAIN_EVENT_UNDEFINED_RENAMED                               = 1
	VIR_DOMAIN_EVENT_WATCHDOG_DEBUG                                  = 5
	VIR_DOMAIN_EVENT_WATCHDOG_INJECTNMI                              = 6
	VIR_DOMAIN_EVENT_WATCHDOG_LAST                                   = 7
	VIR_DOMAIN_EVENT_WATCHDOG_NONE                                   = 0
	VIR_DOMAIN_EVENT_WATCHDOG_PAUSE                                  = 1
	VIR_DOMAIN_EVENT_WATCHDOG_POWEROFF                               = 3
	VIR_DOMAIN_EVENT_WATCHDOG_RESET                                  = 2
	VIR_DOMAIN_EVENT_WATCHDOG_SHUTDOWN                               = 4
	VIR_DOMAIN_FD_ASSOCIATE_SECLABEL_RESTORE                         = 1
	VIR_DOMAIN_FD_ASSOCIATE_SECLABEL_WRITABLE                        = 2
	VIR_DOMAIN_GET_HOSTNAME_AGENT                                    = 2
	VIR_DOMAIN_GET_HOSTNAME_LEASE                                    = 1
	VIR_DOMAIN_GRAPHICS_RELOAD_TYPE_ANY                              = 0
	VIR_DOMAIN_GRAPHICS_RELOAD_TYPE_LAST                             = 2
	VIR_DOMAIN_GRAPHICS_RELOAD_TYPE_VNC                              = 1
	VIR_DOMAIN_GUEST_INFO_DISKS                                      = 32
	VIR_DOMAIN_GUEST_INFO_FILESYSTEM                                 = 16
	VIR_DOMAIN_GUEST_INFO_HOSTNAME                                   = 8
	VIR_DOMAIN_GUEST_INFO_INTERFACES                                 = 64
	VIR_DOMAIN_GUEST_INFO_LOAD                                       = 128
	VIR_DOMAIN_GUEST_INFO_OS                                         = 2
	VIR_DOMAIN_GUEST_INFO_TIMEZONE                                   = 4
	VIR_DOMAIN_GUEST_INFO_USERS                                      = 1
	VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_AGENT                         = 1
	VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP                           = 2
	VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_LAST                          = 3
	VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_LEASE                         = 0
	VIR_DOMAIN_JOB_BOUNDED                                           = 1
	VIR_DOMAIN_JOB_CANCELLED                                         = 5
	VIR_DOMAIN_JOB_COMPLETED                                         = 3
	VIR_DOMAIN_JOB_FAILED                                            = 4
	VIR_DOMAIN_JOB_LAST                                              = 6
	VIR_DOMAIN_JOB_NONE                                              = 0
	VIR_DOMAIN_JOB_OPERATION_BACKUP                                  = 9
	VIR_DOMAIN_JOB_OPERATION_DUMP                                    = 8
	VIR_DOMAIN_JOB_OPERATION_LAST                                    = 11
	VIR_DOMAIN_JOB_OPERATION_MIGRATION_IN                            = 4
	VIR_DOMAIN_JOB_OPERATION_MIGRATION_OUT                           = 5
	VIR_DOMAIN_JOB_OPERATION_RESTORE                                 = 3
	VIR_DOMAIN_JOB_OPERATION_SAVE                                    = 2
	VIR_DOMAIN_JOB_OPERATION_SNAPSHOT                                = 6
	VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_DELETE                         = 10
	VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_REVERT                         = 7
	VIR_DOMAIN_JOB_OPERATION_START                                   = 1
	VIR_DOMAIN_JOB_OPERATION_UNKNOWN                                 = 0
	VIR_DOMAIN_JOB_STATS_COMPLETED                                   = 1
	VIR_DOMAIN_JOB_STATS_KEEP_COMPLETED                              = 2
	VIR_DOMAIN_JOB_UNBOUNDED                                         = 2
	VIR_DOMAIN_LAST                                                  = 8
	VIR_DOMAIN_LIFECYCLE_ACTION_COREDUMP_DESTROY                     = 4
	VIR_DOMAIN_LIFECYCLE_ACTION_COREDUMP_RESTART                     = 5
	VIR_DOMAIN_LIFECYCLE_ACTION_DESTROY                              = 0
	VIR_DOMAIN_LIFECYCLE_ACTION_LAST                                 = 7
	VIR_DOMAIN_LIFECYCLE_ACTION_PRESERVE                             = 3
	VIR_DOMAIN_LIFECYCLE_ACTION_PRESERVE_RUNNING                     = 6
	VIR_DOMAIN_LIFECYCLE_ACTION_RESTART                              = 1
	VIR_DOMAIN_LIFECYCLE_ACTION_RESTART_RENAME                       = 2
	VIR_DOMAIN_LIFECYCLE_CRASH                                       = 2
	VIR_DOMAIN_LIFECYCLE_LAST                                        = 3
	VIR_DOMAIN_LIFECYCLE_POWEROFF                                    = 0
	VIR_DOMAIN_LIFECYCLE_REBOOT                                      = 1
	VIR_DOMAIN_MEMORY_FAILURE_ACTION_REQUIRED                        = 1
	VIR_DOMAIN_MEMORY_FAILURE_RECURSIVE                              = 2
	VIR_DOMAIN_MEMORY_PARAM_BOOLEAN                                  = VIR_TYPED_PARAM_BOOLEAN
	VIR_DOMAIN_MEMORY_PARAM_DOUBLE                                   = VIR_TYPED_PARAM_DOUBLE
	VIR_DOMAIN_MEMORY_PARAM_INT                                      = VIR_TYPED_PARAM_INT
	VIR_DOMAIN_MEMORY_PARAM_LLONG                                    = VIR_TYPED_PARAM_LLONG
	VIR_DOMAIN_MEMORY_PARAM_UINT                                     = VIR_TYPED_PARAM_UINT
	VIR_DOMAIN_MEMORY_PARAM_ULLONG                                   = VIR_TYPED_PARAM_ULLONG
	VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON                            = 6
	VIR_DOMAIN_MEMORY_STAT_AVAILABLE                                 = 5
	VIR_DOMAIN_MEMORY_STAT_DISK_CACHES                               = 10
	VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGALLOC                           = 11
	VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGFAIL                            = 12
	VIR_DOMAIN_MEMORY_STAT_LAST                                      = VIR_DOMAIN_MEMORY_STAT_NR
	VIR_DOMAIN_MEMORY_STAT_LAST_UPDATE                               = 9
	VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT                               = 2
	VIR_DOMAIN_MEMORY_STAT_MINOR_FAULT                               = 3
	VIR_DOMAIN_MEMORY_STAT_NR                                        = 13
	VIR_DOMAIN_MEMORY_STAT_RSS                                       = 7
	VIR_DOMAIN_MEMORY_STAT_SWAP_IN                                   = 0
	VIR_DOMAIN_MEMORY_STAT_SWAP_OUT                                  = 1
	VIR_DOMAIN_MEMORY_STAT_UNUSED                                    = 4
	VIR_DOMAIN_MEMORY_STAT_USABLE                                    = 8
	VIR_DOMAIN_MEM_CONFIG                                            = VIR_DOMAIN_AFFECT_CONFIG
	VIR_DOMAIN_MEM_CURRENT                                           = VIR_DOMAIN_AFFECT_CURRENT
	VIR_DOMAIN_MEM_LIVE                                              = VIR_DOMAIN_AFFECT_LIVE
	VIR_DOMAIN_MEM_MAXIMUM                                           = 4
	VIR_DOMAIN_MESSAGE_DEPRECATION                                   = 1
	VIR_DOMAIN_MESSAGE_IOERRORS                                      = 4
	VIR_DOMAIN_MESSAGE_TAINTING                                      = 2
	VIR_DOMAIN_METADATA_DESCRIPTION                                  = 0
	VIR_DOMAIN_METADATA_ELEMENT                                      = 2
	VIR_DOMAIN_METADATA_LAST                                         = 3
	VIR_DOMAIN_METADATA_TITLE                                        = 1
	VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY                            = 1
	VIR_DOMAIN_NONE                                                  = 0
	VIR_DOMAIN_NOSTATE                                               = 0
	VIR_DOMAIN_NOSTATE_LAST                                          = 1
	VIR_DOMAIN_NOSTATE_UNKNOWN                                       = 0
	VIR_DOMAIN_NUMATUNE_MEM_INTERLEAVE                               = 2
	VIR_DOMAIN_NUMATUNE_MEM_LAST                                     = 4
	VIR_DOMAIN_NUMATUNE_MEM_PREFERRED                                = 1
	VIR_DOMAIN_NUMATUNE_MEM_RESTRICTIVE                              = 3
	VIR_DOMAIN_NUMATUNE_MEM_STRICT                                   = 0
	VIR_DOMAIN_OPEN_GRAPHICS_SKIPAUTH                                = 1
	VIR_DOMAIN_PASSWORD_ENCRYPTED                                    = 1
	VIR_DOMAIN_PAUSED                                                = 3
	VIR_DOMAIN_PAUSED_API_ERROR                                      = 14
	VIR_DOMAIN_PAUSED_CRASHED                                        = 10
	VIR_DOMAIN_PAUSED_DUMP                                           = 4
	VIR_DOMAIN_PAUSED_FROM_SNAPSHOT                                  = 7
	VIR_DOMAIN_PAUSED_IOERROR                                        = 5
	VIR_DOMAIN_PAUSED_LAST                                           = 15
	VIR_DOMAIN_PAUSED_MIGRATION                                      = 2
	VIR_DOMAIN_PAUSED_POSTCOPY                                       = 12
	VIR_DOMAIN_PAUSED_POSTCOPY_FAILED                                = 13
	VIR_DOMAIN_PAUSED_SAVE                                           = 3
	VIR_DOMAIN_PAUSED_SHUTTING_DOWN                                  = 8
	VIR_DOMAIN_PAUSED_SNAPSHOT                                       = 9
	VIR_DOMAIN_PAUSED_STARTING_UP                                    = 11
	VIR_DOMAIN_PAUSED_UNKNOWN                                        = 0
	VIR_DOMAIN_PAUSED_USER                                           = 1
	VIR_DOMAIN_PAUSED_WATCHDOG                                       = 6
	VIR_DOMAIN_PMSUSPENDED                                           = 7
	VIR_DOMAIN_PMSUSPENDED_DISK_LAST                                 = 1
	VIR_DOMAIN_PMSUSPENDED_DISK_UNKNOWN                              = 0
	VIR_DOMAIN_PMSUSPENDED_LAST                                      = 1
	VIR_DOMAIN_PMSUSPENDED_UNKNOWN                                   = 0
	VIR_DOMAIN_PROCESS_SIGNAL_ABRT                                   = 6
	VIR_DOMAIN_PROCESS_SIGNAL_ALRM                                   = 14
	VIR_DOMAIN_PROCESS_SIGNAL_BUS                                    = 7
	VIR_DOMAIN_PROCESS_SIGNAL_CHLD                                   = 17
	VIR_DOMAIN_PROCESS_SIGNAL_CONT                                   = 18
	VIR_DOMAIN_PROCESS_SIGNAL_FPE                                    = 8
	VIR_DOMAIN_PROCESS_SIGNAL_HUP                                    = 1
	VIR_DOMAIN_PROCESS_SIGNAL_ILL                                    = 4
	VIR_DOMAIN_PROCESS_SIGNAL_INT                                    = 2
	VIR_DOMAIN_PROCESS_SIGNAL_KILL                                   = 9
	VIR_DOMAIN_PROCESS_SIGNAL_LAST                                   = 65
	VIR_DOMAIN_PROCESS_SIGNAL_NOP                                    = 0
	VIR_DOMAIN_PROCESS_SIGNAL_PIPE                                   = 13
	VIR_DOMAIN_PROCESS_SIGNAL_POLL                                   = 29
	VIR_DOMAIN_PROCESS_SIGNAL_PROF                                   = 27
	VIR_DOMAIN_PROCESS_SIGNAL_PWR                                    = 30
	VIR_DOMAIN_PROCESS_SIGNAL_QUIT                                   = 3
	VIR_DOMAIN_PROCESS_SIGNAL_RT0                                    = 32
	VIR_DOMAIN_PROCESS_SIGNAL_RT1                                    = 33
	VIR_DOMAIN_PROCESS_SIGNAL_RT10                                   = 42
	VIR_DOMAIN_PROCESS_SIGNAL_RT11                                   = 43
	VIR_DOMAIN_PROCESS_SIGNAL_RT12                                   = 44
	VIR_DOMAIN_PROCESS_SIGNAL_RT13                                   = 45
	VIR_DOMAIN_PROCESS_SIGNAL_RT14                                   = 46
	VIR_DOMAIN_PROCESS_SIGNAL_RT15                                   = 47
	VIR_DOMAIN_PROCESS_SIGNAL_RT16                                   = 48
	VIR_DOMAIN_PROCESS_SIGNAL_RT17                                   = 49
	VIR_DOMAIN_PROCESS_SIGNAL_RT18                                   = 50
	VIR_DOMAIN_PROCESS_SIGNAL_RT19                                   = 51
	VIR_DOMAIN_PROCESS_SIGNAL_RT2                                    = 34
	VIR_DOMAIN_PROCESS_SIGNAL_RT20                                   = 52
	VIR_DOMAIN_PROCESS_SIGNAL_RT21                                   = 53
	VIR_DOMAIN_PROCESS_SIGNAL_RT22                                   = 54
	VIR_DOMAIN_PROCESS_SIGNAL_RT23                                   = 55
	VIR_DOMAIN_PROCESS_SIGNAL_RT24                                   = 56
	VIR_DOMAIN_PROCESS_SIGNAL_RT25                                   = 57
	VIR_DOMAIN_PROCESS_SIGNAL_RT26                                   = 58
	VIR_DOMAIN_PROCESS_SIGNAL_RT27                                   = 59
	VIR_DOMAIN_PROCESS_SIGNAL_RT28                                   = 60
	VIR_DOMAIN_PROCESS_SIGNAL_RT29                                   = 61
	VIR_DOMAIN_PROCESS_SIGNAL_RT3                                    = 35
	VIR_DOMAIN_PROCESS_SIGNAL_RT30                                   = 62
	VIR_DOMAIN_PROCESS_SIGNAL_RT31                                   = 63
	VIR_DOMAIN_PROCESS_SIGNAL_RT32                                   = 64
	VIR_DOMAIN_PROCESS_SIGNAL_RT4                                    = 36
	VIR_DOMAIN_PROCESS_SIGNAL_RT5                                    = 37
	VIR_DOMAIN_PROCESS_SIGNAL_RT6                                    = 38
	VIR_DOMAIN_PROCESS_SIGNAL_RT7                                    = 39
	VIR_DOMAIN_PROCESS_SIGNAL_RT8                                    = 40
	VIR_DOMAIN_PROCESS_SIGNAL_RT9                                    = 41
	VIR_DOMAIN_PROCESS_SIGNAL_SEGV                                   = 11
	VIR_DOMAIN_PROCESS_SIGNAL_STKFLT                                 = 16
	VIR_DOMAIN_PROCESS_SIGNAL_STOP                                   = 19
	VIR_DOMAIN_PROCESS_SIGNAL_SYS                                    = 31
	VIR_DOMAIN_PROCESS_SIGNAL_TERM                                   = 15
	VIR_DOMAIN_PROCESS_SIGNAL_TRAP                                   = 5
	VIR_DOMAIN_PROCESS_SIGNAL_TSTP                                   = 20
	VIR_DOMAIN_PROCESS_SIGNAL_TTIN                                   = 21
	VIR_DOMAIN_PROCESS_SIGNAL_TTOU                                   = 22
	VIR_DOMAIN_PROCESS_SIGNAL_URG                                    = 23
	VIR_DOMAIN_PROCESS_SIGNAL_USR1                                   = 10
	VIR_DOMAIN_PROCESS_SIGNAL_USR2                                   = 12
	VIR_DOMAIN_PROCESS_SIGNAL_VTALRM                                 = 26
	VIR_DOMAIN_PROCESS_SIGNAL_WINCH                                  = 28
	VIR_DOMAIN_PROCESS_SIGNAL_XCPU                                   = 24
	VIR_DOMAIN_PROCESS_SIGNAL_XFSZ                                   = 25
	VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK                              = VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK
	VIR_DOMAIN_QEMU_AGENT_COMMAND_DEFAULT                            = VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_DEFAULT
	VIR_DOMAIN_QEMU_AGENT_COMMAND_MIN                                = VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK
	VIR_DOMAIN_QEMU_AGENT_COMMAND_NOWAIT                             = VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAIT
	VIR_DOMAIN_QEMU_AGENT_COMMAND_SHUTDOWN                           = 60
	VIR_DOMAIN_QEMU_MONITOR_COMMAND_DEFAULT                          = 0
	VIR_DOMAIN_QEMU_MONITOR_COMMAND_HMP                              = 1
	VIR_DOMAIN_REBOOT_ACPI_POWER_BTN                                 = 1
	VIR_DOMAIN_REBOOT_DEFAULT                                        = 0
	VIR_DOMAIN_REBOOT_GUEST_AGENT                                    = 2
	VIR_DOMAIN_REBOOT_INITCTL                                        = 4
	VIR_DOMAIN_REBOOT_PARAVIRT                                       = 16
	VIR_DOMAIN_REBOOT_SIGNAL                                         = 8
	VIR_DOMAIN_RUNNING                                               = 1
	VIR_DOMAIN_RUNNING_BOOTED                                        = 1
	VIR_DOMAIN_RUNNING_CRASHED                                       = 9
	VIR_DOMAIN_RUNNING_FROM_SNAPSHOT                                 = 4
	VIR_DOMAIN_RUNNING_LAST                                          = 12
	VIR_DOMAIN_RUNNING_MIGRATED                                      = 2
	VIR_DOMAIN_RUNNING_MIGRATION_CANCELED                            = 6
	VIR_DOMAIN_RUNNING_POSTCOPY                                      = 10
	VIR_DOMAIN_RUNNING_POSTCOPY_FAILED                               = 11
	VIR_DOMAIN_RUNNING_RESTORED                                      = 3
	VIR_DOMAIN_RUNNING_SAVE_CANCELED                                 = 7
	VIR_DOMAIN_RUNNING_UNKNOWN                                       = 0
	VIR_DOMAIN_RUNNING_UNPAUSED                                      = 5
	VIR_DOMAIN_RUNNING_WAKEUP                                        = 8
	VIR_DOMAIN_SAVE_BYPASS_CACHE                                     = 1
	VIR_DOMAIN_SAVE_IMAGE_XML_SECURE                                 = VIR_DOMAIN_XML_SECURE
	VIR_DOMAIN_SAVE_PAUSED                                           = 4
	VIR_DOMAIN_SAVE_RESET_NVRAM                                      = 8
	VIR_DOMAIN_SAVE_RUNNING                                          = 2
	VIR_DOMAIN_SCHED_FIELD_BOOLEAN                                   = VIR_TYPED_PARAM_BOOLEAN
	VIR_DOMAIN_SCHED_FIELD_DOUBLE                                    = VIR_TYPED_PARAM_DOUBLE
	VIR_DOMAIN_SCHED_FIELD_INT                                       = VIR_TYPED_PARAM_INT
	VIR_DOMAIN_SCHED_FIELD_LLONG                                     = VIR_TYPED_PARAM_LLONG
	VIR_DOMAIN_SCHED_FIELD_UINT                                      = VIR_TYPED_PARAM_UINT
	VIR_DOMAIN_SCHED_FIELD_ULLONG                                    = VIR_TYPED_PARAM_ULLONG
	VIR_DOMAIN_SETVCPU_AFFECT_CONFIG                                 = VIR_DOMAIN_AFFECT_CONFIG
	VIR_DOMAIN_SETVCPU_AFFECT_CURRENT                                = VIR_DOMAIN_AFFECT_CURRENT
	VIR_DOMAIN_SETVCPU_AFFECT_LIVE                                   = VIR_DOMAIN_AFFECT_LIVE
	VIR_DOMAIN_SETVCPU_ASYNC_UNPLUG                                  = 4
	VIR_DOMAIN_SHUTDOWN                                              = 4
	VIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN                               = 1
	VIR_DOMAIN_SHUTDOWN_DEFAULT                                      = 0
	VIR_DOMAIN_SHUTDOWN_GUEST_AGENT                                  = 2
	VIR_DOMAIN_SHUTDOWN_INITCTL                                      = 4
	VIR_DOMAIN_SHUTDOWN_LAST                                         = 2
	VIR_DOMAIN_SHUTDOWN_PARAVIRT                                     = 16
	VIR_DOMAIN_SHUTDOWN_SIGNAL                                       = 8
	VIR_DOMAIN_SHUTDOWN_UNKNOWN                                      = 0
	VIR_DOMAIN_SHUTDOWN_USER                                         = 1
	VIR_DOMAIN_SHUTOFF                                               = 5
	VIR_DOMAIN_SHUTOFF_CRASHED                                       = 3
	VIR_DOMAIN_SHUTOFF_DAEMON                                        = 8
	VIR_DOMAIN_SHUTOFF_DESTROYED                                     = 2
	VIR_DOMAIN_SHUTOFF_FAILED                                        = 6
	VIR_DOMAIN_SHUTOFF_FROM_SNAPSHOT                                 = 7
	VIR_DOMAIN_SHUTOFF_LAST                                          = 9
	VIR_DOMAIN_SHUTOFF_MIGRATED                                      = 4
	VIR_DOMAIN_SHUTOFF_SAVED                                         = 5
	VIR_DOMAIN_SHUTOFF_SHUTDOWN                                      = 1
	VIR_DOMAIN_SHUTOFF_UNKNOWN                                       = 0
	VIR_DOMAIN_SNAPSHOT_CREATE_ATOMIC                                = 128
	VIR_DOMAIN_SNAPSHOT_CREATE_CURRENT                               = 2
	VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY                             = 16
	VIR_DOMAIN_SNAPSHOT_CREATE_HALT                                  = 8
	VIR_DOMAIN_SNAPSHOT_CREATE_LIVE                                  = 256
	VIR_DOMAIN_SNAPSHOT_CREATE_NO_METADATA                           = 4
	VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE                               = 64
	VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE                              = 1
	VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT                             = 32
	VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE                              = 512
	VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN                              = 1
	VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY                         = 4
	VIR_DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY                         = 2
	VIR_DOMAIN_SNAPSHOT_LIST_ACTIVE                                  = 64
	VIR_DOMAIN_SNAPSHOT_LIST_DESCENDANTS                             = 1
	VIR_DOMAIN_SNAPSHOT_LIST_DISK_ONLY                               = 128
	VIR_DOMAIN_SNAPSHOT_LIST_EXTERNAL                                = 512
	VIR_DOMAIN_SNAPSHOT_LIST_INACTIVE                                = 32
	VIR_DOMAIN_SNAPSHOT_LIST_INTERNAL                                = 256
	VIR_DOMAIN_SNAPSHOT_LIST_LEAVES                                  = 4
	VIR_DOMAIN_SNAPSHOT_LIST_METADATA                                = 2
	VIR_DOMAIN_SNAPSHOT_LIST_NO_LEAVES                               = 8
	VIR_DOMAIN_SNAPSHOT_LIST_NO_METADATA                             = 16
	VIR_DOMAIN_SNAPSHOT_LIST_ROOTS                                   = 1
	VIR_DOMAIN_SNAPSHOT_LIST_TOPOLOGICAL                             = 1024
	VIR_DOMAIN_SNAPSHOT_REVERT_FORCE                                 = 4
	VIR_DOMAIN_SNAPSHOT_REVERT_PAUSED                                = 2
	VIR_DOMAIN_SNAPSHOT_REVERT_RESET_NVRAM                           = 8
	VIR_DOMAIN_SNAPSHOT_REVERT_RUNNING                               = 1
	VIR_DOMAIN_SNAPSHOT_XML_SECURE                                   = VIR_DOMAIN_XML_SECURE
	VIR_DOMAIN_START_AUTODESTROY                                     = 2
	VIR_DOMAIN_START_BYPASS_CACHE                                    = 4
	VIR_DOMAIN_START_FORCE_BOOT                                      = 8
	VIR_DOMAIN_START_PAUSED                                          = 1
	VIR_DOMAIN_START_RESET_NVRAM                                     = 32
	VIR_DOMAIN_START_VALIDATE                                        = 16
	VIR_DOMAIN_STATS_BALLOON                                         = 4
	VIR_DOMAIN_STATS_BLOCK                                           = 32
	VIR_DOMAIN_STATS_CPU_TOTAL                                       = 2
	VIR_DOMAIN_STATS_DIRTYRATE                                       = 512
	VIR_DOMAIN_STATS_INTERFACE                                       = 16
	VIR_DOMAIN_STATS_IOTHREAD                                        = 128
	VIR_DOMAIN_STATS_MEMORY                                          = 256
	VIR_DOMAIN_STATS_PERF                                            = 64
	VIR_DOMAIN_STATS_STATE                                           = 1
	VIR_DOMAIN_STATS_VCPU                                            = 8
	VIR_DOMAIN_STATS_VM                                              = 1024
	VIR_DOMAIN_TIME_SYNC                                             = 1
	VIR_DOMAIN_UNDEFINE_CHECKPOINTS_METADATA                         = 16
	VIR_DOMAIN_UNDEFINE_KEEP_NVRAM                                   = 8
	VIR_DOMAIN_UNDEFINE_KEEP_TPM                                     = 64
	VIR_DOMAIN_UNDEFINE_MANAGED_SAVE                                 = 1
	VIR_DOMAIN_UNDEFINE_NVRAM                                        = 4
	VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA                           = 2
	VIR_DOMAIN_UNDEFINE_TPM                                          = 32
	VIR_DOMAIN_VCPU_ASYNC_UNPLUG                                     = 32
	VIR_DOMAIN_VCPU_CONFIG                                           = VIR_DOMAIN_AFFECT_CONFIG
	VIR_DOMAIN_VCPU_CURRENT                                          = VIR_DOMAIN_AFFECT_CURRENT
	VIR_DOMAIN_VCPU_GUEST                                            = 8
	VIR_DOMAIN_VCPU_HOTPLUGGABLE                                     = 16
	VIR_DOMAIN_VCPU_LIVE                                             = VIR_DOMAIN_AFFECT_LIVE
	VIR_DOMAIN_VCPU_MAXIMUM                                          = 4
	VIR_DOMAIN_XML_INACTIVE                                          = 2
	VIR_DOMAIN_XML_MIGRATABLE                                        = 8
	VIR_DOMAIN_XML_SECURE                                            = 1
	VIR_DOMAIN_XML_UPDATE_CPU                                        = 4
	VIR_DUMP_BYPASS_CACHE                                            = 4
	VIR_DUMP_CRASH                                                   = 1
	VIR_DUMP_LIVE                                                    = 2
	VIR_DUMP_MEMORY_ONLY                                             = 16
	VIR_DUMP_RESET                                                   = 8
	VIR_ERR_ACCESS_DENIED                                            = 88
	VIR_ERR_AGENT_COMMAND_FAILED                                     = 113
	VIR_ERR_AGENT_COMMAND_TIMEOUT                                    = 112
	VIR_ERR_AGENT_UNRESPONSIVE                                       = 86
	VIR_ERR_AGENT_UNSYNCED                                           = 97
	VIR_ERR_ARGUMENT_UNSUPPORTED                                     = 74
	VIR_ERR_AUTH_CANCELLED                                           = 79
	VIR_ERR_AUTH_FAILED                                              = 45
	VIR_ERR_AUTH_UNAVAILABLE                                         = 94
	VIR_ERR_BLOCK_COPY_ACTIVE                                        = 83
	VIR_ERR_BUILD_FIREWALL                                           = 63
	VIR_ERR_CALL_FAILED                                              = 26
	VIR_ERR_CHECKPOINT_INCONSISTENT                                  = 109
	VIR_ERR_CONFIG_UNSUPPORTED                                       = 67
	VIR_ERR_CONF_SYNTAX                                              = 33
	VIR_ERR_CPU_INCOMPATIBLE                                         = 91
	VIR_ERR_DBUS_SERVICE                                             = 89
	VIR_ERR_DEVICE_MISSING                                           = 99
	VIR_ERR_DOMAIN_LAST                                              = 73
	VIR_ERR_DOM_EXIST                                                = 28
	VIR_ERR_DRIVER_FULL                                              = 25
	VIR_ERR_ERROR                                                    = 2
	VIR_ERR_GET_FAILED                                               = 10
	VIR_ERR_GNUTLS_ERROR                                             = 40
	VIR_ERR_HOOK_SCRIPT_FAILED                                       = 70
	VIR_ERR_HTTP_ERROR                                               = 12
	VIR_ERR_INTERNAL_ERROR                                           = 1
	VIR_ERR_INVALID_ARG                                              = 8
	VIR_ERR_INVALID_CONN                                             = 6
	VIR_ERR_INVALID_DOMAIN                                           = 7
	VIR_ERR_INVALID_DOMAIN_CHECKPOINT                                = 102
	VIR_ERR_INVALID_DOMAIN_SNAPSHOT                                  = 71
	VIR_ERR_INVALID_ENCR_KEY_SECRET                                  = 114
	VIR_ERR_INVALID_INTERFACE                                        = 58
	VIR_ERR_INVALID_MAC                                              = 44
	VIR_ERR_INVALID_NETWORK                                          = 36
	VIR_ERR_INVALID_NETWORK_PORT                                     = 105
	VIR_ERR_INVALID_NODE_DEVICE                                      = 52
	VIR_ERR_INVALID_NWFILTER                                         = 61
	VIR_ERR_INVALID_NWFILTER_BINDING                                 = 100
	VIR_ERR_INVALID_SECRET                                           = 65
	VIR_ERR_INVALID_STORAGE_POOL                                     = 46
	VIR_ERR_INVALID_STORAGE_VOL                                      = 47
	VIR_ERR_INVALID_STREAM                                           = 73
	VIR_ERR_LIBSSH                                                   = 98
	VIR_ERR_MIGRATE_FINISH_OK                                        = 93
	VIR_ERR_MIGRATE_PERSIST_FAILED                                   = 69
	VIR_ERR_MIGRATE_UNSAFE                                           = 81
	VIR_ERR_MULTIPLE_DOMAINS                                         = 110
	VIR_ERR_MULTIPLE_INTERFACES                                      = 59
	VIR_ERR_NETWORK_EXIST                                            = 37
	VIR_ERR_NETWORK_PORT_EXIST                                       = 106
	VIR_ERR_NONE                                                     = 0
	VIR_ERR_NO_CLIENT                                                = 96
	VIR_ERR_NO_CONNECT                                               = 5
	VIR_ERR_NO_DEVICE                                                = 23
	VIR_ERR_NO_DOMAIN                                                = 42
	VIR_ERR_NO_DOMAIN_BACKUP                                         = 104
	VIR_ERR_NO_DOMAIN_CHECKPOINT                                     = 103
	VIR_ERR_NO_DOMAIN_METADATA                                       = 80
	VIR_ERR_NO_DOMAIN_SNAPSHOT                                       = 72
	VIR_ERR_NO_HOSTNAME                                              = 108
	VIR_ERR_NO_INTERFACE                                             = 57
	VIR_ERR_NO_KERNEL                                                = 17
	VIR_ERR_NO_MEMORY                                                = 2
	VIR_ERR_NO_NAME                                                  = 21
	VIR_ERR_NO_NETWORK                                               = 43
	VIR_ERR_NO_NETWORK_METADATA                                      = 111
	VIR_ERR_NO_NETWORK_PORT                                          = 107
	VIR_ERR_NO_NODE_DEVICE                                           = 53
	VIR_ERR_NO_NWFILTER                                              = 62
	VIR_ERR_NO_NWFILTER_BINDING                                      = 101
	VIR_ERR_NO_OS                                                    = 22
	VIR_ERR_NO_ROOT                                                  = 18
	VIR_ERR_NO_SECRET                                                = 66
	VIR_ERR_NO_SECURITY_MODEL                                        = 54
	VIR_ERR_NO_SERVER                                                = 95
	VIR_ERR_NO_SOURCE                                                = 19
	VIR_ERR_NO_STORAGE_POOL                                          = 49
	VIR_ERR_NO_STORAGE_VOL                                           = 50
	VIR_ERR_NO_SUPPORT                                               = 3
	VIR_ERR_NO_TARGET                                                = 20
	VIR_ERR_NO_XEN                                                   = 14
	VIR_ERR_NO_XENSTORE                                              = 24
	VIR_ERR_NUMBER_LAST                                              = 115
	VIR_ERR_OK                                                       = 0
	VIR_ERR_OPEN_FAILED                                              = 30
	VIR_ERR_OPERATION_ABORTED                                        = 78
	VIR_ERR_OPERATION_DENIED                                         = 29
	VIR_ERR_OPERATION_FAILED                                         = 9
	VIR_ERR_OPERATION_INVALID                                        = 55
	VIR_ERR_OPERATION_TIMEOUT                                        = 68
	VIR_ERR_OPERATION_UNSUPPORTED                                    = 84
	VIR_ERR_OS_TYPE                                                  = 16
	VIR_ERR_OVERFLOW                                                 = 82
	VIR_ERR_PARSE_FAILED                                             = 32
	VIR_ERR_POST_FAILED                                              = 11
	VIR_ERR_READ_FAILED                                              = 31
	VIR_ERR_RESOURCE_BUSY                                            = 87
	VIR_ERR_RPC                                                      = 39
	VIR_ERR_SEXPR_SERIAL                                             = 13
	VIR_ERR_SNAPSHOT_REVERT_RISKY                                    = 77
	VIR_ERR_SSH                                                      = 85
	VIR_ERR_STORAGE_POOL_BUILT                                       = 76
	VIR_ERR_STORAGE_PROBE_FAILED                                     = 75
	VIR_ERR_STORAGE_VOL_EXIST                                        = 90
	VIR_ERR_SYSTEM_ERROR                                             = 38
	VIR_ERR_UNKNOWN_HOST                                             = 4
	VIR_ERR_WARNING                                                  = 1
	VIR_ERR_WRITE_FAILED                                             = 34
	VIR_ERR_XEN_CALL                                                 = 15
	VIR_ERR_XML_DETAIL                                               = 35
	VIR_ERR_XML_ERROR                                                = 27
	VIR_ERR_XML_INVALID_SCHEMA                                       = 92
	VIR_EVENT_HANDLE_ERROR                                           = 4
	VIR_EVENT_HANDLE_HANGUP                                          = 8
	VIR_EVENT_HANDLE_READABLE                                        = 1
	VIR_EVENT_HANDLE_WRITABLE                                        = 2
	VIR_FROM_ACCESS                                                  = 55
	VIR_FROM_ADMIN                                                   = 62
	VIR_FROM_AUDIT                                                   = 36
	VIR_FROM_AUTH                                                    = 46
	VIR_FROM_BHYVE                                                   = 57
	VIR_FROM_BPF                                                     = 71
	VIR_FROM_CAPABILITIES                                            = 44
	VIR_FROM_CGROUP                                                  = 54
	VIR_FROM_CH                                                      = 72
	VIR_FROM_CONF                                                    = 9
	VIR_FROM_CPU                                                     = 31
	VIR_FROM_CRYPTO                                                  = 58
	VIR_FROM_DBUS                                                    = 47
	VIR_FROM_DEVICE                                                  = 49
	VIR_FROM_DOM                                                     = 6
	VIR_FROM_DOMAIN                                                  = 20
	VIR_FROM_DOMAIN_CHECKPOINT                                       = 69
	VIR_FROM_DOMAIN_SNAPSHOT                                         = 35
	VIR_FROM_ESX                                                     = 28
	VIR_FROM_EVENT                                                   = 40
	VIR_FROM_FIREWALL                                                = 59
	VIR_FROM_FIREWALLD                                               = 68
	VIR_FROM_HOOK                                                    = 34
	VIR_FROM_HYPERV                                                  = 43
	VIR_FROM_IDENTITY                                                = 53
	VIR_FROM_INITCTL                                                 = 52
	VIR_FROM_INTERFACE                                               = 26
	VIR_FROM_LIBSSH                                                  = 66
	VIR_FROM_LIBXL                                                   = 41
	VIR_FROM_LOCKING                                                 = 42
	VIR_FROM_LOCKSPACE                                               = 51
	VIR_FROM_LOGGING                                                 = 63
	VIR_FROM_LXC                                                     = 17
	VIR_FROM_NET                                                     = 11
	VIR_FROM_NETWORK                                                 = 19
	VIR_FROM_NODEDEV                                                 = 22
	VIR_FROM_NONE                                                    = 0
	VIR_FROM_NWFILTER                                                = 33
	VIR_FROM_ONE                                                     = 27
	VIR_FROM_OPENVZ                                                  = 14
	VIR_FROM_PARALLELS                                               = 48
	VIR_FROM_PERF                                                    = 65
	VIR_FROM_PHYP                                                    = 29
	VIR_FROM_POLKIT                                                  = 60
	VIR_FROM_PROXY                                                   = 8
	VIR_FROM_QEMU                                                    = 10
	VIR_FROM_REMOTE                                                  = 13
	VIR_FROM_RESCTRL                                                 = 67
	VIR_FROM_RPC                                                     = 7
	VIR_FROM_SECRET                                                  = 30
	VIR_FROM_SECURITY                                                = 24
	VIR_FROM_SEXPR                                                   = 4
	VIR_FROM_SSH                                                     = 50
	VIR_FROM_STATS_LINUX                                             = 16
	VIR_FROM_STORAGE                                                 = 18
	VIR_FROM_STREAMS                                                 = 38
	VIR_FROM_SYSINFO                                                 = 37
	VIR_FROM_SYSTEMD                                                 = 56
	VIR_FROM_TEST                                                    = 12
	VIR_FROM_THREAD                                                  = 61
	VIR_FROM_TPM                                                     = 70
	VIR_FROM_UML                                                     = 21
	VIR_FROM_URI                                                     = 45
	VIR_FROM_VBOX                                                    = 25
	VIR_FROM_VMWARE                                                  = 39
	VIR_FROM_XEN                                                     = 1
	VIR_FROM_XENAPI                                                  = 32
	VIR_FROM_XEND                                                    = 2
	VIR_FROM_XENSTORE                                                = 3
	VIR_FROM_XENXL                                                   = 64
	VIR_FROM_XENXM                                                   = 15
	VIR_FROM_XEN_INOTIFY                                             = 23
	VIR_FROM_XML                                                     = 5
	VIR_INTERFACE_DEFINE_VALIDATE                                    = 1
	VIR_INTERFACE_XML_INACTIVE                                       = 1
	VIR_IP_ADDR_TYPE_IPV4                                            = 0
	VIR_IP_ADDR_TYPE_IPV6                                            = 1
	VIR_IP_ADDR_TYPE_LAST                                            = 2
	VIR_KEYCODE_SET_ATSET1                                           = 2
	VIR_KEYCODE_SET_ATSET2                                           = 3
	VIR_KEYCODE_SET_ATSET3                                           = 4
	VIR_KEYCODE_SET_LAST                                             = 10
	VIR_KEYCODE_SET_LINUX                                            = 0
	VIR_KEYCODE_SET_OSX                                              = 5
	VIR_KEYCODE_SET_QNUM                                             = 9
	VIR_KEYCODE_SET_USB                                              = 7
	VIR_KEYCODE_SET_WIN32                                            = 8
	VIR_KEYCODE_SET_XT                                               = 1
	VIR_KEYCODE_SET_XT_KBD                                           = 6
	VIR_MEMORY_PHYSICAL                                              = 2
	VIR_MEMORY_VIRTUAL                                               = 1
	VIR_MIGRATE_ABORT_ON_ERROR                                       = 4096
	VIR_MIGRATE_AUTO_CONVERGE                                        = 8192
	VIR_MIGRATE_CHANGE_PROTECTION                                    = 256
	VIR_MIGRATE_COMPRESSED                                           = 2048
	VIR_MIGRATE_LIVE                                                 = 1
	VIR_MIGRATE_NON_SHARED_DISK                                      = 64
	VIR_MIGRATE_NON_SHARED_INC                                       = 128
	VIR_MIGRATE_NON_SHARED_SYNCHRONOUS_WRITES                        = 262144
	VIR_MIGRATE_OFFLINE                                              = 1024
	VIR_MIGRATE_PARALLEL                                             = 131072
	VIR_MIGRATE_PAUSED                                               = 32
	VIR_MIGRATE_PEER2PEER                                            = 2
	VIR_MIGRATE_PERSIST_DEST                                         = 8
	VIR_MIGRATE_POSTCOPY                                             = 32768
	VIR_MIGRATE_POSTCOPY_RESUME                                      = 524288
	VIR_MIGRATE_RDMA_PIN_ALL                                         = 16384
	VIR_MIGRATE_TLS                                                  = 65536
	VIR_MIGRATE_TUNNELLED                                            = 4
	VIR_MIGRATE_UNDEFINE_SOURCE                                      = 16
	VIR_MIGRATE_UNSAFE                                               = 512
	VIR_MIGRATE_ZEROCOPY                                             = 1048576
	VIR_NETWORK_CREATE_VALIDATE                                      = 1
	VIR_NETWORK_DEFINE_VALIDATE                                      = 1
	VIR_NETWORK_EVENT_DEFINED                                        = 0
	VIR_NETWORK_EVENT_ID_LAST                                        = 2
	VIR_NETWORK_EVENT_ID_LIFECYCLE                                   = 0
	VIR_NETWORK_EVENT_ID_METADATA_CHANGE                             = 1
	VIR_NETWORK_EVENT_LAST                                           = 4
	VIR_NETWORK_EVENT_STARTED                                        = 2
	VIR_NETWORK_EVENT_STOPPED                                        = 3
	VIR_NETWORK_EVENT_UNDEFINED                                      = 1
	VIR_NETWORK_METADATA_DESCRIPTION                                 = 0
	VIR_NETWORK_METADATA_ELEMENT                                     = 2
	VIR_NETWORK_METADATA_LAST                                        = 3
	VIR_NETWORK_METADATA_TITLE                                       = 1
	VIR_NETWORK_PORT_CREATE_RECLAIM                                  = 1
	VIR_NETWORK_PORT_CREATE_VALIDATE                                 = 2
	VIR_NETWORK_SECTION_BRIDGE                                       = 1
	VIR_NETWORK_SECTION_DNS_HOST                                     = 10
	VIR_NETWORK_SECTION_DNS_SRV                                      = 12
	VIR_NETWORK_SECTION_DNS_TXT                                      = 11
	VIR_NETWORK_SECTION_DOMAIN                                       = 2
	VIR_NETWORK_SECTION_FORWARD                                      = 6
	VIR_NETWORK_SECTION_FORWARD_INTERFACE                            = 7
	VIR_NETWORK_SECTION_FORWARD_PF                                   = 8
	VIR_NETWORK_SECTION_IP                                           = 3
	VIR_NETWORK_SECTION_IP_DHCP_HOST                                 = 4
	VIR_NETWORK_SECTION_IP_DHCP_RANGE                                = 5
	VIR_NETWORK_SECTION_LAST                                         = 13
	VIR_NETWORK_SECTION_NONE                                         = 0
	VIR_NETWORK_SECTION_PORTGROUP                                    = 9
	VIR_NETWORK_UPDATE_AFFECT_CONFIG                                 = 2
	VIR_NETWORK_UPDATE_AFFECT_CURRENT                                = 0
	VIR_NETWORK_UPDATE_AFFECT_LIVE                                   = 1
	VIR_NETWORK_UPDATE_COMMAND_ADD_FIRST                             = 4
	VIR_NETWORK_UPDATE_COMMAND_ADD_LAST                              = 3
	VIR_NETWORK_UPDATE_COMMAND_DELETE                                = 2
	VIR_NETWORK_UPDATE_COMMAND_LAST                                  = 5
	VIR_NETWORK_UPDATE_COMMAND_MODIFY                                = 1
	VIR_NETWORK_UPDATE_COMMAND_NONE                                  = 0
	VIR_NETWORK_XML_INACTIVE                                         = 1
	VIR_NODE_ALLOC_PAGES_ADD                                         = 0
	VIR_NODE_ALLOC_PAGES_SET                                         = 1
	VIR_NODE_CPU_STATS_ALL_CPUS                                      = -1
	VIR_NODE_DEVICE_CREATE_XML_VALIDATE                              = 1
	VIR_NODE_DEVICE_DEFINE_XML_VALIDATE                              = 1
	VIR_NODE_DEVICE_EVENT_CREATED                                    = 0
	VIR_NODE_DEVICE_EVENT_DEFINED                                    = 2
	VIR_NODE_DEVICE_EVENT_DELETED                                    = 1
	VIR_NODE_DEVICE_EVENT_ID_LAST                                    = 2
	VIR_NODE_DEVICE_EVENT_ID_LIFECYCLE                               = 0
	VIR_NODE_DEVICE_EVENT_ID_UPDATE                                  = 1
	VIR_NODE_DEVICE_EVENT_LAST                                       = 4
	VIR_NODE_DEVICE_EVENT_UNDEFINED                                  = 3
	VIR_NODE_DEVICE_UPDATE_AFFECT_CONFIG                             = 2
	VIR_NODE_DEVICE_UPDATE_AFFECT_CURRENT                            = 0
	VIR_NODE_DEVICE_UPDATE_AFFECT_LIVE                               = 1
	VIR_NODE_DEVICE_XML_INACTIVE                                     = 1
	VIR_NODE_MEMORY_STATS_ALL_CELLS                                  = -1
	VIR_NODE_SUSPEND_TARGET_DISK                                     = 1
	VIR_NODE_SUSPEND_TARGET_HYBRID                                   = 2
	VIR_NODE_SUSPEND_TARGET_LAST                                     = 3
	VIR_NODE_SUSPEND_TARGET_MEM                                      = 0
	VIR_NWFILTER_BINDING_CREATE_VALIDATE                             = 1
	VIR_NWFILTER_DEFINE_VALIDATE                                     = 1
	VIR_SECRET_DEFINE_VALIDATE                                       = 1
	VIR_SECRET_EVENT_DEFINED                                         = 0
	VIR_SECRET_EVENT_ID_LAST                                         = 2
	VIR_SECRET_EVENT_ID_LIFECYCLE                                    = 0
	VIR_SECRET_EVENT_ID_VALUE_CHANGED                                = 1
	VIR_SECRET_EVENT_LAST                                            = 2
	VIR_SECRET_EVENT_UNDEFINED                                       = 1
	VIR_SECRET_USAGE_TYPE_CEPH                                       = 2
	VIR_SECRET_USAGE_TYPE_ISCSI                                      = 3
	VIR_SECRET_USAGE_TYPE_LAST                                       = 6
	VIR_SECRET_USAGE_TYPE_NONE                                       = 0
	VIR_SECRET_USAGE_TYPE_TLS                                        = 4
	VIR_SECRET_USAGE_TYPE_VOLUME                                     = 1
	VIR_SECRET_USAGE_TYPE_VTPM                                       = 5
	VIR_STORAGE_POOL_BUILDING                                        = 1
	VIR_STORAGE_POOL_BUILD_NEW                                       = 0
	VIR_STORAGE_POOL_BUILD_NO_OVERWRITE                              = 4
	VIR_STORAGE_POOL_BUILD_OVERWRITE                                 = 8
	VIR_STORAGE_POOL_BUILD_REPAIR                                    = 1
	VIR_STORAGE_POOL_BUILD_RESIZE                                    = 2
	VIR_STORAGE_POOL_CREATE_NORMAL                                   = 0
	VIR_STORAGE_POOL_CREATE_WITH_BUILD                               = 1
	VIR_STORAGE_POOL_CREATE_WITH_BUILD_NO_OVERWRITE                  = 4
	VIR_STORAGE_POOL_CREATE_WITH_BUILD_OVERWRITE                     = 2
	VIR_STORAGE_POOL_DEFINE_VALIDATE                                 = 1
	VIR_STORAGE_POOL_DEGRADED                                        = 3
	VIR_STORAGE_POOL_DELETE_NORMAL                                   = 0
	VIR_STORAGE_POOL_DELETE_ZEROED                                   = 1
	VIR_STORAGE_POOL_EVENT_CREATED                                   = 4
	VIR_STORAGE_POOL_EVENT_DEFINED                                   = 0
	VIR_STORAGE_POOL_EVENT_DELETED                                   = 5
	VIR_STORAGE_POOL_EVENT_ID_LAST                                   = 2
	VIR_STORAGE_POOL_EVENT_ID_LIFECYCLE                              = 0
	VIR_STORAGE_POOL_EVENT_ID_REFRESH                                = 1
	VIR_STORAGE_POOL_EVENT_LAST                                      = 6
	VIR_STORAGE_POOL_EVENT_STARTED                                   = 2
	VIR_STORAGE_POOL_EVENT_STOPPED                                   = 3
	VIR_STORAGE_POOL_EVENT_UNDEFINED                                 = 1
	VIR_STORAGE_POOL_INACCESSIBLE                                    = 4
	VIR_STORAGE_POOL_INACTIVE                                        = 0
	VIR_STORAGE_POOL_RUNNING                                         = 2
	VIR_STORAGE_POOL_STATE_LAST                                      = 5
	VIR_STORAGE_VOL_BLOCK                                            = 1
	VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA                         = 1
	VIR_STORAGE_VOL_CREATE_REFLINK                                   = 2
	VIR_STORAGE_VOL_CREATE_VALIDATE                                  = 4
	VIR_STORAGE_VOL_DELETE_NORMAL                                    = 0
	VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTS                            = 2
	VIR_STORAGE_VOL_DELETE_ZEROED                                    = 1
	VIR_STORAGE_VOL_DIR                                              = 2
	VIR_STORAGE_VOL_DOWNLOAD_SPARSE_STREAM                           = 1
	VIR_STORAGE_VOL_FILE                                             = 0
	VIR_STORAGE_VOL_GET_PHYSICAL                                     = 1
	VIR_STORAGE_VOL_LAST                                             = 6
	VIR_STORAGE_VOL_NETDIR                                           = 4
	VIR_STORAGE_VOL_NETWORK                                          = 3
	VIR_STORAGE_VOL_PLOOP                                            = 5
	VIR_STORAGE_VOL_RESIZE_ALLOCATE                                  = 1
	VIR_STORAGE_VOL_RESIZE_DELTA                                     = 2
	VIR_STORAGE_VOL_RESIZE_SHRINK                                    = 4
	VIR_STORAGE_VOL_UPLOAD_SPARSE_STREAM                             = 1
	VIR_STORAGE_VOL_USE_ALLOCATION                                   = 0
	VIR_STORAGE_VOL_WIPE_ALG_BSI                                     = 3
	VIR_STORAGE_VOL_WIPE_ALG_DOD                                     = 2
	VIR_STORAGE_VOL_WIPE_ALG_GUTMANN                                 = 4
	VIR_STORAGE_VOL_WIPE_ALG_LAST                                    = 10
	VIR_STORAGE_VOL_WIPE_ALG_NNSA                                    = 1
	VIR_STORAGE_VOL_WIPE_ALG_PFITZNER33                              = 7
	VIR_STORAGE_VOL_WIPE_ALG_PFITZNER7                               = 6
	VIR_STORAGE_VOL_WIPE_ALG_RANDOM                                  = 8
	VIR_STORAGE_VOL_WIPE_ALG_SCHNEIER                                = 5
	VIR_STORAGE_VOL_WIPE_ALG_TRIM                                    = 9
	VIR_STORAGE_VOL_WIPE_ALG_ZERO                                    = 0
	VIR_STORAGE_XML_INACTIVE                                         = 1
	VIR_STREAM_EVENT_ERROR                                           = 4
	VIR_STREAM_EVENT_HANGUP                                          = 8
	VIR_STREAM_EVENT_READABLE                                        = 1
	VIR_STREAM_EVENT_WRITABLE                                        = 2
	VIR_STREAM_NONBLOCK                                              = 1
	VIR_STREAM_RECV_STOP_AT_HOLE                                     = 1
	VIR_TYPED_PARAM_BOOLEAN                                          = 6
	VIR_TYPED_PARAM_DOUBLE                                           = 5
	VIR_TYPED_PARAM_INT                                              = 1
	VIR_TYPED_PARAM_LAST                                             = 8
	VIR_TYPED_PARAM_LLONG                                            = 3
	VIR_TYPED_PARAM_STRING                                           = 7
	VIR_TYPED_PARAM_STRING_OKAY                                      = 4
	VIR_TYPED_PARAM_UINT                                             = 2
	VIR_TYPED_PARAM_ULLONG                                           = 4
	VIR_VCPU_BLOCKED                                                 = 2
	VIR_VCPU_INFO_CPU_OFFLINE                                        = -1
	VIR_VCPU_INFO_CPU_UNAVAILABLE                                    = -2
	VIR_VCPU_LAST                                                    = 3
	VIR_VCPU_OFFLINE                                                 = 0
	VIR_VCPU_RUNNING                                                 = 1
	VIR_WAR_NO_INTERFACE                                             = 56
	VIR_WAR_NO_NETWORK                                               = 41
	VIR_WAR_NO_NODE                                                  = 51
	VIR_WAR_NO_NWFILTER                                              = 60
	VIR_WAR_NO_SECRET                                                = 64
	VIR_WAR_NO_STORAGE                                               = 48
)

Raw constants retain libvirt's C names so the full enum catalog updates automatically.

Variables

View Source
var (
	// ErrClosed indicates that a connection or domain handle has been released.
	ErrClosed = errors.New("libvirt: resource is closed")
	// ErrEmbeddedNUL indicates that a Go string cannot be represented as a C string.
	ErrEmbeddedNUL = errors.New("libvirt: string contains a NUL byte")
	// ErrLibraryNotFound indicates that the libvirt shared library could not be loaded.
	ErrLibraryNotFound = errors.New("libvirt: shared library not found")
	// ErrSymbolUnavailable indicates that the loaded libvirt predates an API function.
	ErrSymbolUnavailable = errors.New("libvirt: symbol unavailable")
	// ErrStreamWouldBlock indicates nonblocking stream I/O cannot currently progress.
	ErrStreamWouldBlock = errors.New("libvirt: stream would block")
	// ErrUnsupportedPlatform indicates that no dynamic loader is implemented for this GOOS.
	ErrUnsupportedPlatform = fmt.Errorf("libvirt: unsupported platform %s", runtime.GOOS)
)

Functions

func GetVersion

func GetVersion() (uint64, error)

GetVersion returns the version of the dynamically loaded libvirt library.

func HasSymbol

func HasSymbol(name string) (bool, error)

HasSymbol reports whether the loaded libvirt exports a generated API symbol.

func RegisterDefaultEventImpl

func RegisterDefaultEventImpl() error

RegisterDefaultEventImpl installs libvirt's poll-based default event loop. Repeated calls return the result of the process-wide first registration.

func RunDefaultEventImpl

func RunDefaultEventImpl() error

RunDefaultEventImpl runs one iteration of libvirt's default event loop.

func SymbolVersion

func SymbolVersion(name string) (string, bool)

SymbolVersion returns the libvirt version that introduced a generated symbol.

Types

type CloseCallback

type CloseCallback struct {
	// contains filtered or unexported fields
}

CloseCallback owns a registered connection-close callback.

func (*CloseCallback) Close

func (callback *CloseCallback) Close() error

Close unregisters the connection-close callback. It is idempotent.

type Connect

type Connect struct {
	// contains filtered or unexported fields
}

Connect is a reference-counted connection to a libvirt hypervisor driver. Connect must not be copied after first use.

func NewConnect

func NewConnect(uri string) (*Connect, error)

NewConnect opens a read-write libvirt connection. An empty URI asks libvirt to select its configured default.

func NewConnectReadOnly

func NewConnectReadOnly(uri string) (*Connect, error)

NewConnectReadOnly opens a read-only libvirt connection. An empty URI asks libvirt to select its configured default.

func (*Connect) Close

func (c *Connect) Close() (int, error)

Close releases this wrapper's connection reference. The returned value is libvirt's indication of whether other references remain.

func (*Connect) CreateNetworkXML

func (c *Connect) CreateNetworkXML(xml string) (*Network, error)

CreateNetworkXML creates a transient virtual network.

func (*Connect) CreateNodeDeviceXML

func (c *Connect) CreateNodeDeviceXML(xml string, flags uint32) (*NodeDevice, error)

CreateNodeDeviceXML creates a node device from XML.

func (*Connect) CreateStoragePoolXML

func (c *Connect) CreateStoragePoolXML(xml string, flags uint32) (*StoragePool, error)

CreateStoragePoolXML creates a transient storage pool.

func (*Connect) DefineDomainXML

func (c *Connect) DefineDomainXML(xml string) (*Domain, error)

DefineDomainXML defines a persistent domain and returns a referenced handle. The caller must call Free.

func (*Connect) DefineInterfaceXML

func (c *Connect) DefineInterfaceXML(xml string, flags uint32) (*Interface, error)

DefineInterfaceXML defines a persistent host interface.

func (*Connect) DefineNWFilterXML

func (c *Connect) DefineNWFilterXML(xml string) (*NWFilter, error)

DefineNWFilterXML defines a network filter.

func (*Connect) DefineNetworkXML

func (c *Connect) DefineNetworkXML(xml string) (*Network, error)

DefineNetworkXML defines a persistent virtual network.

func (*Connect) DefineNetworkXMLFlags

func (c *Connect) DefineNetworkXMLFlags(xml string, flags uint32) (*Network, error)

DefineNetworkXMLFlags defines a persistent virtual network with flags.

func (*Connect) DefineSecretXML

func (c *Connect) DefineSecretXML(xml string, flags uint32) (*Secret, error)

DefineSecretXML defines or updates a secret.

func (*Connect) DefineStoragePoolXML

func (c *Connect) DefineStoragePoolXML(xml string, flags uint32) (*StoragePool, error)

DefineStoragePoolXML defines a persistent storage pool.

func (*Connect) GetLibVersion

func (c *Connect) GetLibVersion() (uint64, error)

GetLibVersion returns the version of the libvirt library used by this connection.

func (*Connect) GetURI

func (c *Connect) GetURI() (string, error)

GetURI returns the canonical URI for the connection.

func (*Connect) GetVersion

func (c *Connect) GetVersion() (uint64, error)

GetVersion returns the version of the connected hypervisor.

func (*Connect) IsAlive

func (c *Connect) IsAlive() (bool, error)

IsAlive reports whether the connection is still alive.

func (*Connect) ListAllDomains

func (c *Connect) ListAllDomains(flags ConnectListAllDomainsFlags) ([]*Domain, error)

ListAllDomains returns domains matching flags. Every returned Domain owns a reference that the caller must release with Free.

func (*Connect) ListAllInterfaces

func (c *Connect) ListAllInterfaces(flags uint32) ([]*Interface, error)

ListAllInterfaces returns host interfaces matching flags. Each handle must be freed.

func (*Connect) ListAllNWFilters

func (c *Connect) ListAllNWFilters(flags uint32) ([]*NWFilter, error)

ListAllNWFilters returns network filters matching flags. Each handle must be freed.

func (*Connect) ListAllNetworks

func (c *Connect) ListAllNetworks(flags uint32) ([]*Network, error)

ListAllNetworks returns virtual networks matching flags. Each handle must be freed.

func (*Connect) ListAllNodeDevices

func (c *Connect) ListAllNodeDevices(flags uint32) ([]*NodeDevice, error)

ListAllNodeDevices returns node devices matching flags. Each handle must be freed.

func (*Connect) ListAllSecrets

func (c *Connect) ListAllSecrets(flags uint32) ([]*Secret, error)

ListAllSecrets returns secrets matching flags. Each handle must be freed.

func (*Connect) ListAllStoragePools

func (c *Connect) ListAllStoragePools(flags uint32) ([]*StoragePool, error)

ListAllStoragePools returns storage pools matching flags. Each handle must be freed.

func (*Connect) LookupDomainByName

func (c *Connect) LookupDomainByName(name string) (*Domain, error)

LookupDomainByName returns a referenced domain handle. The caller must call Free.

func (*Connect) LookupInterfaceByMACString

func (c *Connect) LookupInterfaceByMACString(mac string) (*Interface, error)

LookupInterfaceByMACString returns a referenced host interface.

func (*Connect) LookupInterfaceByName

func (c *Connect) LookupInterfaceByName(name string) (*Interface, error)

LookupInterfaceByName returns a referenced host interface.

func (*Connect) LookupNWFilterByName

func (c *Connect) LookupNWFilterByName(name string) (*NWFilter, error)

LookupNWFilterByName returns a referenced network filter.

func (*Connect) LookupNWFilterByUUIDString

func (c *Connect) LookupNWFilterByUUIDString(uuid string) (*NWFilter, error)

LookupNWFilterByUUIDString returns a referenced network filter.

func (*Connect) LookupNetworkByName

func (c *Connect) LookupNetworkByName(name string) (*Network, error)

LookupNetworkByName returns a referenced network handle.

func (*Connect) LookupNetworkByUUIDString

func (c *Connect) LookupNetworkByUUIDString(uuid string) (*Network, error)

LookupNetworkByUUIDString returns a referenced network handle.

func (*Connect) LookupNodeDeviceByName

func (c *Connect) LookupNodeDeviceByName(name string) (*NodeDevice, error)

LookupNodeDeviceByName returns a referenced node device.

func (*Connect) LookupSecretByUUIDString

func (c *Connect) LookupSecretByUUIDString(uuid string) (*Secret, error)

LookupSecretByUUIDString returns a referenced secret.

func (*Connect) LookupSecretByUsage

func (c *Connect) LookupSecretByUsage(usageType int32, usageID string) (*Secret, error)

LookupSecretByUsage returns a referenced secret for a usage type and ID.

func (*Connect) LookupStoragePoolByName

func (c *Connect) LookupStoragePoolByName(name string) (*StoragePool, error)

LookupStoragePoolByName returns a referenced storage pool.

func (*Connect) LookupStoragePoolByUUIDString

func (c *Connect) LookupStoragePoolByUUIDString(uuid string) (*StoragePool, error)

LookupStoragePoolByUUIDString returns a referenced storage pool.

func (*Connect) LookupStorageVolByKey

func (c *Connect) LookupStorageVolByKey(key string) (*StorageVol, error)

LookupStorageVolByKey returns a referenced volume by globally unique key.

func (*Connect) LookupStorageVolByPath

func (c *Connect) LookupStorageVolByPath(path string) (*StorageVol, error)

LookupStorageVolByPath returns a referenced volume by local path.

func (*Connect) NewStream

func (c *Connect) NewStream(flags uint32) (*Stream, error)

NewStream creates a stream associated with this connection.

func (*Connect) RegisterCloseCallback

func (c *Connect) RegisterCloseCallback(callback func(reason int32)) (*CloseCallback, error)

RegisterCloseCallback registers a callback for connection closure.

func (*Connect) RegisterDomainLifecycleCallback

func (c *Connect) RegisterDomainLifecycleCallback(domain *Domain, callback func(DomainLifecycleEvent)) (*DomainEventCallback, error)

RegisterDomainLifecycleCallback registers lifecycle events. A nil domain receives events for all domains on the connection.

type ConnectListAllDomainsFlags

type ConnectListAllDomainsFlags uint32

ConnectListAllDomainsFlags filters ListAllDomains results. Flags in the same group are ORed; a group with no selected bits does not filter the results. Values are generated from virConnectListAllDomainsFlags in libvirt-api.xml.

const (
	ConnectListDomainsActive        ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_ACTIVE)
	ConnectListDomainsInactive      ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_INACTIVE)
	ConnectListDomainsPersistent    ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_PERSISTENT)
	ConnectListDomainsTransient     ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_TRANSIENT)
	ConnectListDomainsRunning       ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_RUNNING)
	ConnectListDomainsPaused        ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_PAUSED)
	ConnectListDomainsShutoff       ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_SHUTOFF)
	ConnectListDomainsOther         ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_OTHER)
	ConnectListDomainsManagedSave   ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_MANAGEDSAVE)
	ConnectListDomainsNoManagedSave ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_NO_MANAGEDSAVE)
	ConnectListDomainsAutostart     ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_AUTOSTART)
	ConnectListDomainsNoAutostart   ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_NO_AUTOSTART)
	ConnectListDomainsHasSnapshot   ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_HAS_SNAPSHOT)
	ConnectListDomainsNoSnapshot    ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_NO_SNAPSHOT)
	ConnectListDomainsHasCheckpoint ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_HAS_CHECKPOINT)
	ConnectListDomainsNoCheckpoint  ConnectListAllDomainsFlags = ConnectListAllDomainsFlags(VIR_CONNECT_LIST_DOMAINS_NO_CHECKPOINT)
)

type Domain

type Domain struct {
	// contains filtered or unexported fields
}

Domain is a reference-counted libvirt domain handle. Domain must not be copied after first use.

func (*Domain) Create

func (d *Domain) Create() error

Create starts an inactive domain.

func (*Domain) CreateCheckpointXML

func (domain *Domain) CreateCheckpointXML(xml string, flags uint32) (*DomainCheckpoint, error)

CreateCheckpointXML creates a domain checkpoint.

func (*Domain) CreateSnapshotXML

func (domain *Domain) CreateSnapshotXML(xml string, flags uint32) (*DomainSnapshot, error)

CreateSnapshotXML creates a domain snapshot.

func (*Domain) CurrentSnapshot

func (domain *Domain) CurrentSnapshot(flags uint32) (*DomainSnapshot, error)

CurrentSnapshot returns the current snapshot.

func (*Domain) Destroy

func (d *Domain) Destroy() error

Destroy immediately stops a running domain.

func (*Domain) Free

func (d *Domain) Free() error

Free releases this wrapper's domain reference.

func (*Domain) GetBlockIOParameters

func (domain *Domain) GetBlockIOParameters(flags uint32) ([]TypedParameter, error)

GetBlockIOParameters returns domain block-I/O tuning parameters.

func (*Domain) GetMemoryParameters

func (domain *Domain) GetMemoryParameters(flags uint32) ([]TypedParameter, error)

GetMemoryParameters returns domain memory tuning parameters.

func (*Domain) GetName

func (d *Domain) GetName() (string, error)

GetName returns the domain's public name.

func (*Domain) GetNumaParameters

func (domain *Domain) GetNumaParameters(flags uint32) ([]TypedParameter, error)

GetNumaParameters returns domain NUMA tuning parameters.

func (*Domain) GetSchedulerParameters

func (domain *Domain) GetSchedulerParameters(flags uint32) ([]TypedParameter, error)

GetSchedulerParameters returns domain scheduler parameters.

func (*Domain) GetState

func (d *Domain) GetState() (DomainState, int32, error)

GetState returns the current domain state and the state-specific reason code.

func (*Domain) GetUUIDString

func (d *Domain) GetUUIDString() (string, error)

GetUUIDString returns the domain UUID in canonical RFC 4122 form.

func (*Domain) GetXMLDesc

func (d *Domain) GetXMLDesc(flags DomainXMLFlags) (string, error)

GetXMLDesc returns the domain XML. The native allocation is copied into Go memory and released before this method returns.

func (*Domain) IsActive

func (d *Domain) IsActive() (bool, error)

IsActive reports whether the domain is currently running.

func (*Domain) ListAllCheckpoints

func (domain *Domain) ListAllCheckpoints(flags uint32) ([]*DomainCheckpoint, error)

ListAllCheckpoints returns checkpoints matching flags. Each handle must be freed.

func (*Domain) ListAllSnapshots

func (domain *Domain) ListAllSnapshots(flags uint32) ([]*DomainSnapshot, error)

ListAllSnapshots returns snapshots matching flags. Each handle must be freed.

func (*Domain) LookupCheckpointByName

func (domain *Domain) LookupCheckpointByName(name string, flags uint32) (*DomainCheckpoint, error)

LookupCheckpointByName returns a referenced checkpoint.

func (*Domain) LookupSnapshotByName

func (domain *Domain) LookupSnapshotByName(name string, flags uint32) (*DomainSnapshot, error)

LookupSnapshotByName returns a referenced domain snapshot.

func (*Domain) SetBlockIOParameters

func (domain *Domain) SetBlockIOParameters(params []TypedParameter, flags uint32) error

SetBlockIOParameters updates domain block-I/O tuning parameters.

func (*Domain) SetMemoryParameters

func (domain *Domain) SetMemoryParameters(params []TypedParameter, flags uint32) error

SetMemoryParameters updates domain memory tuning parameters.

func (*Domain) SetNumaParameters

func (domain *Domain) SetNumaParameters(params []TypedParameter, flags uint32) error

SetNumaParameters updates domain NUMA tuning parameters.

func (*Domain) SetSchedulerParameters

func (domain *Domain) SetSchedulerParameters(params []TypedParameter, flags uint32) error

SetSchedulerParameters updates domain scheduler parameters.

func (*Domain) Shutdown

func (d *Domain) Shutdown() error

Shutdown requests a graceful guest shutdown.

func (*Domain) Undefine

func (d *Domain) Undefine() error

Undefine removes a persistent domain definition.

func (*Domain) UndefineFlags

func (d *Domain) UndefineFlags(flags uint32) error

UndefineFlags removes a persistent domain definition with flags.

type DomainCheckpoint

type DomainCheckpoint struct {
	// contains filtered or unexported fields
}

DomainCheckpoint is a reference-counted domain checkpoint handle.

func (*DomainCheckpoint) Delete

func (checkpoint *DomainCheckpoint) Delete(flags uint32) error

Delete removes checkpoint metadata according to flags.

func (*DomainCheckpoint) Free

func (checkpoint *DomainCheckpoint) Free() error

Free releases this wrapper's checkpoint reference.

func (*DomainCheckpoint) GetName

func (checkpoint *DomainCheckpoint) GetName() (string, error)

GetName returns the checkpoint name.

func (*DomainCheckpoint) GetXMLDesc

func (checkpoint *DomainCheckpoint) GetXMLDesc(flags uint32) (string, error)

GetXMLDesc returns the checkpoint XML.

func (*DomainCheckpoint) ListAllChildren

func (checkpoint *DomainCheckpoint) ListAllChildren(flags uint32) ([]*DomainCheckpoint, error)

ListAllChildren returns child checkpoints. Each handle must be freed.

type DomainEventCallback

type DomainEventCallback struct {
	// contains filtered or unexported fields
}

DomainEventCallback owns a registered domain event callback.

func (*DomainEventCallback) Close

func (callback *DomainEventCallback) Close() error

Close unregisters the domain event callback. It is idempotent.

type DomainLifecycleEvent

type DomainLifecycleEvent struct {
	DomainName string
	Event      int32
	Detail     int32
}

DomainLifecycleEvent is delivered for libvirt domain lifecycle changes.

type DomainSnapshot

type DomainSnapshot struct {
	// contains filtered or unexported fields
}

DomainSnapshot is a reference-counted domain snapshot handle.

func (*DomainSnapshot) Delete

func (snapshot *DomainSnapshot) Delete(flags uint32) error

Delete removes snapshot metadata and optionally its data according to flags.

func (*DomainSnapshot) Free

func (snapshot *DomainSnapshot) Free() error

Free releases this wrapper's snapshot reference.

func (*DomainSnapshot) GetName

func (snapshot *DomainSnapshot) GetName() (string, error)

GetName returns the snapshot name.

func (*DomainSnapshot) GetXMLDesc

func (snapshot *DomainSnapshot) GetXMLDesc(flags uint32) (string, error)

GetXMLDesc returns the snapshot XML.

func (*DomainSnapshot) Revert

func (snapshot *DomainSnapshot) Revert(flags uint32) error

Revert reverts the domain to this snapshot.

type DomainState

type DomainState int32

DomainState describes a domain's current execution state. Values are generated from virDomainState in libvirt-api.xml.

type DomainXMLFlags

type DomainXMLFlags uint32

DomainXMLFlags controls which form of domain XML GetXMLDesc returns. Values are generated from virDomainXMLFlags in libvirt-api.xml.

type Error

type Error struct {
	Operation string
	Code      int32
	Domain    int32
	Level     int32
	Message   string
}

Error is a copy of libvirt's thread-local error record.

func (*Error) Error

func (e *Error) Error() string

type Interface

type Interface struct {
	// contains filtered or unexported fields
}

Interface is a reference-counted host network-interface handle.

func (*Interface) Create

func (iface *Interface) Create(flags uint32) error

Create activates the host interface.

func (*Interface) Destroy

func (iface *Interface) Destroy(flags uint32) error

Destroy deactivates the host interface.

func (*Interface) Free

func (iface *Interface) Free() error

Free releases this wrapper's interface reference.

func (*Interface) GetMACString

func (iface *Interface) GetMACString() (string, error)

GetMACString returns the interface MAC address.

func (*Interface) GetName

func (iface *Interface) GetName() (string, error)

GetName returns the interface name.

func (*Interface) GetXMLDesc

func (iface *Interface) GetXMLDesc(flags uint32) (string, error)

GetXMLDesc returns the interface XML.

func (*Interface) IsActive

func (iface *Interface) IsActive() (bool, error)

IsActive reports whether the host interface is active.

func (*Interface) Undefine

func (iface *Interface) Undefine() error

Undefine removes the persistent interface definition.

type NWFilter

type NWFilter struct {
	// contains filtered or unexported fields
}

NWFilter is a reference-counted libvirt network-filter handle.

func (*NWFilter) Free

func (filter *NWFilter) Free() error

Free releases this wrapper's network-filter reference.

func (*NWFilter) GetName

func (filter *NWFilter) GetName() (string, error)

GetName returns the network-filter name.

func (*NWFilter) GetUUIDString

func (filter *NWFilter) GetUUIDString() (string, error)

GetUUIDString returns the canonical filter UUID.

func (*NWFilter) GetXMLDesc

func (filter *NWFilter) GetXMLDesc(flags uint32) (string, error)

GetXMLDesc returns the network-filter XML.

func (*NWFilter) Undefine

func (filter *NWFilter) Undefine() error

Undefine removes the network-filter definition.

type Network

type Network struct {
	// contains filtered or unexported fields
}

Network is a reference-counted libvirt virtual network handle.

func (*Network) Create

func (network *Network) Create() error

Create starts an inactive persistent network.

func (*Network) CreatePortXML

func (network *Network) CreatePortXML(xml string, flags uint32) (*NetworkPort, error)

CreatePortXML creates a network port from XML.

func (*Network) Destroy

func (network *Network) Destroy() error

Destroy stops an active network.

func (*Network) Free

func (network *Network) Free() error

Free releases this wrapper's network reference.

func (*Network) GetAutostart

func (network *Network) GetAutostart() (bool, error)

GetAutostart reports whether the network starts automatically.

func (*Network) GetName

func (network *Network) GetName() (string, error)

GetName returns the network name.

func (*Network) GetUUIDString

func (network *Network) GetUUIDString() (string, error)

GetUUIDString returns the canonical network UUID.

func (*Network) GetXMLDesc

func (network *Network) GetXMLDesc(flags uint32) (string, error)

GetXMLDesc returns the network XML.

func (*Network) IsActive

func (network *Network) IsActive() (bool, error)

IsActive reports whether the network is active.

func (*Network) IsPersistent

func (network *Network) IsPersistent() (bool, error)

IsPersistent reports whether the network has persistent configuration.

func (*Network) ListAllPorts

func (network *Network) ListAllPorts(flags uint32) ([]*NetworkPort, error)

ListAllPorts returns ports associated with this network. Each handle must be freed.

func (*Network) LookupPortByUUIDString

func (network *Network) LookupPortByUUIDString(uuid string) (*NetworkPort, error)

LookupPortByUUIDString returns a referenced network port.

func (*Network) SetAutostart

func (network *Network) SetAutostart(autostart bool) error

SetAutostart changes whether the network starts automatically.

func (*Network) Undefine

func (network *Network) Undefine() error

Undefine removes a persistent network definition.

type NetworkPort

type NetworkPort struct {
	// contains filtered or unexported fields
}

NetworkPort is a reference-counted virtual network port handle.

func (*NetworkPort) Delete

func (port *NetworkPort) Delete(flags uint32) error

Delete removes the network port.

func (*NetworkPort) Free

func (port *NetworkPort) Free() error

Free releases this wrapper's network-port reference.

func (*NetworkPort) GetUUIDString

func (port *NetworkPort) GetUUIDString() (string, error)

GetUUIDString returns the canonical port UUID.

func (*NetworkPort) GetXMLDesc

func (port *NetworkPort) GetXMLDesc(flags uint32) (string, error)

GetXMLDesc returns the port XML.

type NodeDevice

type NodeDevice struct {
	// contains filtered or unexported fields
}

NodeDevice is a reference-counted host node-device handle.

func (*NodeDevice) Destroy

func (device *NodeDevice) Destroy() error

Destroy destroys a transient node device.

func (*NodeDevice) Detach

func (device *NodeDevice) Detach(driverName string, flags uint32) error

Detach detaches the device from the host driver.

func (*NodeDevice) Free

func (device *NodeDevice) Free() error

Free releases this wrapper's node-device reference.

func (*NodeDevice) GetName

func (device *NodeDevice) GetName() (string, error)

GetName returns the node-device name.

func (*NodeDevice) GetXMLDesc

func (device *NodeDevice) GetXMLDesc(flags uint32) (string, error)

GetXMLDesc returns the node-device XML.

func (*NodeDevice) Reattach

func (device *NodeDevice) Reattach() error

Reattach reattaches the device to the host driver.

func (*NodeDevice) Reset

func (device *NodeDevice) Reset() error

Reset resets the node device.

type RawAPI

type RawAPI struct {
	// contains filtered or unexported fields
}

RawAPI exposes the generated libvirt C ABI with purego-compatible types.

Raw methods preserve libvirt's C return values and ownership rules; their error result only reports that the loaded library does not export the function. Callers remain responsible for checking C failure sentinels, releasing native allocations and references, and locking the goroutine to an OS thread when a failing call must be paired with VirGetLastError.

func NewRawAPI

func NewRawAPI() (*RawAPI, error)

NewRawAPI returns the process-wide generated low-level API.

func (*RawAPI) HasSymbol

func (raw *RawAPI) HasSymbol(name string) bool

HasSymbol reports whether this loaded libvirt exports a generated function.

func (*RawAPI) VirAdmClientClose

func (raw *RawAPI) VirAdmClientClose(client unsafe.Pointer, flags uint32) (int32, error)

VirAdmClientClose calls virAdmClientClose using its raw C ABI contract.

func (*RawAPI) VirAdmClientFree

func (raw *RawAPI) VirAdmClientFree(client unsafe.Pointer) (int32, error)

VirAdmClientFree calls virAdmClientFree using its raw C ABI contract.

func (*RawAPI) VirAdmClientGetID

func (raw *RawAPI) VirAdmClientGetID(client unsafe.Pointer) (uint64, error)

VirAdmClientGetID calls virAdmClientGetID using its raw C ABI contract.

func (*RawAPI) VirAdmClientGetInfo

func (raw *RawAPI) VirAdmClientGetInfo(client unsafe.Pointer, params *unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirAdmClientGetInfo calls virAdmClientGetInfo using its raw C ABI contract.

func (*RawAPI) VirAdmClientGetTimestamp

func (raw *RawAPI) VirAdmClientGetTimestamp(client unsafe.Pointer) (int64, error)

VirAdmClientGetTimestamp calls virAdmClientGetTimestamp using its raw C ABI contract.

func (*RawAPI) VirAdmClientGetTransport

func (raw *RawAPI) VirAdmClientGetTransport(client unsafe.Pointer) (int32, error)

VirAdmClientGetTransport calls virAdmClientGetTransport using its raw C ABI contract.

func (*RawAPI) VirAdmConnectClose

func (raw *RawAPI) VirAdmConnectClose(conn unsafe.Pointer) (int32, error)

VirAdmConnectClose calls virAdmConnectClose using its raw C ABI contract.

func (*RawAPI) VirAdmConnectDaemonShutdown

func (raw *RawAPI) VirAdmConnectDaemonShutdown(conn unsafe.Pointer, flags uint32) (int32, error)

VirAdmConnectDaemonShutdown calls virAdmConnectDaemonShutdown using its raw C ABI contract.

func (*RawAPI) VirAdmConnectGetLibVersion

func (raw *RawAPI) VirAdmConnectGetLibVersion(conn unsafe.Pointer, libVer *uint64) (int32, error)

VirAdmConnectGetLibVersion calls virAdmConnectGetLibVersion using its raw C ABI contract.

func (*RawAPI) VirAdmConnectGetLoggingFilters

func (raw *RawAPI) VirAdmConnectGetLoggingFilters(conn unsafe.Pointer, filters *unsafe.Pointer, flags uint32) (int32, error)

VirAdmConnectGetLoggingFilters calls virAdmConnectGetLoggingFilters using its raw C ABI contract.

func (*RawAPI) VirAdmConnectGetLoggingOutputs

func (raw *RawAPI) VirAdmConnectGetLoggingOutputs(conn unsafe.Pointer, outputs *unsafe.Pointer, flags uint32) (int32, error)

VirAdmConnectGetLoggingOutputs calls virAdmConnectGetLoggingOutputs using its raw C ABI contract.

func (*RawAPI) VirAdmConnectGetURI

func (raw *RawAPI) VirAdmConnectGetURI(conn unsafe.Pointer) (unsafe.Pointer, error)

VirAdmConnectGetURI calls virAdmConnectGetURI using its raw C ABI contract.

func (*RawAPI) VirAdmConnectIsAlive

func (raw *RawAPI) VirAdmConnectIsAlive(conn unsafe.Pointer) (int32, error)

VirAdmConnectIsAlive calls virAdmConnectIsAlive using its raw C ABI contract.

func (*RawAPI) VirAdmConnectListServers

func (raw *RawAPI) VirAdmConnectListServers(conn unsafe.Pointer, servers *unsafe.Pointer, flags uint32) (int32, error)

VirAdmConnectListServers calls virAdmConnectListServers using its raw C ABI contract.

func (*RawAPI) VirAdmConnectLookupServer

func (raw *RawAPI) VirAdmConnectLookupServer(conn unsafe.Pointer, name *byte, flags uint32) (unsafe.Pointer, error)

VirAdmConnectLookupServer calls virAdmConnectLookupServer using its raw C ABI contract.

func (*RawAPI) VirAdmConnectOpen

func (raw *RawAPI) VirAdmConnectOpen(name *byte, flags uint32) (unsafe.Pointer, error)

VirAdmConnectOpen calls virAdmConnectOpen using its raw C ABI contract.

func (*RawAPI) VirAdmConnectRef

func (raw *RawAPI) VirAdmConnectRef(conn unsafe.Pointer) (int32, error)

VirAdmConnectRef calls virAdmConnectRef using its raw C ABI contract.

func (*RawAPI) VirAdmConnectRegisterCloseCallback

func (raw *RawAPI) VirAdmConnectRegisterCloseCallback(conn unsafe.Pointer, cb uintptr, opaque unsafe.Pointer, freecb uintptr) (int32, error)

VirAdmConnectRegisterCloseCallback calls virAdmConnectRegisterCloseCallback using its raw C ABI contract.

func (*RawAPI) VirAdmConnectSetDaemonTimeout

func (raw *RawAPI) VirAdmConnectSetDaemonTimeout(conn unsafe.Pointer, timeout uint32, flags uint32) (int32, error)

VirAdmConnectSetDaemonTimeout calls virAdmConnectSetDaemonTimeout using its raw C ABI contract.

func (*RawAPI) VirAdmConnectSetLoggingFilters

func (raw *RawAPI) VirAdmConnectSetLoggingFilters(conn unsafe.Pointer, filters *byte, flags uint32) (int32, error)

VirAdmConnectSetLoggingFilters calls virAdmConnectSetLoggingFilters using its raw C ABI contract.

func (*RawAPI) VirAdmConnectSetLoggingOutputs

func (raw *RawAPI) VirAdmConnectSetLoggingOutputs(conn unsafe.Pointer, outputs *byte, flags uint32) (int32, error)

VirAdmConnectSetLoggingOutputs calls virAdmConnectSetLoggingOutputs using its raw C ABI contract.

func (*RawAPI) VirAdmConnectUnregisterCloseCallback

func (raw *RawAPI) VirAdmConnectUnregisterCloseCallback(conn unsafe.Pointer, cb uintptr) (int32, error)

VirAdmConnectUnregisterCloseCallback calls virAdmConnectUnregisterCloseCallback using its raw C ABI contract.

func (*RawAPI) VirAdmGetVersion

func (raw *RawAPI) VirAdmGetVersion(libVer *uint64) (int32, error)

VirAdmGetVersion calls virAdmGetVersion using its raw C ABI contract.

func (*RawAPI) VirAdmInitialize

func (raw *RawAPI) VirAdmInitialize() (int32, error)

VirAdmInitialize calls virAdmInitialize using its raw C ABI contract.

func (*RawAPI) VirAdmServerFree

func (raw *RawAPI) VirAdmServerFree(srv unsafe.Pointer) (int32, error)

VirAdmServerFree calls virAdmServerFree using its raw C ABI contract.

func (*RawAPI) VirAdmServerGetClientLimits

func (raw *RawAPI) VirAdmServerGetClientLimits(srv unsafe.Pointer, params *unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirAdmServerGetClientLimits calls virAdmServerGetClientLimits using its raw C ABI contract.

func (*RawAPI) VirAdmServerGetName

func (raw *RawAPI) VirAdmServerGetName(srv unsafe.Pointer) (unsafe.Pointer, error)

VirAdmServerGetName calls virAdmServerGetName using its raw C ABI contract.

func (*RawAPI) VirAdmServerGetThreadPoolParameters

func (raw *RawAPI) VirAdmServerGetThreadPoolParameters(srv unsafe.Pointer, params *unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirAdmServerGetThreadPoolParameters calls virAdmServerGetThreadPoolParameters using its raw C ABI contract.

func (*RawAPI) VirAdmServerListClients

func (raw *RawAPI) VirAdmServerListClients(srv unsafe.Pointer, clients *unsafe.Pointer, flags uint32) (int32, error)

VirAdmServerListClients calls virAdmServerListClients using its raw C ABI contract.

func (*RawAPI) VirAdmServerLookupClient

func (raw *RawAPI) VirAdmServerLookupClient(srv unsafe.Pointer, id uint64, flags uint32) (unsafe.Pointer, error)

VirAdmServerLookupClient calls virAdmServerLookupClient using its raw C ABI contract.

func (*RawAPI) VirAdmServerSetClientLimits

func (raw *RawAPI) VirAdmServerSetClientLimits(srv unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirAdmServerSetClientLimits calls virAdmServerSetClientLimits using its raw C ABI contract.

func (*RawAPI) VirAdmServerSetThreadPoolParameters

func (raw *RawAPI) VirAdmServerSetThreadPoolParameters(srv unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirAdmServerSetThreadPoolParameters calls virAdmServerSetThreadPoolParameters using its raw C ABI contract.

func (*RawAPI) VirAdmServerUpdateTlsFiles

func (raw *RawAPI) VirAdmServerUpdateTlsFiles(srv unsafe.Pointer, flags uint32) (int32, error)

VirAdmServerUpdateTlsFiles calls virAdmServerUpdateTlsFiles using its raw C ABI contract.

func (*RawAPI) VirConnCopyLastError

func (raw *RawAPI) VirConnCopyLastError(conn unsafe.Pointer, to unsafe.Pointer) (int32, error)

VirConnCopyLastError calls virConnCopyLastError using its raw C ABI contract.

func (*RawAPI) VirConnGetLastError

func (raw *RawAPI) VirConnGetLastError(conn unsafe.Pointer) (unsafe.Pointer, error)

VirConnGetLastError calls virConnGetLastError using its raw C ABI contract.

func (*RawAPI) VirConnResetLastError

func (raw *RawAPI) VirConnResetLastError(conn unsafe.Pointer) error

VirConnResetLastError calls virConnResetLastError using its raw C ABI contract.

func (*RawAPI) VirConnSetErrorFunc

func (raw *RawAPI) VirConnSetErrorFunc(conn unsafe.Pointer, userData unsafe.Pointer, handler uintptr) error

VirConnSetErrorFunc calls virConnSetErrorFunc using its raw C ABI contract.

func (*RawAPI) VirConnectBaselineCPU

func (raw *RawAPI) VirConnectBaselineCPU(conn unsafe.Pointer, xmlCPUs *unsafe.Pointer, ncpus uint32, flags uint32) (unsafe.Pointer, error)

VirConnectBaselineCPU calls virConnectBaselineCPU using its raw C ABI contract.

func (*RawAPI) VirConnectBaselineHypervisorCPU

func (raw *RawAPI) VirConnectBaselineHypervisorCPU(conn unsafe.Pointer, emulator *byte, arch *byte, machine *byte, virttype *byte, xmlCPUs *unsafe.Pointer, ncpus uint32, flags uint32) (unsafe.Pointer, error)

VirConnectBaselineHypervisorCPU calls virConnectBaselineHypervisorCPU using its raw C ABI contract.

func (*RawAPI) VirConnectClose

func (raw *RawAPI) VirConnectClose(conn unsafe.Pointer) (int32, error)

VirConnectClose calls virConnectClose using its raw C ABI contract.

func (*RawAPI) VirConnectCompareCPU

func (raw *RawAPI) VirConnectCompareCPU(conn unsafe.Pointer, xmlDesc *byte, flags uint32) (int32, error)

VirConnectCompareCPU calls virConnectCompareCPU using its raw C ABI contract.

func (*RawAPI) VirConnectCompareHypervisorCPU

func (raw *RawAPI) VirConnectCompareHypervisorCPU(conn unsafe.Pointer, emulator *byte, arch *byte, machine *byte, virttype *byte, xmlCPU *byte, flags uint32) (int32, error)

VirConnectCompareHypervisorCPU calls virConnectCompareHypervisorCPU using its raw C ABI contract.

func (*RawAPI) VirConnectDomainEventDeregister

func (raw *RawAPI) VirConnectDomainEventDeregister(conn unsafe.Pointer, cb uintptr) (int32, error)

VirConnectDomainEventDeregister calls virConnectDomainEventDeregister using its raw C ABI contract.

func (*RawAPI) VirConnectDomainEventDeregisterAny

func (raw *RawAPI) VirConnectDomainEventDeregisterAny(conn unsafe.Pointer, callbackID int32) (int32, error)

VirConnectDomainEventDeregisterAny calls virConnectDomainEventDeregisterAny using its raw C ABI contract.

func (*RawAPI) VirConnectDomainEventRegister

func (raw *RawAPI) VirConnectDomainEventRegister(conn unsafe.Pointer, cb uintptr, opaque unsafe.Pointer, freecb uintptr) (int32, error)

VirConnectDomainEventRegister calls virConnectDomainEventRegister using its raw C ABI contract.

func (*RawAPI) VirConnectDomainEventRegisterAny

func (raw *RawAPI) VirConnectDomainEventRegisterAny(conn unsafe.Pointer, dom unsafe.Pointer, eventID int32, cb uintptr, opaque unsafe.Pointer, freecb uintptr) (int32, error)

VirConnectDomainEventRegisterAny calls virConnectDomainEventRegisterAny using its raw C ABI contract.

func (*RawAPI) VirConnectDomainQemuMonitorEventDeregister

func (raw *RawAPI) VirConnectDomainQemuMonitorEventDeregister(conn unsafe.Pointer, callbackID int32) (int32, error)

VirConnectDomainQemuMonitorEventDeregister calls virConnectDomainQemuMonitorEventDeregister using its raw C ABI contract.

func (*RawAPI) VirConnectDomainQemuMonitorEventRegister

func (raw *RawAPI) VirConnectDomainQemuMonitorEventRegister(conn unsafe.Pointer, dom unsafe.Pointer, event *byte, cb uintptr, opaque unsafe.Pointer, freecb uintptr, flags uint32) (int32, error)

VirConnectDomainQemuMonitorEventRegister calls virConnectDomainQemuMonitorEventRegister using its raw C ABI contract.

func (*RawAPI) VirConnectDomainXMLFromNative

func (raw *RawAPI) VirConnectDomainXMLFromNative(conn unsafe.Pointer, nativeFormat *byte, nativeConfig *byte, flags uint32) (unsafe.Pointer, error)

VirConnectDomainXMLFromNative calls virConnectDomainXMLFromNative using its raw C ABI contract.

func (*RawAPI) VirConnectDomainXMLToNative

func (raw *RawAPI) VirConnectDomainXMLToNative(conn unsafe.Pointer, nativeFormat *byte, domainXml *byte, flags uint32) (unsafe.Pointer, error)

VirConnectDomainXMLToNative calls virConnectDomainXMLToNative using its raw C ABI contract.

func (*RawAPI) VirConnectFindStoragePoolSources

func (raw *RawAPI) VirConnectFindStoragePoolSources(conn unsafe.Pointer, type_ *byte, srcSpec *byte, flags uint32) (unsafe.Pointer, error)

VirConnectFindStoragePoolSources calls virConnectFindStoragePoolSources using its raw C ABI contract.

func (*RawAPI) VirConnectGetAllDomainStats

func (raw *RawAPI) VirConnectGetAllDomainStats(conn unsafe.Pointer, stats uint32, retStats *unsafe.Pointer, flags uint32) (int32, error)

VirConnectGetAllDomainStats calls virConnectGetAllDomainStats using its raw C ABI contract.

func (*RawAPI) VirConnectGetCPUModelNames

func (raw *RawAPI) VirConnectGetCPUModelNames(conn unsafe.Pointer, arch *byte, models *unsafe.Pointer, flags uint32) (int32, error)

VirConnectGetCPUModelNames calls virConnectGetCPUModelNames using its raw C ABI contract.

func (*RawAPI) VirConnectGetCapabilities

func (raw *RawAPI) VirConnectGetCapabilities(conn unsafe.Pointer) (unsafe.Pointer, error)

VirConnectGetCapabilities calls virConnectGetCapabilities using its raw C ABI contract.

func (*RawAPI) VirConnectGetDomainCapabilities

func (raw *RawAPI) VirConnectGetDomainCapabilities(conn unsafe.Pointer, emulatorbin *byte, arch *byte, machine *byte, virttype *byte, flags uint32) (unsafe.Pointer, error)

VirConnectGetDomainCapabilities calls virConnectGetDomainCapabilities using its raw C ABI contract.

func (*RawAPI) VirConnectGetHostname

func (raw *RawAPI) VirConnectGetHostname(conn unsafe.Pointer) (unsafe.Pointer, error)

VirConnectGetHostname calls virConnectGetHostname using its raw C ABI contract.

func (*RawAPI) VirConnectGetLibVersion

func (raw *RawAPI) VirConnectGetLibVersion(conn unsafe.Pointer, libVer *uintptr) (int32, error)

VirConnectGetLibVersion calls virConnectGetLibVersion using its raw C ABI contract.

func (*RawAPI) VirConnectGetMaxVcpus

func (raw *RawAPI) VirConnectGetMaxVcpus(conn unsafe.Pointer, type_ *byte) (int32, error)

VirConnectGetMaxVcpus calls virConnectGetMaxVcpus using its raw C ABI contract.

func (*RawAPI) VirConnectGetStoragePoolCapabilities

func (raw *RawAPI) VirConnectGetStoragePoolCapabilities(conn unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirConnectGetStoragePoolCapabilities calls virConnectGetStoragePoolCapabilities using its raw C ABI contract.

func (*RawAPI) VirConnectGetSysinfo

func (raw *RawAPI) VirConnectGetSysinfo(conn unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirConnectGetSysinfo calls virConnectGetSysinfo using its raw C ABI contract.

func (*RawAPI) VirConnectGetType

func (raw *RawAPI) VirConnectGetType(conn unsafe.Pointer) (unsafe.Pointer, error)

VirConnectGetType calls virConnectGetType using its raw C ABI contract.

func (*RawAPI) VirConnectGetURI

func (raw *RawAPI) VirConnectGetURI(conn unsafe.Pointer) (unsafe.Pointer, error)

VirConnectGetURI calls virConnectGetURI using its raw C ABI contract.

func (*RawAPI) VirConnectGetVersion

func (raw *RawAPI) VirConnectGetVersion(conn unsafe.Pointer, hvVer *uintptr) (int32, error)

VirConnectGetVersion calls virConnectGetVersion using its raw C ABI contract.

func (*RawAPI) VirConnectIsAlive

func (raw *RawAPI) VirConnectIsAlive(conn unsafe.Pointer) (int32, error)

VirConnectIsAlive calls virConnectIsAlive using its raw C ABI contract.

func (*RawAPI) VirConnectIsEncrypted

func (raw *RawAPI) VirConnectIsEncrypted(conn unsafe.Pointer) (int32, error)

VirConnectIsEncrypted calls virConnectIsEncrypted using its raw C ABI contract.

func (*RawAPI) VirConnectIsSecure

func (raw *RawAPI) VirConnectIsSecure(conn unsafe.Pointer) (int32, error)

VirConnectIsSecure calls virConnectIsSecure using its raw C ABI contract.

func (*RawAPI) VirConnectListAllDomains

func (raw *RawAPI) VirConnectListAllDomains(conn unsafe.Pointer, domains *unsafe.Pointer, flags uint32) (int32, error)

VirConnectListAllDomains calls virConnectListAllDomains using its raw C ABI contract.

func (*RawAPI) VirConnectListAllInterfaces

func (raw *RawAPI) VirConnectListAllInterfaces(conn unsafe.Pointer, ifaces *unsafe.Pointer, flags uint32) (int32, error)

VirConnectListAllInterfaces calls virConnectListAllInterfaces using its raw C ABI contract.

func (*RawAPI) VirConnectListAllNWFilterBindings

func (raw *RawAPI) VirConnectListAllNWFilterBindings(conn unsafe.Pointer, bindings *unsafe.Pointer, flags uint32) (int32, error)

VirConnectListAllNWFilterBindings calls virConnectListAllNWFilterBindings using its raw C ABI contract.

func (*RawAPI) VirConnectListAllNWFilters

func (raw *RawAPI) VirConnectListAllNWFilters(conn unsafe.Pointer, filters *unsafe.Pointer, flags uint32) (int32, error)

VirConnectListAllNWFilters calls virConnectListAllNWFilters using its raw C ABI contract.

func (*RawAPI) VirConnectListAllNetworks

func (raw *RawAPI) VirConnectListAllNetworks(conn unsafe.Pointer, nets *unsafe.Pointer, flags uint32) (int32, error)

VirConnectListAllNetworks calls virConnectListAllNetworks using its raw C ABI contract.

func (*RawAPI) VirConnectListAllNodeDevices

func (raw *RawAPI) VirConnectListAllNodeDevices(conn unsafe.Pointer, devices *unsafe.Pointer, flags uint32) (int32, error)

VirConnectListAllNodeDevices calls virConnectListAllNodeDevices using its raw C ABI contract.

func (*RawAPI) VirConnectListAllSecrets

func (raw *RawAPI) VirConnectListAllSecrets(conn unsafe.Pointer, secrets *unsafe.Pointer, flags uint32) (int32, error)

VirConnectListAllSecrets calls virConnectListAllSecrets using its raw C ABI contract.

func (*RawAPI) VirConnectListAllStoragePools

func (raw *RawAPI) VirConnectListAllStoragePools(conn unsafe.Pointer, pools *unsafe.Pointer, flags uint32) (int32, error)

VirConnectListAllStoragePools calls virConnectListAllStoragePools using its raw C ABI contract.

func (*RawAPI) VirConnectListDefinedDomains

func (raw *RawAPI) VirConnectListDefinedDomains(conn unsafe.Pointer, names *unsafe.Pointer, maxnames int32) (int32, error)

VirConnectListDefinedDomains calls virConnectListDefinedDomains using its raw C ABI contract.

func (*RawAPI) VirConnectListDefinedInterfaces

func (raw *RawAPI) VirConnectListDefinedInterfaces(conn unsafe.Pointer, names *unsafe.Pointer, maxnames int32) (int32, error)

VirConnectListDefinedInterfaces calls virConnectListDefinedInterfaces using its raw C ABI contract.

func (*RawAPI) VirConnectListDefinedNetworks

func (raw *RawAPI) VirConnectListDefinedNetworks(conn unsafe.Pointer, names *unsafe.Pointer, maxnames int32) (int32, error)

VirConnectListDefinedNetworks calls virConnectListDefinedNetworks using its raw C ABI contract.

func (*RawAPI) VirConnectListDefinedStoragePools

func (raw *RawAPI) VirConnectListDefinedStoragePools(conn unsafe.Pointer, names *unsafe.Pointer, maxnames int32) (int32, error)

VirConnectListDefinedStoragePools calls virConnectListDefinedStoragePools using its raw C ABI contract.

func (*RawAPI) VirConnectListDomains

func (raw *RawAPI) VirConnectListDomains(conn unsafe.Pointer, ids *int32, maxids int32) (int32, error)

VirConnectListDomains calls virConnectListDomains using its raw C ABI contract.

func (*RawAPI) VirConnectListInterfaces

func (raw *RawAPI) VirConnectListInterfaces(conn unsafe.Pointer, names *unsafe.Pointer, maxnames int32) (int32, error)

VirConnectListInterfaces calls virConnectListInterfaces using its raw C ABI contract.

func (*RawAPI) VirConnectListNWFilters

func (raw *RawAPI) VirConnectListNWFilters(conn unsafe.Pointer, names *unsafe.Pointer, maxnames int32) (int32, error)

VirConnectListNWFilters calls virConnectListNWFilters using its raw C ABI contract.

func (*RawAPI) VirConnectListNetworks

func (raw *RawAPI) VirConnectListNetworks(conn unsafe.Pointer, names *unsafe.Pointer, maxnames int32) (int32, error)

VirConnectListNetworks calls virConnectListNetworks using its raw C ABI contract.

func (*RawAPI) VirConnectListSecrets

func (raw *RawAPI) VirConnectListSecrets(conn unsafe.Pointer, uuids *unsafe.Pointer, maxuuids int32) (int32, error)

VirConnectListSecrets calls virConnectListSecrets using its raw C ABI contract.

func (*RawAPI) VirConnectListStoragePools

func (raw *RawAPI) VirConnectListStoragePools(conn unsafe.Pointer, names *unsafe.Pointer, maxnames int32) (int32, error)

VirConnectListStoragePools calls virConnectListStoragePools using its raw C ABI contract.

func (*RawAPI) VirConnectNetworkEventDeregisterAny

func (raw *RawAPI) VirConnectNetworkEventDeregisterAny(conn unsafe.Pointer, callbackID int32) (int32, error)

VirConnectNetworkEventDeregisterAny calls virConnectNetworkEventDeregisterAny using its raw C ABI contract.

func (*RawAPI) VirConnectNetworkEventRegisterAny

func (raw *RawAPI) VirConnectNetworkEventRegisterAny(conn unsafe.Pointer, net unsafe.Pointer, eventID int32, cb uintptr, opaque unsafe.Pointer, freecb uintptr) (int32, error)

VirConnectNetworkEventRegisterAny calls virConnectNetworkEventRegisterAny using its raw C ABI contract.

func (*RawAPI) VirConnectNodeDeviceEventDeregisterAny

func (raw *RawAPI) VirConnectNodeDeviceEventDeregisterAny(conn unsafe.Pointer, callbackID int32) (int32, error)

VirConnectNodeDeviceEventDeregisterAny calls virConnectNodeDeviceEventDeregisterAny using its raw C ABI contract.

func (*RawAPI) VirConnectNodeDeviceEventRegisterAny

func (raw *RawAPI) VirConnectNodeDeviceEventRegisterAny(conn unsafe.Pointer, dev unsafe.Pointer, eventID int32, cb uintptr, opaque unsafe.Pointer, freecb uintptr) (int32, error)

VirConnectNodeDeviceEventRegisterAny calls virConnectNodeDeviceEventRegisterAny using its raw C ABI contract.

func (*RawAPI) VirConnectNumOfDefinedDomains

func (raw *RawAPI) VirConnectNumOfDefinedDomains(conn unsafe.Pointer) (int32, error)

VirConnectNumOfDefinedDomains calls virConnectNumOfDefinedDomains using its raw C ABI contract.

func (*RawAPI) VirConnectNumOfDefinedInterfaces

func (raw *RawAPI) VirConnectNumOfDefinedInterfaces(conn unsafe.Pointer) (int32, error)

VirConnectNumOfDefinedInterfaces calls virConnectNumOfDefinedInterfaces using its raw C ABI contract.

func (*RawAPI) VirConnectNumOfDefinedNetworks

func (raw *RawAPI) VirConnectNumOfDefinedNetworks(conn unsafe.Pointer) (int32, error)

VirConnectNumOfDefinedNetworks calls virConnectNumOfDefinedNetworks using its raw C ABI contract.

func (*RawAPI) VirConnectNumOfDefinedStoragePools

func (raw *RawAPI) VirConnectNumOfDefinedStoragePools(conn unsafe.Pointer) (int32, error)

VirConnectNumOfDefinedStoragePools calls virConnectNumOfDefinedStoragePools using its raw C ABI contract.

func (*RawAPI) VirConnectNumOfDomains

func (raw *RawAPI) VirConnectNumOfDomains(conn unsafe.Pointer) (int32, error)

VirConnectNumOfDomains calls virConnectNumOfDomains using its raw C ABI contract.

func (*RawAPI) VirConnectNumOfInterfaces

func (raw *RawAPI) VirConnectNumOfInterfaces(conn unsafe.Pointer) (int32, error)

VirConnectNumOfInterfaces calls virConnectNumOfInterfaces using its raw C ABI contract.

func (*RawAPI) VirConnectNumOfNWFilters

func (raw *RawAPI) VirConnectNumOfNWFilters(conn unsafe.Pointer) (int32, error)

VirConnectNumOfNWFilters calls virConnectNumOfNWFilters using its raw C ABI contract.

func (*RawAPI) VirConnectNumOfNetworks

func (raw *RawAPI) VirConnectNumOfNetworks(conn unsafe.Pointer) (int32, error)

VirConnectNumOfNetworks calls virConnectNumOfNetworks using its raw C ABI contract.

func (*RawAPI) VirConnectNumOfSecrets

func (raw *RawAPI) VirConnectNumOfSecrets(conn unsafe.Pointer) (int32, error)

VirConnectNumOfSecrets calls virConnectNumOfSecrets using its raw C ABI contract.

func (*RawAPI) VirConnectNumOfStoragePools

func (raw *RawAPI) VirConnectNumOfStoragePools(conn unsafe.Pointer) (int32, error)

VirConnectNumOfStoragePools calls virConnectNumOfStoragePools using its raw C ABI contract.

func (*RawAPI) VirConnectOpen

func (raw *RawAPI) VirConnectOpen(name *byte) (unsafe.Pointer, error)

VirConnectOpen calls virConnectOpen using its raw C ABI contract.

func (*RawAPI) VirConnectOpenAuth

func (raw *RawAPI) VirConnectOpenAuth(name *byte, auth unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirConnectOpenAuth calls virConnectOpenAuth using its raw C ABI contract.

func (*RawAPI) VirConnectOpenReadOnly

func (raw *RawAPI) VirConnectOpenReadOnly(name *byte) (unsafe.Pointer, error)

VirConnectOpenReadOnly calls virConnectOpenReadOnly using its raw C ABI contract.

func (*RawAPI) VirConnectRef

func (raw *RawAPI) VirConnectRef(conn unsafe.Pointer) (int32, error)

VirConnectRef calls virConnectRef using its raw C ABI contract.

func (*RawAPI) VirConnectRegisterCloseCallback

func (raw *RawAPI) VirConnectRegisterCloseCallback(conn unsafe.Pointer, cb uintptr, opaque unsafe.Pointer, freecb uintptr) (int32, error)

VirConnectRegisterCloseCallback calls virConnectRegisterCloseCallback using its raw C ABI contract.

func (*RawAPI) VirConnectSecretEventDeregisterAny

func (raw *RawAPI) VirConnectSecretEventDeregisterAny(conn unsafe.Pointer, callbackID int32) (int32, error)

VirConnectSecretEventDeregisterAny calls virConnectSecretEventDeregisterAny using its raw C ABI contract.

func (*RawAPI) VirConnectSecretEventRegisterAny

func (raw *RawAPI) VirConnectSecretEventRegisterAny(conn unsafe.Pointer, secret unsafe.Pointer, eventID int32, cb uintptr, opaque unsafe.Pointer, freecb uintptr) (int32, error)

VirConnectSecretEventRegisterAny calls virConnectSecretEventRegisterAny using its raw C ABI contract.

func (*RawAPI) VirConnectSetIdentity

func (raw *RawAPI) VirConnectSetIdentity(conn unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirConnectSetIdentity calls virConnectSetIdentity using its raw C ABI contract.

func (*RawAPI) VirConnectSetKeepAlive

func (raw *RawAPI) VirConnectSetKeepAlive(conn unsafe.Pointer, interval int32, count uint32) (int32, error)

VirConnectSetKeepAlive calls virConnectSetKeepAlive using its raw C ABI contract.

func (*RawAPI) VirConnectStoragePoolEventDeregisterAny

func (raw *RawAPI) VirConnectStoragePoolEventDeregisterAny(conn unsafe.Pointer, callbackID int32) (int32, error)

VirConnectStoragePoolEventDeregisterAny calls virConnectStoragePoolEventDeregisterAny using its raw C ABI contract.

func (*RawAPI) VirConnectStoragePoolEventRegisterAny

func (raw *RawAPI) VirConnectStoragePoolEventRegisterAny(conn unsafe.Pointer, pool unsafe.Pointer, eventID int32, cb uintptr, opaque unsafe.Pointer, freecb uintptr) (int32, error)

VirConnectStoragePoolEventRegisterAny calls virConnectStoragePoolEventRegisterAny using its raw C ABI contract.

func (*RawAPI) VirConnectUnregisterCloseCallback

func (raw *RawAPI) VirConnectUnregisterCloseCallback(conn unsafe.Pointer, cb uintptr) (int32, error)

VirConnectUnregisterCloseCallback calls virConnectUnregisterCloseCallback using its raw C ABI contract.

func (*RawAPI) VirCopyLastError

func (raw *RawAPI) VirCopyLastError(to unsafe.Pointer) (int32, error)

VirCopyLastError calls virCopyLastError using its raw C ABI contract.

func (*RawAPI) VirDefaultErrorFunc

func (raw *RawAPI) VirDefaultErrorFunc(err unsafe.Pointer) error

VirDefaultErrorFunc calls virDefaultErrorFunc using its raw C ABI contract.

func (*RawAPI) VirDomainAbortJob

func (raw *RawAPI) VirDomainAbortJob(domain unsafe.Pointer) (int32, error)

VirDomainAbortJob calls virDomainAbortJob using its raw C ABI contract.

func (*RawAPI) VirDomainAbortJobFlags

func (raw *RawAPI) VirDomainAbortJobFlags(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainAbortJobFlags calls virDomainAbortJobFlags using its raw C ABI contract.

func (*RawAPI) VirDomainAddIOThread

func (raw *RawAPI) VirDomainAddIOThread(domain unsafe.Pointer, iothread_id uint32, flags uint32) (int32, error)

VirDomainAddIOThread calls virDomainAddIOThread using its raw C ABI contract.

func (*RawAPI) VirDomainAgentSetResponseTimeout

func (raw *RawAPI) VirDomainAgentSetResponseTimeout(domain unsafe.Pointer, timeout int32, flags uint32) (int32, error)

VirDomainAgentSetResponseTimeout calls virDomainAgentSetResponseTimeout using its raw C ABI contract.

func (*RawAPI) VirDomainAnnounceInterface

func (raw *RawAPI) VirDomainAnnounceInterface(dom unsafe.Pointer, device *byte, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainAnnounceInterface calls virDomainAnnounceInterface using its raw C ABI contract.

func (*RawAPI) VirDomainAttachDevice

func (raw *RawAPI) VirDomainAttachDevice(domain unsafe.Pointer, xml *byte) (int32, error)

VirDomainAttachDevice calls virDomainAttachDevice using its raw C ABI contract.

func (*RawAPI) VirDomainAttachDeviceFlags

func (raw *RawAPI) VirDomainAttachDeviceFlags(domain unsafe.Pointer, xml *byte, flags uint32) (int32, error)

VirDomainAttachDeviceFlags calls virDomainAttachDeviceFlags using its raw C ABI contract.

func (*RawAPI) VirDomainAuthorizedSSHKeysGet

func (raw *RawAPI) VirDomainAuthorizedSSHKeysGet(domain unsafe.Pointer, user *byte, keys *unsafe.Pointer, flags uint32) (int32, error)

VirDomainAuthorizedSSHKeysGet calls virDomainAuthorizedSSHKeysGet using its raw C ABI contract.

func (*RawAPI) VirDomainAuthorizedSSHKeysSet

func (raw *RawAPI) VirDomainAuthorizedSSHKeysSet(domain unsafe.Pointer, user *byte, keys *unsafe.Pointer, nkeys uint32, flags uint32) (int32, error)

VirDomainAuthorizedSSHKeysSet calls virDomainAuthorizedSSHKeysSet using its raw C ABI contract.

func (*RawAPI) VirDomainBackupBegin

func (raw *RawAPI) VirDomainBackupBegin(domain unsafe.Pointer, backupXML *byte, checkpointXML *byte, flags uint32) (int32, error)

VirDomainBackupBegin calls virDomainBackupBegin using its raw C ABI contract.

func (*RawAPI) VirDomainBackupGetXMLDesc

func (raw *RawAPI) VirDomainBackupGetXMLDesc(domain unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirDomainBackupGetXMLDesc calls virDomainBackupGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirDomainBlockCommit

func (raw *RawAPI) VirDomainBlockCommit(dom unsafe.Pointer, disk *byte, base *byte, top *byte, bandwidth uintptr, flags uint32) (int32, error)

VirDomainBlockCommit calls virDomainBlockCommit using its raw C ABI contract.

func (*RawAPI) VirDomainBlockCopy

func (raw *RawAPI) VirDomainBlockCopy(dom unsafe.Pointer, disk *byte, destxml *byte, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainBlockCopy calls virDomainBlockCopy using its raw C ABI contract.

func (*RawAPI) VirDomainBlockJobAbort

func (raw *RawAPI) VirDomainBlockJobAbort(dom unsafe.Pointer, disk *byte, flags uint32) (int32, error)

VirDomainBlockJobAbort calls virDomainBlockJobAbort using its raw C ABI contract.

func (*RawAPI) VirDomainBlockJobSetSpeed

func (raw *RawAPI) VirDomainBlockJobSetSpeed(dom unsafe.Pointer, disk *byte, bandwidth uintptr, flags uint32) (int32, error)

VirDomainBlockJobSetSpeed calls virDomainBlockJobSetSpeed using its raw C ABI contract.

func (*RawAPI) VirDomainBlockPeek

func (raw *RawAPI) VirDomainBlockPeek(dom unsafe.Pointer, disk *byte, offset uint64, size uintptr, buffer unsafe.Pointer, flags uint32) (int32, error)

VirDomainBlockPeek calls virDomainBlockPeek using its raw C ABI contract.

func (*RawAPI) VirDomainBlockPull

func (raw *RawAPI) VirDomainBlockPull(dom unsafe.Pointer, disk *byte, bandwidth uintptr, flags uint32) (int32, error)

VirDomainBlockPull calls virDomainBlockPull using its raw C ABI contract.

func (*RawAPI) VirDomainBlockRebase

func (raw *RawAPI) VirDomainBlockRebase(dom unsafe.Pointer, disk *byte, base *byte, bandwidth uintptr, flags uint32) (int32, error)

VirDomainBlockRebase calls virDomainBlockRebase using its raw C ABI contract.

func (*RawAPI) VirDomainBlockResize

func (raw *RawAPI) VirDomainBlockResize(dom unsafe.Pointer, disk *byte, size uint64, flags uint32) (int32, error)

VirDomainBlockResize calls virDomainBlockResize using its raw C ABI contract.

func (*RawAPI) VirDomainBlockStats

func (raw *RawAPI) VirDomainBlockStats(dom unsafe.Pointer, disk *byte, stats unsafe.Pointer, size uintptr) (int32, error)

VirDomainBlockStats calls virDomainBlockStats using its raw C ABI contract.

func (*RawAPI) VirDomainBlockStatsFlags

func (raw *RawAPI) VirDomainBlockStatsFlags(dom unsafe.Pointer, disk *byte, params unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirDomainBlockStatsFlags calls virDomainBlockStatsFlags using its raw C ABI contract.

func (*RawAPI) VirDomainCheckpointCreateXML

func (raw *RawAPI) VirDomainCheckpointCreateXML(domain unsafe.Pointer, xmlDesc *byte, flags uint32) (unsafe.Pointer, error)

VirDomainCheckpointCreateXML calls virDomainCheckpointCreateXML using its raw C ABI contract.

func (*RawAPI) VirDomainCheckpointDelete

func (raw *RawAPI) VirDomainCheckpointDelete(checkpoint unsafe.Pointer, flags uint32) (int32, error)

VirDomainCheckpointDelete calls virDomainCheckpointDelete using its raw C ABI contract.

func (*RawAPI) VirDomainCheckpointFree

func (raw *RawAPI) VirDomainCheckpointFree(checkpoint unsafe.Pointer) (int32, error)

VirDomainCheckpointFree calls virDomainCheckpointFree using its raw C ABI contract.

func (*RawAPI) VirDomainCheckpointGetConnect

func (raw *RawAPI) VirDomainCheckpointGetConnect(checkpoint unsafe.Pointer) (unsafe.Pointer, error)

VirDomainCheckpointGetConnect calls virDomainCheckpointGetConnect using its raw C ABI contract.

func (*RawAPI) VirDomainCheckpointGetDomain

func (raw *RawAPI) VirDomainCheckpointGetDomain(checkpoint unsafe.Pointer) (unsafe.Pointer, error)

VirDomainCheckpointGetDomain calls virDomainCheckpointGetDomain using its raw C ABI contract.

func (*RawAPI) VirDomainCheckpointGetName

func (raw *RawAPI) VirDomainCheckpointGetName(checkpoint unsafe.Pointer) (unsafe.Pointer, error)

VirDomainCheckpointGetName calls virDomainCheckpointGetName using its raw C ABI contract.

func (*RawAPI) VirDomainCheckpointGetParent

func (raw *RawAPI) VirDomainCheckpointGetParent(checkpoint unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirDomainCheckpointGetParent calls virDomainCheckpointGetParent using its raw C ABI contract.

func (*RawAPI) VirDomainCheckpointGetXMLDesc

func (raw *RawAPI) VirDomainCheckpointGetXMLDesc(checkpoint unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirDomainCheckpointGetXMLDesc calls virDomainCheckpointGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirDomainCheckpointListAllChildren

func (raw *RawAPI) VirDomainCheckpointListAllChildren(checkpoint unsafe.Pointer, children *unsafe.Pointer, flags uint32) (int32, error)

VirDomainCheckpointListAllChildren calls virDomainCheckpointListAllChildren using its raw C ABI contract.

func (*RawAPI) VirDomainCheckpointLookupByName

func (raw *RawAPI) VirDomainCheckpointLookupByName(domain unsafe.Pointer, name *byte, flags uint32) (unsafe.Pointer, error)

VirDomainCheckpointLookupByName calls virDomainCheckpointLookupByName using its raw C ABI contract.

func (*RawAPI) VirDomainCheckpointRef

func (raw *RawAPI) VirDomainCheckpointRef(checkpoint unsafe.Pointer) (int32, error)

VirDomainCheckpointRef calls virDomainCheckpointRef using its raw C ABI contract.

func (*RawAPI) VirDomainCoreDump

func (raw *RawAPI) VirDomainCoreDump(domain unsafe.Pointer, to *byte, flags uint32) (int32, error)

VirDomainCoreDump calls virDomainCoreDump using its raw C ABI contract.

func (*RawAPI) VirDomainCoreDumpWithFormat

func (raw *RawAPI) VirDomainCoreDumpWithFormat(domain unsafe.Pointer, to *byte, dumpformat uint32, flags uint32) (int32, error)

VirDomainCoreDumpWithFormat calls virDomainCoreDumpWithFormat using its raw C ABI contract.

func (*RawAPI) VirDomainCreate

func (raw *RawAPI) VirDomainCreate(domain unsafe.Pointer) (int32, error)

VirDomainCreate calls virDomainCreate using its raw C ABI contract.

func (*RawAPI) VirDomainCreateLinux

func (raw *RawAPI) VirDomainCreateLinux(conn unsafe.Pointer, xmlDesc *byte, flags uint32) (unsafe.Pointer, error)

VirDomainCreateLinux calls virDomainCreateLinux using its raw C ABI contract.

func (*RawAPI) VirDomainCreateWithFiles

func (raw *RawAPI) VirDomainCreateWithFiles(domain unsafe.Pointer, nfiles uint32, files *int32, flags uint32) (int32, error)

VirDomainCreateWithFiles calls virDomainCreateWithFiles using its raw C ABI contract.

func (*RawAPI) VirDomainCreateWithFlags

func (raw *RawAPI) VirDomainCreateWithFlags(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainCreateWithFlags calls virDomainCreateWithFlags using its raw C ABI contract.

func (*RawAPI) VirDomainCreateXML

func (raw *RawAPI) VirDomainCreateXML(conn unsafe.Pointer, xmlDesc *byte, flags uint32) (unsafe.Pointer, error)

VirDomainCreateXML calls virDomainCreateXML using its raw C ABI contract.

func (*RawAPI) VirDomainCreateXMLWithFiles

func (raw *RawAPI) VirDomainCreateXMLWithFiles(conn unsafe.Pointer, xmlDesc *byte, nfiles uint32, files *int32, flags uint32) (unsafe.Pointer, error)

VirDomainCreateXMLWithFiles calls virDomainCreateXMLWithFiles using its raw C ABI contract.

func (*RawAPI) VirDomainDefineXML

func (raw *RawAPI) VirDomainDefineXML(conn unsafe.Pointer, xml *byte) (unsafe.Pointer, error)

VirDomainDefineXML calls virDomainDefineXML using its raw C ABI contract.

func (*RawAPI) VirDomainDefineXMLFlags

func (raw *RawAPI) VirDomainDefineXMLFlags(conn unsafe.Pointer, xml *byte, flags uint32) (unsafe.Pointer, error)

VirDomainDefineXMLFlags calls virDomainDefineXMLFlags using its raw C ABI contract.

func (*RawAPI) VirDomainDelIOThread

func (raw *RawAPI) VirDomainDelIOThread(domain unsafe.Pointer, iothread_id uint32, flags uint32) (int32, error)

VirDomainDelIOThread calls virDomainDelIOThread using its raw C ABI contract.

func (*RawAPI) VirDomainDelThrottleGroup

func (raw *RawAPI) VirDomainDelThrottleGroup(dom unsafe.Pointer, group *byte, flags uint32) (int32, error)

VirDomainDelThrottleGroup calls virDomainDelThrottleGroup using its raw C ABI contract.

func (*RawAPI) VirDomainDestroy

func (raw *RawAPI) VirDomainDestroy(domain unsafe.Pointer) (int32, error)

VirDomainDestroy calls virDomainDestroy using its raw C ABI contract.

func (*RawAPI) VirDomainDestroyFlags

func (raw *RawAPI) VirDomainDestroyFlags(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainDestroyFlags calls virDomainDestroyFlags using its raw C ABI contract.

func (*RawAPI) VirDomainDetachDevice

func (raw *RawAPI) VirDomainDetachDevice(domain unsafe.Pointer, xml *byte) (int32, error)

VirDomainDetachDevice calls virDomainDetachDevice using its raw C ABI contract.

func (*RawAPI) VirDomainDetachDeviceAlias

func (raw *RawAPI) VirDomainDetachDeviceAlias(domain unsafe.Pointer, alias *byte, flags uint32) (int32, error)

VirDomainDetachDeviceAlias calls virDomainDetachDeviceAlias using its raw C ABI contract.

func (*RawAPI) VirDomainDetachDeviceFlags

func (raw *RawAPI) VirDomainDetachDeviceFlags(domain unsafe.Pointer, xml *byte, flags uint32) (int32, error)

VirDomainDetachDeviceFlags calls virDomainDetachDeviceFlags using its raw C ABI contract.

func (*RawAPI) VirDomainFDAssociate

func (raw *RawAPI) VirDomainFDAssociate(domain unsafe.Pointer, name *byte, nfds uint32, fds *int32, flags uint32) (int32, error)

VirDomainFDAssociate calls virDomainFDAssociate using its raw C ABI contract.

func (*RawAPI) VirDomainFSFreeze

func (raw *RawAPI) VirDomainFSFreeze(dom unsafe.Pointer, mountpoints *unsafe.Pointer, nmountpoints uint32, flags uint32) (int32, error)

VirDomainFSFreeze calls virDomainFSFreeze using its raw C ABI contract.

func (*RawAPI) VirDomainFSInfoFree

func (raw *RawAPI) VirDomainFSInfoFree(info unsafe.Pointer) error

VirDomainFSInfoFree calls virDomainFSInfoFree using its raw C ABI contract.

func (*RawAPI) VirDomainFSThaw

func (raw *RawAPI) VirDomainFSThaw(dom unsafe.Pointer, mountpoints *unsafe.Pointer, nmountpoints uint32, flags uint32) (int32, error)

VirDomainFSThaw calls virDomainFSThaw using its raw C ABI contract.

func (*RawAPI) VirDomainFSTrim

func (raw *RawAPI) VirDomainFSTrim(dom unsafe.Pointer, mountPoint *byte, minimum uint64, flags uint32) (int32, error)

VirDomainFSTrim calls virDomainFSTrim using its raw C ABI contract.

func (*RawAPI) VirDomainFree

func (raw *RawAPI) VirDomainFree(domain unsafe.Pointer) (int32, error)

VirDomainFree calls virDomainFree using its raw C ABI contract.

func (*RawAPI) VirDomainGetAutostart

func (raw *RawAPI) VirDomainGetAutostart(domain unsafe.Pointer, autostart *int32) (int32, error)

VirDomainGetAutostart calls virDomainGetAutostart using its raw C ABI contract.

func (*RawAPI) VirDomainGetAutostartOnce

func (raw *RawAPI) VirDomainGetAutostartOnce(domain unsafe.Pointer, autostart *int32) (int32, error)

VirDomainGetAutostartOnce calls virDomainGetAutostartOnce using its raw C ABI contract.

func (*RawAPI) VirDomainGetBlkioParameters

func (raw *RawAPI) VirDomainGetBlkioParameters(domain unsafe.Pointer, params unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirDomainGetBlkioParameters calls virDomainGetBlkioParameters using its raw C ABI contract.

func (*RawAPI) VirDomainGetBlockInfo

func (raw *RawAPI) VirDomainGetBlockInfo(domain unsafe.Pointer, disk *byte, info unsafe.Pointer, flags uint32) (int32, error)

VirDomainGetBlockInfo calls virDomainGetBlockInfo using its raw C ABI contract.

func (*RawAPI) VirDomainGetBlockIoTune

func (raw *RawAPI) VirDomainGetBlockIoTune(dom unsafe.Pointer, disk *byte, params unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirDomainGetBlockIoTune calls virDomainGetBlockIoTune using its raw C ABI contract.

func (*RawAPI) VirDomainGetBlockJobInfo

func (raw *RawAPI) VirDomainGetBlockJobInfo(dom unsafe.Pointer, disk *byte, info unsafe.Pointer, flags uint32) (int32, error)

VirDomainGetBlockJobInfo calls virDomainGetBlockJobInfo using its raw C ABI contract.

func (*RawAPI) VirDomainGetCPUStats

func (raw *RawAPI) VirDomainGetCPUStats(domain unsafe.Pointer, params unsafe.Pointer, nparams uint32, start_cpu int32, ncpus uint32, flags uint32) (int32, error)

VirDomainGetCPUStats calls virDomainGetCPUStats using its raw C ABI contract.

func (*RawAPI) VirDomainGetConnect

func (raw *RawAPI) VirDomainGetConnect(dom unsafe.Pointer) (unsafe.Pointer, error)

VirDomainGetConnect calls virDomainGetConnect using its raw C ABI contract.

func (*RawAPI) VirDomainGetControlInfo

func (raw *RawAPI) VirDomainGetControlInfo(domain unsafe.Pointer, info unsafe.Pointer, flags uint32) (int32, error)

VirDomainGetControlInfo calls virDomainGetControlInfo using its raw C ABI contract.

func (*RawAPI) VirDomainGetDiskErrors

func (raw *RawAPI) VirDomainGetDiskErrors(dom unsafe.Pointer, errors unsafe.Pointer, maxerrors uint32, flags uint32) (int32, error)

VirDomainGetDiskErrors calls virDomainGetDiskErrors using its raw C ABI contract.

func (*RawAPI) VirDomainGetEmulatorPinInfo

func (raw *RawAPI) VirDomainGetEmulatorPinInfo(domain unsafe.Pointer, cpumap *byte, maplen int32, flags uint32) (int32, error)

VirDomainGetEmulatorPinInfo calls virDomainGetEmulatorPinInfo using its raw C ABI contract.

func (*RawAPI) VirDomainGetFSInfo

func (raw *RawAPI) VirDomainGetFSInfo(dom unsafe.Pointer, info *unsafe.Pointer, flags uint32) (int32, error)

VirDomainGetFSInfo calls virDomainGetFSInfo using its raw C ABI contract.

func (*RawAPI) VirDomainGetGuestInfo

func (raw *RawAPI) VirDomainGetGuestInfo(domain unsafe.Pointer, types uint32, params *unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirDomainGetGuestInfo calls virDomainGetGuestInfo using its raw C ABI contract.

func (*RawAPI) VirDomainGetGuestVcpus

func (raw *RawAPI) VirDomainGetGuestVcpus(domain unsafe.Pointer, params *unsafe.Pointer, nparams *uint32, flags uint32) (int32, error)

VirDomainGetGuestVcpus calls virDomainGetGuestVcpus using its raw C ABI contract.

func (*RawAPI) VirDomainGetHostname

func (raw *RawAPI) VirDomainGetHostname(domain unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirDomainGetHostname calls virDomainGetHostname using its raw C ABI contract.

func (*RawAPI) VirDomainGetID

func (raw *RawAPI) VirDomainGetID(domain unsafe.Pointer) (uint32, error)

VirDomainGetID calls virDomainGetID using its raw C ABI contract.

func (*RawAPI) VirDomainGetIOThreadInfo

func (raw *RawAPI) VirDomainGetIOThreadInfo(dom unsafe.Pointer, info *unsafe.Pointer, flags uint32) (int32, error)

VirDomainGetIOThreadInfo calls virDomainGetIOThreadInfo using its raw C ABI contract.

func (*RawAPI) VirDomainGetInfo

func (raw *RawAPI) VirDomainGetInfo(domain unsafe.Pointer, info unsafe.Pointer) (int32, error)

VirDomainGetInfo calls virDomainGetInfo using its raw C ABI contract.

func (*RawAPI) VirDomainGetInterfaceParameters

func (raw *RawAPI) VirDomainGetInterfaceParameters(domain unsafe.Pointer, device *byte, params unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirDomainGetInterfaceParameters calls virDomainGetInterfaceParameters using its raw C ABI contract.

func (*RawAPI) VirDomainGetJobInfo

func (raw *RawAPI) VirDomainGetJobInfo(domain unsafe.Pointer, info unsafe.Pointer) (int32, error)

VirDomainGetJobInfo calls virDomainGetJobInfo using its raw C ABI contract.

func (*RawAPI) VirDomainGetJobStats

func (raw *RawAPI) VirDomainGetJobStats(domain unsafe.Pointer, type_ *int32, params *unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirDomainGetJobStats calls virDomainGetJobStats using its raw C ABI contract.

func (*RawAPI) VirDomainGetLaunchSecurityInfo

func (raw *RawAPI) VirDomainGetLaunchSecurityInfo(domain unsafe.Pointer, params *unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirDomainGetLaunchSecurityInfo calls virDomainGetLaunchSecurityInfo using its raw C ABI contract.

func (*RawAPI) VirDomainGetMaxMemory

func (raw *RawAPI) VirDomainGetMaxMemory(domain unsafe.Pointer) (uintptr, error)

VirDomainGetMaxMemory calls virDomainGetMaxMemory using its raw C ABI contract.

func (*RawAPI) VirDomainGetMaxVcpus

func (raw *RawAPI) VirDomainGetMaxVcpus(domain unsafe.Pointer) (int32, error)

VirDomainGetMaxVcpus calls virDomainGetMaxVcpus using its raw C ABI contract.

func (*RawAPI) VirDomainGetMemoryParameters

func (raw *RawAPI) VirDomainGetMemoryParameters(domain unsafe.Pointer, params unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirDomainGetMemoryParameters calls virDomainGetMemoryParameters using its raw C ABI contract.

func (*RawAPI) VirDomainGetMessages

func (raw *RawAPI) VirDomainGetMessages(domain unsafe.Pointer, msgs *unsafe.Pointer, flags uint32) (int32, error)

VirDomainGetMessages calls virDomainGetMessages using its raw C ABI contract.

func (*RawAPI) VirDomainGetMetadata

func (raw *RawAPI) VirDomainGetMetadata(domain unsafe.Pointer, type_ int32, uri *byte, flags uint32) (unsafe.Pointer, error)

VirDomainGetMetadata calls virDomainGetMetadata using its raw C ABI contract.

func (*RawAPI) VirDomainGetName

func (raw *RawAPI) VirDomainGetName(domain unsafe.Pointer) (unsafe.Pointer, error)

VirDomainGetName calls virDomainGetName using its raw C ABI contract.

func (*RawAPI) VirDomainGetNumaParameters

func (raw *RawAPI) VirDomainGetNumaParameters(domain unsafe.Pointer, params unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirDomainGetNumaParameters calls virDomainGetNumaParameters using its raw C ABI contract.

func (*RawAPI) VirDomainGetOSType

func (raw *RawAPI) VirDomainGetOSType(domain unsafe.Pointer) (unsafe.Pointer, error)

VirDomainGetOSType calls virDomainGetOSType using its raw C ABI contract.

func (*RawAPI) VirDomainGetPerfEvents

func (raw *RawAPI) VirDomainGetPerfEvents(domain unsafe.Pointer, params *unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirDomainGetPerfEvents calls virDomainGetPerfEvents using its raw C ABI contract.

func (*RawAPI) VirDomainGetSchedulerParameters

func (raw *RawAPI) VirDomainGetSchedulerParameters(domain unsafe.Pointer, params unsafe.Pointer, nparams *int32) (int32, error)

VirDomainGetSchedulerParameters calls virDomainGetSchedulerParameters using its raw C ABI contract.

func (*RawAPI) VirDomainGetSchedulerParametersFlags

func (raw *RawAPI) VirDomainGetSchedulerParametersFlags(domain unsafe.Pointer, params unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirDomainGetSchedulerParametersFlags calls virDomainGetSchedulerParametersFlags using its raw C ABI contract.

func (*RawAPI) VirDomainGetSchedulerType

func (raw *RawAPI) VirDomainGetSchedulerType(domain unsafe.Pointer, nparams *int32) (unsafe.Pointer, error)

VirDomainGetSchedulerType calls virDomainGetSchedulerType using its raw C ABI contract.

func (*RawAPI) VirDomainGetSecurityLabel

func (raw *RawAPI) VirDomainGetSecurityLabel(domain unsafe.Pointer, seclabel unsafe.Pointer) (int32, error)

VirDomainGetSecurityLabel calls virDomainGetSecurityLabel using its raw C ABI contract.

func (*RawAPI) VirDomainGetSecurityLabelList

func (raw *RawAPI) VirDomainGetSecurityLabelList(domain unsafe.Pointer, seclabels *unsafe.Pointer) (int32, error)

VirDomainGetSecurityLabelList calls virDomainGetSecurityLabelList using its raw C ABI contract.

func (*RawAPI) VirDomainGetState

func (raw *RawAPI) VirDomainGetState(domain unsafe.Pointer, state *int32, reason *int32, flags uint32) (int32, error)

VirDomainGetState calls virDomainGetState using its raw C ABI contract.

func (*RawAPI) VirDomainGetTime

func (raw *RawAPI) VirDomainGetTime(dom unsafe.Pointer, seconds *int64, nseconds *uint32, flags uint32) (int32, error)

VirDomainGetTime calls virDomainGetTime using its raw C ABI contract.

func (*RawAPI) VirDomainGetUUID

func (raw *RawAPI) VirDomainGetUUID(domain unsafe.Pointer, uuid *byte) (int32, error)

VirDomainGetUUID calls virDomainGetUUID using its raw C ABI contract.

func (*RawAPI) VirDomainGetUUIDString

func (raw *RawAPI) VirDomainGetUUIDString(domain unsafe.Pointer, buf *byte) (int32, error)

VirDomainGetUUIDString calls virDomainGetUUIDString using its raw C ABI contract.

func (*RawAPI) VirDomainGetVcpuPinInfo

func (raw *RawAPI) VirDomainGetVcpuPinInfo(domain unsafe.Pointer, ncpumaps int32, cpumaps *byte, maplen int32, flags uint32) (int32, error)

VirDomainGetVcpuPinInfo calls virDomainGetVcpuPinInfo using its raw C ABI contract.

func (*RawAPI) VirDomainGetVcpus

func (raw *RawAPI) VirDomainGetVcpus(domain unsafe.Pointer, info unsafe.Pointer, maxinfo int32, cpumaps *byte, maplen int32) (int32, error)

VirDomainGetVcpus calls virDomainGetVcpus using its raw C ABI contract.

func (*RawAPI) VirDomainGetVcpusFlags

func (raw *RawAPI) VirDomainGetVcpusFlags(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainGetVcpusFlags calls virDomainGetVcpusFlags using its raw C ABI contract.

func (*RawAPI) VirDomainGetXMLDesc

func (raw *RawAPI) VirDomainGetXMLDesc(domain unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirDomainGetXMLDesc calls virDomainGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirDomainGraphicsReload

func (raw *RawAPI) VirDomainGraphicsReload(domain unsafe.Pointer, type_ uint32, flags uint32) (int32, error)

VirDomainGraphicsReload calls virDomainGraphicsReload using its raw C ABI contract.

func (*RawAPI) VirDomainHasCurrentSnapshot

func (raw *RawAPI) VirDomainHasCurrentSnapshot(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainHasCurrentSnapshot calls virDomainHasCurrentSnapshot using its raw C ABI contract.

func (*RawAPI) VirDomainHasManagedSaveImage

func (raw *RawAPI) VirDomainHasManagedSaveImage(dom unsafe.Pointer, flags uint32) (int32, error)

VirDomainHasManagedSaveImage calls virDomainHasManagedSaveImage using its raw C ABI contract.

func (*RawAPI) VirDomainIOThreadInfoFree

func (raw *RawAPI) VirDomainIOThreadInfoFree(info unsafe.Pointer) error

VirDomainIOThreadInfoFree calls virDomainIOThreadInfoFree using its raw C ABI contract.

func (*RawAPI) VirDomainInjectNMI

func (raw *RawAPI) VirDomainInjectNMI(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainInjectNMI calls virDomainInjectNMI using its raw C ABI contract.

func (*RawAPI) VirDomainInterfaceAddresses

func (raw *RawAPI) VirDomainInterfaceAddresses(dom unsafe.Pointer, ifaces *unsafe.Pointer, source uint32, flags uint32) (int32, error)

VirDomainInterfaceAddresses calls virDomainInterfaceAddresses using its raw C ABI contract.

func (*RawAPI) VirDomainInterfaceFree

func (raw *RawAPI) VirDomainInterfaceFree(iface unsafe.Pointer) error

VirDomainInterfaceFree calls virDomainInterfaceFree using its raw C ABI contract.

func (*RawAPI) VirDomainInterfaceStats

func (raw *RawAPI) VirDomainInterfaceStats(dom unsafe.Pointer, device *byte, stats unsafe.Pointer, size uintptr) (int32, error)

VirDomainInterfaceStats calls virDomainInterfaceStats using its raw C ABI contract.

func (*RawAPI) VirDomainIsActive

func (raw *RawAPI) VirDomainIsActive(dom unsafe.Pointer) (int32, error)

VirDomainIsActive calls virDomainIsActive using its raw C ABI contract.

func (*RawAPI) VirDomainIsPersistent

func (raw *RawAPI) VirDomainIsPersistent(dom unsafe.Pointer) (int32, error)

VirDomainIsPersistent calls virDomainIsPersistent using its raw C ABI contract.

func (*RawAPI) VirDomainIsUpdated

func (raw *RawAPI) VirDomainIsUpdated(dom unsafe.Pointer) (int32, error)

VirDomainIsUpdated calls virDomainIsUpdated using its raw C ABI contract.

func (*RawAPI) VirDomainListAllCheckpoints

func (raw *RawAPI) VirDomainListAllCheckpoints(domain unsafe.Pointer, checkpoints *unsafe.Pointer, flags uint32) (int32, error)

VirDomainListAllCheckpoints calls virDomainListAllCheckpoints using its raw C ABI contract.

func (*RawAPI) VirDomainListAllSnapshots

func (raw *RawAPI) VirDomainListAllSnapshots(domain unsafe.Pointer, snaps *unsafe.Pointer, flags uint32) (int32, error)

VirDomainListAllSnapshots calls virDomainListAllSnapshots using its raw C ABI contract.

func (*RawAPI) VirDomainListGetStats

func (raw *RawAPI) VirDomainListGetStats(doms *unsafe.Pointer, stats uint32, retStats *unsafe.Pointer, flags uint32) (int32, error)

VirDomainListGetStats calls virDomainListGetStats using its raw C ABI contract.

func (*RawAPI) VirDomainLookupByID

func (raw *RawAPI) VirDomainLookupByID(conn unsafe.Pointer, id int32) (unsafe.Pointer, error)

VirDomainLookupByID calls virDomainLookupByID using its raw C ABI contract.

func (*RawAPI) VirDomainLookupByName

func (raw *RawAPI) VirDomainLookupByName(conn unsafe.Pointer, name *byte) (unsafe.Pointer, error)

VirDomainLookupByName calls virDomainLookupByName using its raw C ABI contract.

func (*RawAPI) VirDomainLookupByUUID

func (raw *RawAPI) VirDomainLookupByUUID(conn unsafe.Pointer, uuid *byte) (unsafe.Pointer, error)

VirDomainLookupByUUID calls virDomainLookupByUUID using its raw C ABI contract.

func (*RawAPI) VirDomainLookupByUUIDString

func (raw *RawAPI) VirDomainLookupByUUIDString(conn unsafe.Pointer, uuidstr *byte) (unsafe.Pointer, error)

VirDomainLookupByUUIDString calls virDomainLookupByUUIDString using its raw C ABI contract.

func (*RawAPI) VirDomainLxcEnterCGroup

func (raw *RawAPI) VirDomainLxcEnterCGroup(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainLxcEnterCGroup calls virDomainLxcEnterCGroup using its raw C ABI contract.

func (*RawAPI) VirDomainLxcEnterNamespace

func (raw *RawAPI) VirDomainLxcEnterNamespace(domain unsafe.Pointer, nfdlist uint32, fdlist *int32, noldfdlist *uint32, oldfdlist *unsafe.Pointer, flags uint32) (int32, error)

VirDomainLxcEnterNamespace calls virDomainLxcEnterNamespace using its raw C ABI contract.

func (*RawAPI) VirDomainLxcEnterSecurityLabel

func (raw *RawAPI) VirDomainLxcEnterSecurityLabel(model unsafe.Pointer, label unsafe.Pointer, oldlabel unsafe.Pointer, flags uint32) (int32, error)

VirDomainLxcEnterSecurityLabel calls virDomainLxcEnterSecurityLabel using its raw C ABI contract.

func (*RawAPI) VirDomainLxcOpenNamespace

func (raw *RawAPI) VirDomainLxcOpenNamespace(domain unsafe.Pointer, fdlist *unsafe.Pointer, flags uint32) (int32, error)

VirDomainLxcOpenNamespace calls virDomainLxcOpenNamespace using its raw C ABI contract.

func (*RawAPI) VirDomainManagedSave

func (raw *RawAPI) VirDomainManagedSave(dom unsafe.Pointer, flags uint32) (int32, error)

VirDomainManagedSave calls virDomainManagedSave using its raw C ABI contract.

func (*RawAPI) VirDomainManagedSaveDefineXML

func (raw *RawAPI) VirDomainManagedSaveDefineXML(domain unsafe.Pointer, dxml *byte, flags uint32) (int32, error)

VirDomainManagedSaveDefineXML calls virDomainManagedSaveDefineXML using its raw C ABI contract.

func (*RawAPI) VirDomainManagedSaveGetXMLDesc

func (raw *RawAPI) VirDomainManagedSaveGetXMLDesc(domain unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirDomainManagedSaveGetXMLDesc calls virDomainManagedSaveGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirDomainManagedSaveRemove

func (raw *RawAPI) VirDomainManagedSaveRemove(dom unsafe.Pointer, flags uint32) (int32, error)

VirDomainManagedSaveRemove calls virDomainManagedSaveRemove using its raw C ABI contract.

func (*RawAPI) VirDomainMemoryPeek

func (raw *RawAPI) VirDomainMemoryPeek(dom unsafe.Pointer, start uint64, size uintptr, buffer unsafe.Pointer, flags uint32) (int32, error)

VirDomainMemoryPeek calls virDomainMemoryPeek using its raw C ABI contract.

func (*RawAPI) VirDomainMemoryStats

func (raw *RawAPI) VirDomainMemoryStats(dom unsafe.Pointer, stats unsafe.Pointer, nr_stats uint32, flags uint32) (int32, error)

VirDomainMemoryStats calls virDomainMemoryStats using its raw C ABI contract.

func (*RawAPI) VirDomainMigrate

func (raw *RawAPI) VirDomainMigrate(domain unsafe.Pointer, dconn unsafe.Pointer, flags uintptr, dname *byte, uri *byte, bandwidth uintptr) (unsafe.Pointer, error)

VirDomainMigrate calls virDomainMigrate using its raw C ABI contract.

func (*RawAPI) VirDomainMigrate2

func (raw *RawAPI) VirDomainMigrate2(domain unsafe.Pointer, dconn unsafe.Pointer, dxml *byte, flags uintptr, dname *byte, uri *byte, bandwidth uintptr) (unsafe.Pointer, error)

VirDomainMigrate2 calls virDomainMigrate2 using its raw C ABI contract.

func (*RawAPI) VirDomainMigrate3

func (raw *RawAPI) VirDomainMigrate3(domain unsafe.Pointer, dconn unsafe.Pointer, params unsafe.Pointer, nparams uint32, flags uint32) (unsafe.Pointer, error)

VirDomainMigrate3 calls virDomainMigrate3 using its raw C ABI contract.

func (*RawAPI) VirDomainMigrateGetCompressionCache

func (raw *RawAPI) VirDomainMigrateGetCompressionCache(domain unsafe.Pointer, cacheSize *uint64, flags uint32) (int32, error)

VirDomainMigrateGetCompressionCache calls virDomainMigrateGetCompressionCache using its raw C ABI contract.

func (*RawAPI) VirDomainMigrateGetMaxDowntime

func (raw *RawAPI) VirDomainMigrateGetMaxDowntime(domain unsafe.Pointer, downtime *uint64, flags uint32) (int32, error)

VirDomainMigrateGetMaxDowntime calls virDomainMigrateGetMaxDowntime using its raw C ABI contract.

func (*RawAPI) VirDomainMigrateGetMaxSpeed

func (raw *RawAPI) VirDomainMigrateGetMaxSpeed(domain unsafe.Pointer, bandwidth *uintptr, flags uint32) (int32, error)

VirDomainMigrateGetMaxSpeed calls virDomainMigrateGetMaxSpeed using its raw C ABI contract.

func (*RawAPI) VirDomainMigrateSetCompressionCache

func (raw *RawAPI) VirDomainMigrateSetCompressionCache(domain unsafe.Pointer, cacheSize uint64, flags uint32) (int32, error)

VirDomainMigrateSetCompressionCache calls virDomainMigrateSetCompressionCache using its raw C ABI contract.

func (*RawAPI) VirDomainMigrateSetMaxDowntime

func (raw *RawAPI) VirDomainMigrateSetMaxDowntime(domain unsafe.Pointer, downtime uint64, flags uint32) (int32, error)

VirDomainMigrateSetMaxDowntime calls virDomainMigrateSetMaxDowntime using its raw C ABI contract.

func (*RawAPI) VirDomainMigrateSetMaxSpeed

func (raw *RawAPI) VirDomainMigrateSetMaxSpeed(domain unsafe.Pointer, bandwidth uintptr, flags uint32) (int32, error)

VirDomainMigrateSetMaxSpeed calls virDomainMigrateSetMaxSpeed using its raw C ABI contract.

func (*RawAPI) VirDomainMigrateStartPostCopy

func (raw *RawAPI) VirDomainMigrateStartPostCopy(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainMigrateStartPostCopy calls virDomainMigrateStartPostCopy using its raw C ABI contract.

func (*RawAPI) VirDomainMigrateToURI

func (raw *RawAPI) VirDomainMigrateToURI(domain unsafe.Pointer, duri *byte, flags uintptr, dname *byte, bandwidth uintptr) (int32, error)

VirDomainMigrateToURI calls virDomainMigrateToURI using its raw C ABI contract.

func (*RawAPI) VirDomainMigrateToURI2

func (raw *RawAPI) VirDomainMigrateToURI2(domain unsafe.Pointer, dconnuri *byte, miguri *byte, dxml *byte, flags uintptr, dname *byte, bandwidth uintptr) (int32, error)

VirDomainMigrateToURI2 calls virDomainMigrateToURI2 using its raw C ABI contract.

func (*RawAPI) VirDomainMigrateToURI3

func (raw *RawAPI) VirDomainMigrateToURI3(domain unsafe.Pointer, dconnuri *byte, params unsafe.Pointer, nparams uint32, flags uint32) (int32, error)

VirDomainMigrateToURI3 calls virDomainMigrateToURI3 using its raw C ABI contract.

func (*RawAPI) VirDomainOpenChannel

func (raw *RawAPI) VirDomainOpenChannel(dom unsafe.Pointer, name *byte, st unsafe.Pointer, flags uint32) (int32, error)

VirDomainOpenChannel calls virDomainOpenChannel using its raw C ABI contract.

func (*RawAPI) VirDomainOpenConsole

func (raw *RawAPI) VirDomainOpenConsole(dom unsafe.Pointer, dev_name *byte, st unsafe.Pointer, flags uint32) (int32, error)

VirDomainOpenConsole calls virDomainOpenConsole using its raw C ABI contract.

func (*RawAPI) VirDomainOpenGraphics

func (raw *RawAPI) VirDomainOpenGraphics(dom unsafe.Pointer, idx uint32, fd int32, flags uint32) (int32, error)

VirDomainOpenGraphics calls virDomainOpenGraphics using its raw C ABI contract.

func (*RawAPI) VirDomainOpenGraphicsFD

func (raw *RawAPI) VirDomainOpenGraphicsFD(dom unsafe.Pointer, idx uint32, flags uint32) (int32, error)

VirDomainOpenGraphicsFD calls virDomainOpenGraphicsFD using its raw C ABI contract.

func (*RawAPI) VirDomainPMSuspendForDuration

func (raw *RawAPI) VirDomainPMSuspendForDuration(dom unsafe.Pointer, target uint32, duration uint64, flags uint32) (int32, error)

VirDomainPMSuspendForDuration calls virDomainPMSuspendForDuration using its raw C ABI contract.

func (*RawAPI) VirDomainPMWakeup

func (raw *RawAPI) VirDomainPMWakeup(dom unsafe.Pointer, flags uint32) (int32, error)

VirDomainPMWakeup calls virDomainPMWakeup using its raw C ABI contract.

func (*RawAPI) VirDomainPinEmulator

func (raw *RawAPI) VirDomainPinEmulator(domain unsafe.Pointer, cpumap *byte, maplen int32, flags uint32) (int32, error)

VirDomainPinEmulator calls virDomainPinEmulator using its raw C ABI contract.

func (*RawAPI) VirDomainPinIOThread

func (raw *RawAPI) VirDomainPinIOThread(domain unsafe.Pointer, iothread_id uint32, cpumap *byte, maplen int32, flags uint32) (int32, error)

VirDomainPinIOThread calls virDomainPinIOThread using its raw C ABI contract.

func (*RawAPI) VirDomainPinVcpu

func (raw *RawAPI) VirDomainPinVcpu(domain unsafe.Pointer, vcpu uint32, cpumap *byte, maplen int32) (int32, error)

VirDomainPinVcpu calls virDomainPinVcpu using its raw C ABI contract.

func (*RawAPI) VirDomainPinVcpuFlags

func (raw *RawAPI) VirDomainPinVcpuFlags(domain unsafe.Pointer, vcpu uint32, cpumap *byte, maplen int32, flags uint32) (int32, error)

VirDomainPinVcpuFlags calls virDomainPinVcpuFlags using its raw C ABI contract.

func (*RawAPI) VirDomainQemuAgentCommand

func (raw *RawAPI) VirDomainQemuAgentCommand(domain unsafe.Pointer, cmd *byte, timeout int32, flags uint32) (unsafe.Pointer, error)

VirDomainQemuAgentCommand calls virDomainQemuAgentCommand using its raw C ABI contract.

func (*RawAPI) VirDomainQemuAttach

func (raw *RawAPI) VirDomainQemuAttach(conn unsafe.Pointer, pid_value uint32, flags uint32) (unsafe.Pointer, error)

VirDomainQemuAttach calls virDomainQemuAttach using its raw C ABI contract.

func (*RawAPI) VirDomainQemuMonitorCommand

func (raw *RawAPI) VirDomainQemuMonitorCommand(domain unsafe.Pointer, cmd *byte, result *unsafe.Pointer, flags uint32) (int32, error)

VirDomainQemuMonitorCommand calls virDomainQemuMonitorCommand using its raw C ABI contract.

func (*RawAPI) VirDomainQemuMonitorCommandWithFiles

func (raw *RawAPI) VirDomainQemuMonitorCommandWithFiles(domain unsafe.Pointer, cmd *byte, ninfiles uint32, infiles *int32, noutfiles *uint32, outfiles *unsafe.Pointer, result *unsafe.Pointer, flags uint32) (int32, error)

VirDomainQemuMonitorCommandWithFiles calls virDomainQemuMonitorCommandWithFiles using its raw C ABI contract.

func (*RawAPI) VirDomainReboot

func (raw *RawAPI) VirDomainReboot(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainReboot calls virDomainReboot using its raw C ABI contract.

func (*RawAPI) VirDomainRef

func (raw *RawAPI) VirDomainRef(domain unsafe.Pointer) (int32, error)

VirDomainRef calls virDomainRef using its raw C ABI contract.

func (*RawAPI) VirDomainRename

func (raw *RawAPI) VirDomainRename(dom unsafe.Pointer, new_name *byte, flags uint32) (int32, error)

VirDomainRename calls virDomainRename using its raw C ABI contract.

func (*RawAPI) VirDomainReset

func (raw *RawAPI) VirDomainReset(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainReset calls virDomainReset using its raw C ABI contract.

func (*RawAPI) VirDomainRestore

func (raw *RawAPI) VirDomainRestore(conn unsafe.Pointer, from *byte) (int32, error)

VirDomainRestore calls virDomainRestore using its raw C ABI contract.

func (*RawAPI) VirDomainRestoreFlags

func (raw *RawAPI) VirDomainRestoreFlags(conn unsafe.Pointer, from *byte, dxml *byte, flags uint32) (int32, error)

VirDomainRestoreFlags calls virDomainRestoreFlags using its raw C ABI contract.

func (*RawAPI) VirDomainRestoreParams

func (raw *RawAPI) VirDomainRestoreParams(conn unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainRestoreParams calls virDomainRestoreParams using its raw C ABI contract.

func (*RawAPI) VirDomainResume

func (raw *RawAPI) VirDomainResume(domain unsafe.Pointer) (int32, error)

VirDomainResume calls virDomainResume using its raw C ABI contract.

func (*RawAPI) VirDomainRevertToSnapshot

func (raw *RawAPI) VirDomainRevertToSnapshot(snapshot unsafe.Pointer, flags uint32) (int32, error)

VirDomainRevertToSnapshot calls virDomainRevertToSnapshot using its raw C ABI contract.

func (*RawAPI) VirDomainSave

func (raw *RawAPI) VirDomainSave(domain unsafe.Pointer, to *byte) (int32, error)

VirDomainSave calls virDomainSave using its raw C ABI contract.

func (*RawAPI) VirDomainSaveFlags

func (raw *RawAPI) VirDomainSaveFlags(domain unsafe.Pointer, to *byte, dxml *byte, flags uint32) (int32, error)

VirDomainSaveFlags calls virDomainSaveFlags using its raw C ABI contract.

func (*RawAPI) VirDomainSaveImageDefineXML

func (raw *RawAPI) VirDomainSaveImageDefineXML(conn unsafe.Pointer, file *byte, dxml *byte, flags uint32) (int32, error)

VirDomainSaveImageDefineXML calls virDomainSaveImageDefineXML using its raw C ABI contract.

func (*RawAPI) VirDomainSaveImageGetXMLDesc

func (raw *RawAPI) VirDomainSaveImageGetXMLDesc(conn unsafe.Pointer, file *byte, flags uint32) (unsafe.Pointer, error)

VirDomainSaveImageGetXMLDesc calls virDomainSaveImageGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirDomainSaveParams

func (raw *RawAPI) VirDomainSaveParams(domain unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainSaveParams calls virDomainSaveParams using its raw C ABI contract.

func (*RawAPI) VirDomainScreenshot

func (raw *RawAPI) VirDomainScreenshot(domain unsafe.Pointer, stream unsafe.Pointer, screen uint32, flags uint32) (unsafe.Pointer, error)

VirDomainScreenshot calls virDomainScreenshot using its raw C ABI contract.

func (*RawAPI) VirDomainSendKey

func (raw *RawAPI) VirDomainSendKey(domain unsafe.Pointer, codeset uint32, holdtime uint32, keycodes *uint32, nkeycodes int32, flags uint32) (int32, error)

VirDomainSendKey calls virDomainSendKey using its raw C ABI contract.

func (*RawAPI) VirDomainSendProcessSignal

func (raw *RawAPI) VirDomainSendProcessSignal(domain unsafe.Pointer, pid_value int64, signum uint32, flags uint32) (int32, error)

VirDomainSendProcessSignal calls virDomainSendProcessSignal using its raw C ABI contract.

func (*RawAPI) VirDomainSetAutostart

func (raw *RawAPI) VirDomainSetAutostart(domain unsafe.Pointer, autostart int32) (int32, error)

VirDomainSetAutostart calls virDomainSetAutostart using its raw C ABI contract.

func (*RawAPI) VirDomainSetAutostartOnce

func (raw *RawAPI) VirDomainSetAutostartOnce(domain unsafe.Pointer, autostart int32) (int32, error)

VirDomainSetAutostartOnce calls virDomainSetAutostartOnce using its raw C ABI contract.

func (*RawAPI) VirDomainSetBlkioParameters

func (raw *RawAPI) VirDomainSetBlkioParameters(domain unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainSetBlkioParameters calls virDomainSetBlkioParameters using its raw C ABI contract.

func (*RawAPI) VirDomainSetBlockIoTune

func (raw *RawAPI) VirDomainSetBlockIoTune(dom unsafe.Pointer, disk *byte, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainSetBlockIoTune calls virDomainSetBlockIoTune using its raw C ABI contract.

func (*RawAPI) VirDomainSetBlockThreshold

func (raw *RawAPI) VirDomainSetBlockThreshold(domain unsafe.Pointer, dev *byte, threshold uint64, flags uint32) (int32, error)

VirDomainSetBlockThreshold calls virDomainSetBlockThreshold using its raw C ABI contract.

func (*RawAPI) VirDomainSetGuestVcpus

func (raw *RawAPI) VirDomainSetGuestVcpus(domain unsafe.Pointer, cpumap *byte, state int32, flags uint32) (int32, error)

VirDomainSetGuestVcpus calls virDomainSetGuestVcpus using its raw C ABI contract.

func (*RawAPI) VirDomainSetIOThreadParams

func (raw *RawAPI) VirDomainSetIOThreadParams(domain unsafe.Pointer, iothread_id uint32, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainSetIOThreadParams calls virDomainSetIOThreadParams using its raw C ABI contract.

func (*RawAPI) VirDomainSetInterfaceParameters

func (raw *RawAPI) VirDomainSetInterfaceParameters(domain unsafe.Pointer, device *byte, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainSetInterfaceParameters calls virDomainSetInterfaceParameters using its raw C ABI contract.

func (*RawAPI) VirDomainSetLaunchSecurityState

func (raw *RawAPI) VirDomainSetLaunchSecurityState(domain unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainSetLaunchSecurityState calls virDomainSetLaunchSecurityState using its raw C ABI contract.

func (*RawAPI) VirDomainSetLifecycleAction

func (raw *RawAPI) VirDomainSetLifecycleAction(domain unsafe.Pointer, type_ uint32, action uint32, flags uint32) (int32, error)

VirDomainSetLifecycleAction calls virDomainSetLifecycleAction using its raw C ABI contract.

func (*RawAPI) VirDomainSetMaxMemory

func (raw *RawAPI) VirDomainSetMaxMemory(domain unsafe.Pointer, memory uintptr) (int32, error)

VirDomainSetMaxMemory calls virDomainSetMaxMemory using its raw C ABI contract.

func (*RawAPI) VirDomainSetMemory

func (raw *RawAPI) VirDomainSetMemory(domain unsafe.Pointer, memory uintptr) (int32, error)

VirDomainSetMemory calls virDomainSetMemory using its raw C ABI contract.

func (*RawAPI) VirDomainSetMemoryFlags

func (raw *RawAPI) VirDomainSetMemoryFlags(domain unsafe.Pointer, memory uintptr, flags uint32) (int32, error)

VirDomainSetMemoryFlags calls virDomainSetMemoryFlags using its raw C ABI contract.

func (*RawAPI) VirDomainSetMemoryParameters

func (raw *RawAPI) VirDomainSetMemoryParameters(domain unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainSetMemoryParameters calls virDomainSetMemoryParameters using its raw C ABI contract.

func (*RawAPI) VirDomainSetMemoryStatsPeriod

func (raw *RawAPI) VirDomainSetMemoryStatsPeriod(domain unsafe.Pointer, period int32, flags uint32) (int32, error)

VirDomainSetMemoryStatsPeriod calls virDomainSetMemoryStatsPeriod using its raw C ABI contract.

func (*RawAPI) VirDomainSetMetadata

func (raw *RawAPI) VirDomainSetMetadata(domain unsafe.Pointer, type_ int32, metadata *byte, key *byte, uri *byte, flags uint32) (int32, error)

VirDomainSetMetadata calls virDomainSetMetadata using its raw C ABI contract.

func (*RawAPI) VirDomainSetNumaParameters

func (raw *RawAPI) VirDomainSetNumaParameters(domain unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainSetNumaParameters calls virDomainSetNumaParameters using its raw C ABI contract.

func (*RawAPI) VirDomainSetPerfEvents

func (raw *RawAPI) VirDomainSetPerfEvents(domain unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainSetPerfEvents calls virDomainSetPerfEvents using its raw C ABI contract.

func (*RawAPI) VirDomainSetSchedulerParameters

func (raw *RawAPI) VirDomainSetSchedulerParameters(domain unsafe.Pointer, params unsafe.Pointer, nparams int32) (int32, error)

VirDomainSetSchedulerParameters calls virDomainSetSchedulerParameters using its raw C ABI contract.

func (*RawAPI) VirDomainSetSchedulerParametersFlags

func (raw *RawAPI) VirDomainSetSchedulerParametersFlags(domain unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainSetSchedulerParametersFlags calls virDomainSetSchedulerParametersFlags using its raw C ABI contract.

func (*RawAPI) VirDomainSetThrottleGroup

func (raw *RawAPI) VirDomainSetThrottleGroup(dom unsafe.Pointer, group *byte, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirDomainSetThrottleGroup calls virDomainSetThrottleGroup using its raw C ABI contract.

func (*RawAPI) VirDomainSetTime

func (raw *RawAPI) VirDomainSetTime(dom unsafe.Pointer, seconds int64, nseconds uint32, flags uint32) (int32, error)

VirDomainSetTime calls virDomainSetTime using its raw C ABI contract.

func (*RawAPI) VirDomainSetUserPassword

func (raw *RawAPI) VirDomainSetUserPassword(dom unsafe.Pointer, user *byte, password *byte, flags uint32) (int32, error)

VirDomainSetUserPassword calls virDomainSetUserPassword using its raw C ABI contract.

func (*RawAPI) VirDomainSetVcpu

func (raw *RawAPI) VirDomainSetVcpu(domain unsafe.Pointer, vcpumap *byte, state int32, flags uint32) (int32, error)

VirDomainSetVcpu calls virDomainSetVcpu using its raw C ABI contract.

func (*RawAPI) VirDomainSetVcpus

func (raw *RawAPI) VirDomainSetVcpus(domain unsafe.Pointer, nvcpus uint32) (int32, error)

VirDomainSetVcpus calls virDomainSetVcpus using its raw C ABI contract.

func (*RawAPI) VirDomainSetVcpusFlags

func (raw *RawAPI) VirDomainSetVcpusFlags(domain unsafe.Pointer, nvcpus uint32, flags uint32) (int32, error)

VirDomainSetVcpusFlags calls virDomainSetVcpusFlags using its raw C ABI contract.

func (*RawAPI) VirDomainShutdown

func (raw *RawAPI) VirDomainShutdown(domain unsafe.Pointer) (int32, error)

VirDomainShutdown calls virDomainShutdown using its raw C ABI contract.

func (*RawAPI) VirDomainShutdownFlags

func (raw *RawAPI) VirDomainShutdownFlags(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainShutdownFlags calls virDomainShutdownFlags using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotCreateXML

func (raw *RawAPI) VirDomainSnapshotCreateXML(domain unsafe.Pointer, xmlDesc *byte, flags uint32) (unsafe.Pointer, error)

VirDomainSnapshotCreateXML calls virDomainSnapshotCreateXML using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotCurrent

func (raw *RawAPI) VirDomainSnapshotCurrent(domain unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirDomainSnapshotCurrent calls virDomainSnapshotCurrent using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotDelete

func (raw *RawAPI) VirDomainSnapshotDelete(snapshot unsafe.Pointer, flags uint32) (int32, error)

VirDomainSnapshotDelete calls virDomainSnapshotDelete using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotFree

func (raw *RawAPI) VirDomainSnapshotFree(snapshot unsafe.Pointer) (int32, error)

VirDomainSnapshotFree calls virDomainSnapshotFree using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotGetConnect

func (raw *RawAPI) VirDomainSnapshotGetConnect(snapshot unsafe.Pointer) (unsafe.Pointer, error)

VirDomainSnapshotGetConnect calls virDomainSnapshotGetConnect using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotGetDomain

func (raw *RawAPI) VirDomainSnapshotGetDomain(snapshot unsafe.Pointer) (unsafe.Pointer, error)

VirDomainSnapshotGetDomain calls virDomainSnapshotGetDomain using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotGetName

func (raw *RawAPI) VirDomainSnapshotGetName(snapshot unsafe.Pointer) (unsafe.Pointer, error)

VirDomainSnapshotGetName calls virDomainSnapshotGetName using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotGetParent

func (raw *RawAPI) VirDomainSnapshotGetParent(snapshot unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirDomainSnapshotGetParent calls virDomainSnapshotGetParent using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotGetXMLDesc

func (raw *RawAPI) VirDomainSnapshotGetXMLDesc(snapshot unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirDomainSnapshotGetXMLDesc calls virDomainSnapshotGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotHasMetadata

func (raw *RawAPI) VirDomainSnapshotHasMetadata(snapshot unsafe.Pointer, flags uint32) (int32, error)

VirDomainSnapshotHasMetadata calls virDomainSnapshotHasMetadata using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotIsCurrent

func (raw *RawAPI) VirDomainSnapshotIsCurrent(snapshot unsafe.Pointer, flags uint32) (int32, error)

VirDomainSnapshotIsCurrent calls virDomainSnapshotIsCurrent using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotListAllChildren

func (raw *RawAPI) VirDomainSnapshotListAllChildren(snapshot unsafe.Pointer, snaps *unsafe.Pointer, flags uint32) (int32, error)

VirDomainSnapshotListAllChildren calls virDomainSnapshotListAllChildren using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotListChildrenNames

func (raw *RawAPI) VirDomainSnapshotListChildrenNames(snapshot unsafe.Pointer, names *unsafe.Pointer, nameslen int32, flags uint32) (int32, error)

VirDomainSnapshotListChildrenNames calls virDomainSnapshotListChildrenNames using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotListNames

func (raw *RawAPI) VirDomainSnapshotListNames(domain unsafe.Pointer, names *unsafe.Pointer, nameslen int32, flags uint32) (int32, error)

VirDomainSnapshotListNames calls virDomainSnapshotListNames using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotLookupByName

func (raw *RawAPI) VirDomainSnapshotLookupByName(domain unsafe.Pointer, name *byte, flags uint32) (unsafe.Pointer, error)

VirDomainSnapshotLookupByName calls virDomainSnapshotLookupByName using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotNum

func (raw *RawAPI) VirDomainSnapshotNum(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainSnapshotNum calls virDomainSnapshotNum using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotNumChildren

func (raw *RawAPI) VirDomainSnapshotNumChildren(snapshot unsafe.Pointer, flags uint32) (int32, error)

VirDomainSnapshotNumChildren calls virDomainSnapshotNumChildren using its raw C ABI contract.

func (*RawAPI) VirDomainSnapshotRef

func (raw *RawAPI) VirDomainSnapshotRef(snapshot unsafe.Pointer) (int32, error)

VirDomainSnapshotRef calls virDomainSnapshotRef using its raw C ABI contract.

func (*RawAPI) VirDomainStartDirtyRateCalc

func (raw *RawAPI) VirDomainStartDirtyRateCalc(domain unsafe.Pointer, seconds int32, flags uint32) (int32, error)

VirDomainStartDirtyRateCalc calls virDomainStartDirtyRateCalc using its raw C ABI contract.

func (*RawAPI) VirDomainStatsRecordListFree

func (raw *RawAPI) VirDomainStatsRecordListFree(stats *unsafe.Pointer) error

VirDomainStatsRecordListFree calls virDomainStatsRecordListFree using its raw C ABI contract.

func (*RawAPI) VirDomainSuspend

func (raw *RawAPI) VirDomainSuspend(domain unsafe.Pointer) (int32, error)

VirDomainSuspend calls virDomainSuspend using its raw C ABI contract.

func (*RawAPI) VirDomainUndefine

func (raw *RawAPI) VirDomainUndefine(domain unsafe.Pointer) (int32, error)

VirDomainUndefine calls virDomainUndefine using its raw C ABI contract.

func (*RawAPI) VirDomainUndefineFlags

func (raw *RawAPI) VirDomainUndefineFlags(domain unsafe.Pointer, flags uint32) (int32, error)

VirDomainUndefineFlags calls virDomainUndefineFlags using its raw C ABI contract.

func (*RawAPI) VirDomainUpdateDeviceFlags

func (raw *RawAPI) VirDomainUpdateDeviceFlags(domain unsafe.Pointer, xml *byte, flags uint32) (int32, error)

VirDomainUpdateDeviceFlags calls virDomainUpdateDeviceFlags using its raw C ABI contract.

func (*RawAPI) VirEventAddHandle

func (raw *RawAPI) VirEventAddHandle(fd int32, events int32, cb uintptr, opaque unsafe.Pointer, ff uintptr) (int32, error)

VirEventAddHandle calls virEventAddHandle using its raw C ABI contract.

func (*RawAPI) VirEventAddTimeout

func (raw *RawAPI) VirEventAddTimeout(timeout int32, cb uintptr, opaque unsafe.Pointer, ff uintptr) (int32, error)

VirEventAddTimeout calls virEventAddTimeout using its raw C ABI contract.

func (*RawAPI) VirEventRegisterDefaultImpl

func (raw *RawAPI) VirEventRegisterDefaultImpl() (int32, error)

VirEventRegisterDefaultImpl calls virEventRegisterDefaultImpl using its raw C ABI contract.

func (*RawAPI) VirEventRegisterImpl

func (raw *RawAPI) VirEventRegisterImpl(addHandle uintptr, updateHandle uintptr, removeHandle uintptr, addTimeout uintptr, updateTimeout uintptr, removeTimeout uintptr) error

VirEventRegisterImpl calls virEventRegisterImpl using its raw C ABI contract.

func (*RawAPI) VirEventRemoveHandle

func (raw *RawAPI) VirEventRemoveHandle(watch int32) (int32, error)

VirEventRemoveHandle calls virEventRemoveHandle using its raw C ABI contract.

func (*RawAPI) VirEventRemoveTimeout

func (raw *RawAPI) VirEventRemoveTimeout(timer int32) (int32, error)

VirEventRemoveTimeout calls virEventRemoveTimeout using its raw C ABI contract.

func (*RawAPI) VirEventRunDefaultImpl

func (raw *RawAPI) VirEventRunDefaultImpl() (int32, error)

VirEventRunDefaultImpl calls virEventRunDefaultImpl using its raw C ABI contract.

func (*RawAPI) VirEventUpdateHandle

func (raw *RawAPI) VirEventUpdateHandle(watch int32, events int32) error

VirEventUpdateHandle calls virEventUpdateHandle using its raw C ABI contract.

func (*RawAPI) VirEventUpdateTimeout

func (raw *RawAPI) VirEventUpdateTimeout(timer int32, timeout int32) error

VirEventUpdateTimeout calls virEventUpdateTimeout using its raw C ABI contract.

func (*RawAPI) VirFreeError

func (raw *RawAPI) VirFreeError(err unsafe.Pointer) error

VirFreeError calls virFreeError using its raw C ABI contract.

func (*RawAPI) VirGetLastError

func (raw *RawAPI) VirGetLastError() (unsafe.Pointer, error)

VirGetLastError calls virGetLastError using its raw C ABI contract.

func (*RawAPI) VirGetLastErrorCode

func (raw *RawAPI) VirGetLastErrorCode() (int32, error)

VirGetLastErrorCode calls virGetLastErrorCode using its raw C ABI contract.

func (*RawAPI) VirGetLastErrorDomain

func (raw *RawAPI) VirGetLastErrorDomain() (int32, error)

VirGetLastErrorDomain calls virGetLastErrorDomain using its raw C ABI contract.

func (*RawAPI) VirGetLastErrorMessage

func (raw *RawAPI) VirGetLastErrorMessage() (unsafe.Pointer, error)

VirGetLastErrorMessage calls virGetLastErrorMessage using its raw C ABI contract.

func (*RawAPI) VirGetVersion

func (raw *RawAPI) VirGetVersion(libVer *uintptr, type_ *byte, typeVer *uintptr) (int32, error)

VirGetVersion calls virGetVersion using its raw C ABI contract.

func (*RawAPI) VirInitialize

func (raw *RawAPI) VirInitialize() (int32, error)

VirInitialize calls virInitialize using its raw C ABI contract.

func (*RawAPI) VirInterfaceChangeBegin

func (raw *RawAPI) VirInterfaceChangeBegin(conn unsafe.Pointer, flags uint32) (int32, error)

VirInterfaceChangeBegin calls virInterfaceChangeBegin using its raw C ABI contract.

func (*RawAPI) VirInterfaceChangeCommit

func (raw *RawAPI) VirInterfaceChangeCommit(conn unsafe.Pointer, flags uint32) (int32, error)

VirInterfaceChangeCommit calls virInterfaceChangeCommit using its raw C ABI contract.

func (*RawAPI) VirInterfaceChangeRollback

func (raw *RawAPI) VirInterfaceChangeRollback(conn unsafe.Pointer, flags uint32) (int32, error)

VirInterfaceChangeRollback calls virInterfaceChangeRollback using its raw C ABI contract.

func (*RawAPI) VirInterfaceCreate

func (raw *RawAPI) VirInterfaceCreate(iface unsafe.Pointer, flags uint32) (int32, error)

VirInterfaceCreate calls virInterfaceCreate using its raw C ABI contract.

func (*RawAPI) VirInterfaceDefineXML

func (raw *RawAPI) VirInterfaceDefineXML(conn unsafe.Pointer, xml *byte, flags uint32) (unsafe.Pointer, error)

VirInterfaceDefineXML calls virInterfaceDefineXML using its raw C ABI contract.

func (*RawAPI) VirInterfaceDestroy

func (raw *RawAPI) VirInterfaceDestroy(iface unsafe.Pointer, flags uint32) (int32, error)

VirInterfaceDestroy calls virInterfaceDestroy using its raw C ABI contract.

func (*RawAPI) VirInterfaceFree

func (raw *RawAPI) VirInterfaceFree(iface unsafe.Pointer) (int32, error)

VirInterfaceFree calls virInterfaceFree using its raw C ABI contract.

func (*RawAPI) VirInterfaceGetConnect

func (raw *RawAPI) VirInterfaceGetConnect(iface unsafe.Pointer) (unsafe.Pointer, error)

VirInterfaceGetConnect calls virInterfaceGetConnect using its raw C ABI contract.

func (*RawAPI) VirInterfaceGetMACString

func (raw *RawAPI) VirInterfaceGetMACString(iface unsafe.Pointer) (unsafe.Pointer, error)

VirInterfaceGetMACString calls virInterfaceGetMACString using its raw C ABI contract.

func (*RawAPI) VirInterfaceGetName

func (raw *RawAPI) VirInterfaceGetName(iface unsafe.Pointer) (unsafe.Pointer, error)

VirInterfaceGetName calls virInterfaceGetName using its raw C ABI contract.

func (*RawAPI) VirInterfaceGetXMLDesc

func (raw *RawAPI) VirInterfaceGetXMLDesc(iface unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirInterfaceGetXMLDesc calls virInterfaceGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirInterfaceIsActive

func (raw *RawAPI) VirInterfaceIsActive(iface unsafe.Pointer) (int32, error)

VirInterfaceIsActive calls virInterfaceIsActive using its raw C ABI contract.

func (*RawAPI) VirInterfaceLookupByMACString

func (raw *RawAPI) VirInterfaceLookupByMACString(conn unsafe.Pointer, macstr *byte) (unsafe.Pointer, error)

VirInterfaceLookupByMACString calls virInterfaceLookupByMACString using its raw C ABI contract.

func (*RawAPI) VirInterfaceLookupByName

func (raw *RawAPI) VirInterfaceLookupByName(conn unsafe.Pointer, name *byte) (unsafe.Pointer, error)

VirInterfaceLookupByName calls virInterfaceLookupByName using its raw C ABI contract.

func (*RawAPI) VirInterfaceRef

func (raw *RawAPI) VirInterfaceRef(iface unsafe.Pointer) (int32, error)

VirInterfaceRef calls virInterfaceRef using its raw C ABI contract.

func (*RawAPI) VirInterfaceUndefine

func (raw *RawAPI) VirInterfaceUndefine(iface unsafe.Pointer) (int32, error)

VirInterfaceUndefine calls virInterfaceUndefine using its raw C ABI contract.

func (*RawAPI) VirNWFilterBindingCreateXML

func (raw *RawAPI) VirNWFilterBindingCreateXML(conn unsafe.Pointer, xml *byte, flags uint32) (unsafe.Pointer, error)

VirNWFilterBindingCreateXML calls virNWFilterBindingCreateXML using its raw C ABI contract.

func (*RawAPI) VirNWFilterBindingDelete

func (raw *RawAPI) VirNWFilterBindingDelete(binding unsafe.Pointer) (int32, error)

VirNWFilterBindingDelete calls virNWFilterBindingDelete using its raw C ABI contract.

func (*RawAPI) VirNWFilterBindingFree

func (raw *RawAPI) VirNWFilterBindingFree(binding unsafe.Pointer) (int32, error)

VirNWFilterBindingFree calls virNWFilterBindingFree using its raw C ABI contract.

func (*RawAPI) VirNWFilterBindingGetFilterName

func (raw *RawAPI) VirNWFilterBindingGetFilterName(binding unsafe.Pointer) (unsafe.Pointer, error)

VirNWFilterBindingGetFilterName calls virNWFilterBindingGetFilterName using its raw C ABI contract.

func (*RawAPI) VirNWFilterBindingGetPortDev

func (raw *RawAPI) VirNWFilterBindingGetPortDev(binding unsafe.Pointer) (unsafe.Pointer, error)

VirNWFilterBindingGetPortDev calls virNWFilterBindingGetPortDev using its raw C ABI contract.

func (*RawAPI) VirNWFilterBindingGetXMLDesc

func (raw *RawAPI) VirNWFilterBindingGetXMLDesc(binding unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirNWFilterBindingGetXMLDesc calls virNWFilterBindingGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirNWFilterBindingLookupByPortDev

func (raw *RawAPI) VirNWFilterBindingLookupByPortDev(conn unsafe.Pointer, portdev *byte) (unsafe.Pointer, error)

VirNWFilterBindingLookupByPortDev calls virNWFilterBindingLookupByPortDev using its raw C ABI contract.

func (*RawAPI) VirNWFilterBindingRef

func (raw *RawAPI) VirNWFilterBindingRef(binding unsafe.Pointer) (int32, error)

VirNWFilterBindingRef calls virNWFilterBindingRef using its raw C ABI contract.

func (*RawAPI) VirNWFilterDefineXML

func (raw *RawAPI) VirNWFilterDefineXML(conn unsafe.Pointer, xmlDesc *byte) (unsafe.Pointer, error)

VirNWFilterDefineXML calls virNWFilterDefineXML using its raw C ABI contract.

func (*RawAPI) VirNWFilterDefineXMLFlags

func (raw *RawAPI) VirNWFilterDefineXMLFlags(conn unsafe.Pointer, xmlDesc *byte, flags uint32) (unsafe.Pointer, error)

VirNWFilterDefineXMLFlags calls virNWFilterDefineXMLFlags using its raw C ABI contract.

func (*RawAPI) VirNWFilterFree

func (raw *RawAPI) VirNWFilterFree(nwfilter unsafe.Pointer) (int32, error)

VirNWFilterFree calls virNWFilterFree using its raw C ABI contract.

func (*RawAPI) VirNWFilterGetName

func (raw *RawAPI) VirNWFilterGetName(nwfilter unsafe.Pointer) (unsafe.Pointer, error)

VirNWFilterGetName calls virNWFilterGetName using its raw C ABI contract.

func (*RawAPI) VirNWFilterGetUUID

func (raw *RawAPI) VirNWFilterGetUUID(nwfilter unsafe.Pointer, uuid *byte) (int32, error)

VirNWFilterGetUUID calls virNWFilterGetUUID using its raw C ABI contract.

func (*RawAPI) VirNWFilterGetUUIDString

func (raw *RawAPI) VirNWFilterGetUUIDString(nwfilter unsafe.Pointer, buf *byte) (int32, error)

VirNWFilterGetUUIDString calls virNWFilterGetUUIDString using its raw C ABI contract.

func (*RawAPI) VirNWFilterGetXMLDesc

func (raw *RawAPI) VirNWFilterGetXMLDesc(nwfilter unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirNWFilterGetXMLDesc calls virNWFilterGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirNWFilterLookupByName

func (raw *RawAPI) VirNWFilterLookupByName(conn unsafe.Pointer, name *byte) (unsafe.Pointer, error)

VirNWFilterLookupByName calls virNWFilterLookupByName using its raw C ABI contract.

func (*RawAPI) VirNWFilterLookupByUUID

func (raw *RawAPI) VirNWFilterLookupByUUID(conn unsafe.Pointer, uuid *byte) (unsafe.Pointer, error)

VirNWFilterLookupByUUID calls virNWFilterLookupByUUID using its raw C ABI contract.

func (*RawAPI) VirNWFilterLookupByUUIDString

func (raw *RawAPI) VirNWFilterLookupByUUIDString(conn unsafe.Pointer, uuidstr *byte) (unsafe.Pointer, error)

VirNWFilterLookupByUUIDString calls virNWFilterLookupByUUIDString using its raw C ABI contract.

func (*RawAPI) VirNWFilterRef

func (raw *RawAPI) VirNWFilterRef(nwfilter unsafe.Pointer) (int32, error)

VirNWFilterRef calls virNWFilterRef using its raw C ABI contract.

func (*RawAPI) VirNWFilterUndefine

func (raw *RawAPI) VirNWFilterUndefine(nwfilter unsafe.Pointer) (int32, error)

VirNWFilterUndefine calls virNWFilterUndefine using its raw C ABI contract.

func (*RawAPI) VirNetworkCreate

func (raw *RawAPI) VirNetworkCreate(network unsafe.Pointer) (int32, error)

VirNetworkCreate calls virNetworkCreate using its raw C ABI contract.

func (*RawAPI) VirNetworkCreateXML

func (raw *RawAPI) VirNetworkCreateXML(conn unsafe.Pointer, xmlDesc *byte) (unsafe.Pointer, error)

VirNetworkCreateXML calls virNetworkCreateXML using its raw C ABI contract.

func (*RawAPI) VirNetworkCreateXMLFlags

func (raw *RawAPI) VirNetworkCreateXMLFlags(conn unsafe.Pointer, xmlDesc *byte, flags uint32) (unsafe.Pointer, error)

VirNetworkCreateXMLFlags calls virNetworkCreateXMLFlags using its raw C ABI contract.

func (*RawAPI) VirNetworkDHCPLeaseFree

func (raw *RawAPI) VirNetworkDHCPLeaseFree(lease unsafe.Pointer) error

VirNetworkDHCPLeaseFree calls virNetworkDHCPLeaseFree using its raw C ABI contract.

func (*RawAPI) VirNetworkDefineXML

func (raw *RawAPI) VirNetworkDefineXML(conn unsafe.Pointer, xml *byte) (unsafe.Pointer, error)

VirNetworkDefineXML calls virNetworkDefineXML using its raw C ABI contract.

func (*RawAPI) VirNetworkDefineXMLFlags

func (raw *RawAPI) VirNetworkDefineXMLFlags(conn unsafe.Pointer, xml *byte, flags uint32) (unsafe.Pointer, error)

VirNetworkDefineXMLFlags calls virNetworkDefineXMLFlags using its raw C ABI contract.

func (*RawAPI) VirNetworkDestroy

func (raw *RawAPI) VirNetworkDestroy(network unsafe.Pointer) (int32, error)

VirNetworkDestroy calls virNetworkDestroy using its raw C ABI contract.

func (*RawAPI) VirNetworkFree

func (raw *RawAPI) VirNetworkFree(network unsafe.Pointer) (int32, error)

VirNetworkFree calls virNetworkFree using its raw C ABI contract.

func (*RawAPI) VirNetworkGetAutostart

func (raw *RawAPI) VirNetworkGetAutostart(network unsafe.Pointer, autostart *int32) (int32, error)

VirNetworkGetAutostart calls virNetworkGetAutostart using its raw C ABI contract.

func (*RawAPI) VirNetworkGetBridgeName

func (raw *RawAPI) VirNetworkGetBridgeName(network unsafe.Pointer) (unsafe.Pointer, error)

VirNetworkGetBridgeName calls virNetworkGetBridgeName using its raw C ABI contract.

func (*RawAPI) VirNetworkGetConnect

func (raw *RawAPI) VirNetworkGetConnect(net unsafe.Pointer) (unsafe.Pointer, error)

VirNetworkGetConnect calls virNetworkGetConnect using its raw C ABI contract.

func (*RawAPI) VirNetworkGetDHCPLeases

func (raw *RawAPI) VirNetworkGetDHCPLeases(network unsafe.Pointer, mac *byte, leases *unsafe.Pointer, flags uint32) (int32, error)

VirNetworkGetDHCPLeases calls virNetworkGetDHCPLeases using its raw C ABI contract.

func (*RawAPI) VirNetworkGetMetadata

func (raw *RawAPI) VirNetworkGetMetadata(network unsafe.Pointer, type_ int32, uri *byte, flags uint32) (unsafe.Pointer, error)

VirNetworkGetMetadata calls virNetworkGetMetadata using its raw C ABI contract.

func (*RawAPI) VirNetworkGetName

func (raw *RawAPI) VirNetworkGetName(network unsafe.Pointer) (unsafe.Pointer, error)

VirNetworkGetName calls virNetworkGetName using its raw C ABI contract.

func (*RawAPI) VirNetworkGetUUID

func (raw *RawAPI) VirNetworkGetUUID(network unsafe.Pointer, uuid *byte) (int32, error)

VirNetworkGetUUID calls virNetworkGetUUID using its raw C ABI contract.

func (*RawAPI) VirNetworkGetUUIDString

func (raw *RawAPI) VirNetworkGetUUIDString(network unsafe.Pointer, buf *byte) (int32, error)

VirNetworkGetUUIDString calls virNetworkGetUUIDString using its raw C ABI contract.

func (*RawAPI) VirNetworkGetXMLDesc

func (raw *RawAPI) VirNetworkGetXMLDesc(network unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirNetworkGetXMLDesc calls virNetworkGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirNetworkIsActive

func (raw *RawAPI) VirNetworkIsActive(net unsafe.Pointer) (int32, error)

VirNetworkIsActive calls virNetworkIsActive using its raw C ABI contract.

func (*RawAPI) VirNetworkIsPersistent

func (raw *RawAPI) VirNetworkIsPersistent(net unsafe.Pointer) (int32, error)

VirNetworkIsPersistent calls virNetworkIsPersistent using its raw C ABI contract.

func (*RawAPI) VirNetworkListAllPorts

func (raw *RawAPI) VirNetworkListAllPorts(network unsafe.Pointer, ports *unsafe.Pointer, flags uint32) (int32, error)

VirNetworkListAllPorts calls virNetworkListAllPorts using its raw C ABI contract.

func (*RawAPI) VirNetworkLookupByName

func (raw *RawAPI) VirNetworkLookupByName(conn unsafe.Pointer, name *byte) (unsafe.Pointer, error)

VirNetworkLookupByName calls virNetworkLookupByName using its raw C ABI contract.

func (*RawAPI) VirNetworkLookupByUUID

func (raw *RawAPI) VirNetworkLookupByUUID(conn unsafe.Pointer, uuid *byte) (unsafe.Pointer, error)

VirNetworkLookupByUUID calls virNetworkLookupByUUID using its raw C ABI contract.

func (*RawAPI) VirNetworkLookupByUUIDString

func (raw *RawAPI) VirNetworkLookupByUUIDString(conn unsafe.Pointer, uuidstr *byte) (unsafe.Pointer, error)

VirNetworkLookupByUUIDString calls virNetworkLookupByUUIDString using its raw C ABI contract.

func (*RawAPI) VirNetworkPortCreateXML

func (raw *RawAPI) VirNetworkPortCreateXML(net unsafe.Pointer, xmldesc *byte, flags uint32) (unsafe.Pointer, error)

VirNetworkPortCreateXML calls virNetworkPortCreateXML using its raw C ABI contract.

func (*RawAPI) VirNetworkPortDelete

func (raw *RawAPI) VirNetworkPortDelete(port unsafe.Pointer, flags uint32) (int32, error)

VirNetworkPortDelete calls virNetworkPortDelete using its raw C ABI contract.

func (*RawAPI) VirNetworkPortFree

func (raw *RawAPI) VirNetworkPortFree(port unsafe.Pointer) (int32, error)

VirNetworkPortFree calls virNetworkPortFree using its raw C ABI contract.

func (*RawAPI) VirNetworkPortGetNetwork

func (raw *RawAPI) VirNetworkPortGetNetwork(port unsafe.Pointer) (unsafe.Pointer, error)

VirNetworkPortGetNetwork calls virNetworkPortGetNetwork using its raw C ABI contract.

func (*RawAPI) VirNetworkPortGetParameters

func (raw *RawAPI) VirNetworkPortGetParameters(port unsafe.Pointer, params *unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirNetworkPortGetParameters calls virNetworkPortGetParameters using its raw C ABI contract.

func (*RawAPI) VirNetworkPortGetUUID

func (raw *RawAPI) VirNetworkPortGetUUID(port unsafe.Pointer, uuid *byte) (int32, error)

VirNetworkPortGetUUID calls virNetworkPortGetUUID using its raw C ABI contract.

func (*RawAPI) VirNetworkPortGetUUIDString

func (raw *RawAPI) VirNetworkPortGetUUIDString(port unsafe.Pointer, buf *byte) (int32, error)

VirNetworkPortGetUUIDString calls virNetworkPortGetUUIDString using its raw C ABI contract.

func (*RawAPI) VirNetworkPortGetXMLDesc

func (raw *RawAPI) VirNetworkPortGetXMLDesc(port unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirNetworkPortGetXMLDesc calls virNetworkPortGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirNetworkPortLookupByUUID

func (raw *RawAPI) VirNetworkPortLookupByUUID(net unsafe.Pointer, uuid *byte) (unsafe.Pointer, error)

VirNetworkPortLookupByUUID calls virNetworkPortLookupByUUID using its raw C ABI contract.

func (*RawAPI) VirNetworkPortLookupByUUIDString

func (raw *RawAPI) VirNetworkPortLookupByUUIDString(net unsafe.Pointer, uuidstr *byte) (unsafe.Pointer, error)

VirNetworkPortLookupByUUIDString calls virNetworkPortLookupByUUIDString using its raw C ABI contract.

func (*RawAPI) VirNetworkPortRef

func (raw *RawAPI) VirNetworkPortRef(port unsafe.Pointer) (int32, error)

VirNetworkPortRef calls virNetworkPortRef using its raw C ABI contract.

func (*RawAPI) VirNetworkPortSetParameters

func (raw *RawAPI) VirNetworkPortSetParameters(port unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirNetworkPortSetParameters calls virNetworkPortSetParameters using its raw C ABI contract.

func (*RawAPI) VirNetworkRef

func (raw *RawAPI) VirNetworkRef(network unsafe.Pointer) (int32, error)

VirNetworkRef calls virNetworkRef using its raw C ABI contract.

func (*RawAPI) VirNetworkSetAutostart

func (raw *RawAPI) VirNetworkSetAutostart(network unsafe.Pointer, autostart int32) (int32, error)

VirNetworkSetAutostart calls virNetworkSetAutostart using its raw C ABI contract.

func (*RawAPI) VirNetworkSetMetadata

func (raw *RawAPI) VirNetworkSetMetadata(network unsafe.Pointer, type_ int32, metadata *byte, key *byte, uri *byte, flags uint32) (int32, error)

VirNetworkSetMetadata calls virNetworkSetMetadata using its raw C ABI contract.

func (*RawAPI) VirNetworkUndefine

func (raw *RawAPI) VirNetworkUndefine(network unsafe.Pointer) (int32, error)

VirNetworkUndefine calls virNetworkUndefine using its raw C ABI contract.

func (*RawAPI) VirNetworkUpdate

func (raw *RawAPI) VirNetworkUpdate(network unsafe.Pointer, command uint32, section uint32, parentIndex int32, xml *byte, flags uint32) (int32, error)

VirNetworkUpdate calls virNetworkUpdate using its raw C ABI contract.

func (*RawAPI) VirNodeAllocPages

func (raw *RawAPI) VirNodeAllocPages(conn unsafe.Pointer, npages uint32, pageSizes *uint32, pageCounts *uint64, startCell int32, cellCount uint32, flags uint32) (int32, error)

VirNodeAllocPages calls virNodeAllocPages using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceCreate

func (raw *RawAPI) VirNodeDeviceCreate(dev unsafe.Pointer, flags uint32) (int32, error)

VirNodeDeviceCreate calls virNodeDeviceCreate using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceCreateXML

func (raw *RawAPI) VirNodeDeviceCreateXML(conn unsafe.Pointer, xmlDesc *byte, flags uint32) (unsafe.Pointer, error)

VirNodeDeviceCreateXML calls virNodeDeviceCreateXML using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceDefineXML

func (raw *RawAPI) VirNodeDeviceDefineXML(conn unsafe.Pointer, xmlDesc *byte, flags uint32) (unsafe.Pointer, error)

VirNodeDeviceDefineXML calls virNodeDeviceDefineXML using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceDestroy

func (raw *RawAPI) VirNodeDeviceDestroy(dev unsafe.Pointer) (int32, error)

VirNodeDeviceDestroy calls virNodeDeviceDestroy using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceDetachFlags

func (raw *RawAPI) VirNodeDeviceDetachFlags(dev unsafe.Pointer, driverName *byte, flags uint32) (int32, error)

VirNodeDeviceDetachFlags calls virNodeDeviceDetachFlags using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceDettach

func (raw *RawAPI) VirNodeDeviceDettach(dev unsafe.Pointer) (int32, error)

VirNodeDeviceDettach calls virNodeDeviceDettach using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceFree

func (raw *RawAPI) VirNodeDeviceFree(dev unsafe.Pointer) (int32, error)

VirNodeDeviceFree calls virNodeDeviceFree using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceGetAutostart

func (raw *RawAPI) VirNodeDeviceGetAutostart(dev unsafe.Pointer, autostart *int32) (int32, error)

VirNodeDeviceGetAutostart calls virNodeDeviceGetAutostart using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceGetName

func (raw *RawAPI) VirNodeDeviceGetName(dev unsafe.Pointer) (unsafe.Pointer, error)

VirNodeDeviceGetName calls virNodeDeviceGetName using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceGetParent

func (raw *RawAPI) VirNodeDeviceGetParent(dev unsafe.Pointer) (unsafe.Pointer, error)

VirNodeDeviceGetParent calls virNodeDeviceGetParent using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceGetXMLDesc

func (raw *RawAPI) VirNodeDeviceGetXMLDesc(dev unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirNodeDeviceGetXMLDesc calls virNodeDeviceGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceIsActive

func (raw *RawAPI) VirNodeDeviceIsActive(dev unsafe.Pointer) (int32, error)

VirNodeDeviceIsActive calls virNodeDeviceIsActive using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceIsPersistent

func (raw *RawAPI) VirNodeDeviceIsPersistent(dev unsafe.Pointer) (int32, error)

VirNodeDeviceIsPersistent calls virNodeDeviceIsPersistent using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceListCaps

func (raw *RawAPI) VirNodeDeviceListCaps(dev unsafe.Pointer, names *unsafe.Pointer, maxnames int32) (int32, error)

VirNodeDeviceListCaps calls virNodeDeviceListCaps using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceLookupByName

func (raw *RawAPI) VirNodeDeviceLookupByName(conn unsafe.Pointer, name *byte) (unsafe.Pointer, error)

VirNodeDeviceLookupByName calls virNodeDeviceLookupByName using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceLookupSCSIHostByWWN

func (raw *RawAPI) VirNodeDeviceLookupSCSIHostByWWN(conn unsafe.Pointer, wwnn *byte, wwpn *byte, flags uint32) (unsafe.Pointer, error)

VirNodeDeviceLookupSCSIHostByWWN calls virNodeDeviceLookupSCSIHostByWWN using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceNumOfCaps

func (raw *RawAPI) VirNodeDeviceNumOfCaps(dev unsafe.Pointer) (int32, error)

VirNodeDeviceNumOfCaps calls virNodeDeviceNumOfCaps using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceReAttach

func (raw *RawAPI) VirNodeDeviceReAttach(dev unsafe.Pointer) (int32, error)

VirNodeDeviceReAttach calls virNodeDeviceReAttach using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceRef

func (raw *RawAPI) VirNodeDeviceRef(dev unsafe.Pointer) (int32, error)

VirNodeDeviceRef calls virNodeDeviceRef using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceReset

func (raw *RawAPI) VirNodeDeviceReset(dev unsafe.Pointer) (int32, error)

VirNodeDeviceReset calls virNodeDeviceReset using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceSetAutostart

func (raw *RawAPI) VirNodeDeviceSetAutostart(dev unsafe.Pointer, autostart int32) (int32, error)

VirNodeDeviceSetAutostart calls virNodeDeviceSetAutostart using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceUndefine

func (raw *RawAPI) VirNodeDeviceUndefine(dev unsafe.Pointer, flags uint32) (int32, error)

VirNodeDeviceUndefine calls virNodeDeviceUndefine using its raw C ABI contract.

func (*RawAPI) VirNodeDeviceUpdate

func (raw *RawAPI) VirNodeDeviceUpdate(dev unsafe.Pointer, xmlDesc *byte, flags uint32) (int32, error)

VirNodeDeviceUpdate calls virNodeDeviceUpdate using its raw C ABI contract.

func (*RawAPI) VirNodeGetCPUMap

func (raw *RawAPI) VirNodeGetCPUMap(conn unsafe.Pointer, cpumap *unsafe.Pointer, online *uint32, flags uint32) (int32, error)

VirNodeGetCPUMap calls virNodeGetCPUMap using its raw C ABI contract.

func (*RawAPI) VirNodeGetCPUStats

func (raw *RawAPI) VirNodeGetCPUStats(conn unsafe.Pointer, cpuNum int32, params unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirNodeGetCPUStats calls virNodeGetCPUStats using its raw C ABI contract.

func (*RawAPI) VirNodeGetCellsFreeMemory

func (raw *RawAPI) VirNodeGetCellsFreeMemory(conn unsafe.Pointer, freeMems *uint64, startCell int32, maxCells int32) (int32, error)

VirNodeGetCellsFreeMemory calls virNodeGetCellsFreeMemory using its raw C ABI contract.

func (*RawAPI) VirNodeGetFreeMemory

func (raw *RawAPI) VirNodeGetFreeMemory(conn unsafe.Pointer) (uint64, error)

VirNodeGetFreeMemory calls virNodeGetFreeMemory using its raw C ABI contract.

func (*RawAPI) VirNodeGetFreePages

func (raw *RawAPI) VirNodeGetFreePages(conn unsafe.Pointer, npages uint32, pages *uint32, startCell int32, cellCount uint32, counts *uint64, flags uint32) (int32, error)

VirNodeGetFreePages calls virNodeGetFreePages using its raw C ABI contract.

func (*RawAPI) VirNodeGetInfo

func (raw *RawAPI) VirNodeGetInfo(conn unsafe.Pointer, info unsafe.Pointer) (int32, error)

VirNodeGetInfo calls virNodeGetInfo using its raw C ABI contract.

func (*RawAPI) VirNodeGetMemoryParameters

func (raw *RawAPI) VirNodeGetMemoryParameters(conn unsafe.Pointer, params unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirNodeGetMemoryParameters calls virNodeGetMemoryParameters using its raw C ABI contract.

func (*RawAPI) VirNodeGetMemoryStats

func (raw *RawAPI) VirNodeGetMemoryStats(conn unsafe.Pointer, cellNum int32, params unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirNodeGetMemoryStats calls virNodeGetMemoryStats using its raw C ABI contract.

func (*RawAPI) VirNodeGetSEVInfo

func (raw *RawAPI) VirNodeGetSEVInfo(conn unsafe.Pointer, params *unsafe.Pointer, nparams *int32, flags uint32) (int32, error)

VirNodeGetSEVInfo calls virNodeGetSEVInfo using its raw C ABI contract.

func (*RawAPI) VirNodeGetSecurityModel

func (raw *RawAPI) VirNodeGetSecurityModel(conn unsafe.Pointer, secmodel unsafe.Pointer) (int32, error)

VirNodeGetSecurityModel calls virNodeGetSecurityModel using its raw C ABI contract.

func (*RawAPI) VirNodeListDevices

func (raw *RawAPI) VirNodeListDevices(conn unsafe.Pointer, cap *byte, names *unsafe.Pointer, maxnames int32, flags uint32) (int32, error)

VirNodeListDevices calls virNodeListDevices using its raw C ABI contract.

func (*RawAPI) VirNodeNumOfDevices

func (raw *RawAPI) VirNodeNumOfDevices(conn unsafe.Pointer, cap *byte, flags uint32) (int32, error)

VirNodeNumOfDevices calls virNodeNumOfDevices using its raw C ABI contract.

func (*RawAPI) VirNodeSetMemoryParameters

func (raw *RawAPI) VirNodeSetMemoryParameters(conn unsafe.Pointer, params unsafe.Pointer, nparams int32, flags uint32) (int32, error)

VirNodeSetMemoryParameters calls virNodeSetMemoryParameters using its raw C ABI contract.

func (*RawAPI) VirNodeSuspendForDuration

func (raw *RawAPI) VirNodeSuspendForDuration(conn unsafe.Pointer, target uint32, duration uint64, flags uint32) (int32, error)

VirNodeSuspendForDuration calls virNodeSuspendForDuration using its raw C ABI contract.

func (*RawAPI) VirResetError

func (raw *RawAPI) VirResetError(err unsafe.Pointer) error

VirResetError calls virResetError using its raw C ABI contract.

func (*RawAPI) VirResetLastError

func (raw *RawAPI) VirResetLastError() error

VirResetLastError calls virResetLastError using its raw C ABI contract.

func (*RawAPI) VirSaveLastError

func (raw *RawAPI) VirSaveLastError() (unsafe.Pointer, error)

VirSaveLastError calls virSaveLastError using its raw C ABI contract.

func (*RawAPI) VirSecretDefineXML

func (raw *RawAPI) VirSecretDefineXML(conn unsafe.Pointer, xml *byte, flags uint32) (unsafe.Pointer, error)

VirSecretDefineXML calls virSecretDefineXML using its raw C ABI contract.

func (*RawAPI) VirSecretFree

func (raw *RawAPI) VirSecretFree(secret unsafe.Pointer) (int32, error)

VirSecretFree calls virSecretFree using its raw C ABI contract.

func (*RawAPI) VirSecretGetConnect

func (raw *RawAPI) VirSecretGetConnect(secret unsafe.Pointer) (unsafe.Pointer, error)

VirSecretGetConnect calls virSecretGetConnect using its raw C ABI contract.

func (*RawAPI) VirSecretGetUUID

func (raw *RawAPI) VirSecretGetUUID(secret unsafe.Pointer, uuid *byte) (int32, error)

VirSecretGetUUID calls virSecretGetUUID using its raw C ABI contract.

func (*RawAPI) VirSecretGetUUIDString

func (raw *RawAPI) VirSecretGetUUIDString(secret unsafe.Pointer, buf *byte) (int32, error)

VirSecretGetUUIDString calls virSecretGetUUIDString using its raw C ABI contract.

func (*RawAPI) VirSecretGetUsageID

func (raw *RawAPI) VirSecretGetUsageID(secret unsafe.Pointer) (unsafe.Pointer, error)

VirSecretGetUsageID calls virSecretGetUsageID using its raw C ABI contract.

func (*RawAPI) VirSecretGetUsageType

func (raw *RawAPI) VirSecretGetUsageType(secret unsafe.Pointer) (int32, error)

VirSecretGetUsageType calls virSecretGetUsageType using its raw C ABI contract.

func (*RawAPI) VirSecretGetValue

func (raw *RawAPI) VirSecretGetValue(secret unsafe.Pointer, value_size *uintptr, flags uint32) (unsafe.Pointer, error)

VirSecretGetValue calls virSecretGetValue using its raw C ABI contract.

func (*RawAPI) VirSecretGetXMLDesc

func (raw *RawAPI) VirSecretGetXMLDesc(secret unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirSecretGetXMLDesc calls virSecretGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirSecretLookupByUUID

func (raw *RawAPI) VirSecretLookupByUUID(conn unsafe.Pointer, uuid *byte) (unsafe.Pointer, error)

VirSecretLookupByUUID calls virSecretLookupByUUID using its raw C ABI contract.

func (*RawAPI) VirSecretLookupByUUIDString

func (raw *RawAPI) VirSecretLookupByUUIDString(conn unsafe.Pointer, uuidstr *byte) (unsafe.Pointer, error)

VirSecretLookupByUUIDString calls virSecretLookupByUUIDString using its raw C ABI contract.

func (*RawAPI) VirSecretLookupByUsage

func (raw *RawAPI) VirSecretLookupByUsage(conn unsafe.Pointer, usageType int32, usageID *byte) (unsafe.Pointer, error)

VirSecretLookupByUsage calls virSecretLookupByUsage using its raw C ABI contract.

func (*RawAPI) VirSecretRef

func (raw *RawAPI) VirSecretRef(secret unsafe.Pointer) (int32, error)

VirSecretRef calls virSecretRef using its raw C ABI contract.

func (*RawAPI) VirSecretSetValue

func (raw *RawAPI) VirSecretSetValue(secret unsafe.Pointer, value *byte, value_size uintptr, flags uint32) (int32, error)

VirSecretSetValue calls virSecretSetValue using its raw C ABI contract.

func (*RawAPI) VirSecretUndefine

func (raw *RawAPI) VirSecretUndefine(secret unsafe.Pointer) (int32, error)

VirSecretUndefine calls virSecretUndefine using its raw C ABI contract.

func (*RawAPI) VirSetErrorFunc

func (raw *RawAPI) VirSetErrorFunc(userData unsafe.Pointer, handler uintptr) error

VirSetErrorFunc calls virSetErrorFunc using its raw C ABI contract.

func (*RawAPI) VirStoragePoolBuild

func (raw *RawAPI) VirStoragePoolBuild(pool unsafe.Pointer, flags uint32) (int32, error)

VirStoragePoolBuild calls virStoragePoolBuild using its raw C ABI contract.

func (*RawAPI) VirStoragePoolCreate

func (raw *RawAPI) VirStoragePoolCreate(pool unsafe.Pointer, flags uint32) (int32, error)

VirStoragePoolCreate calls virStoragePoolCreate using its raw C ABI contract.

func (*RawAPI) VirStoragePoolCreateXML

func (raw *RawAPI) VirStoragePoolCreateXML(conn unsafe.Pointer, xmlDesc *byte, flags uint32) (unsafe.Pointer, error)

VirStoragePoolCreateXML calls virStoragePoolCreateXML using its raw C ABI contract.

func (*RawAPI) VirStoragePoolDefineXML

func (raw *RawAPI) VirStoragePoolDefineXML(conn unsafe.Pointer, xml *byte, flags uint32) (unsafe.Pointer, error)

VirStoragePoolDefineXML calls virStoragePoolDefineXML using its raw C ABI contract.

func (*RawAPI) VirStoragePoolDelete

func (raw *RawAPI) VirStoragePoolDelete(pool unsafe.Pointer, flags uint32) (int32, error)

VirStoragePoolDelete calls virStoragePoolDelete using its raw C ABI contract.

func (*RawAPI) VirStoragePoolDestroy

func (raw *RawAPI) VirStoragePoolDestroy(pool unsafe.Pointer) (int32, error)

VirStoragePoolDestroy calls virStoragePoolDestroy using its raw C ABI contract.

func (*RawAPI) VirStoragePoolFree

func (raw *RawAPI) VirStoragePoolFree(pool unsafe.Pointer) (int32, error)

VirStoragePoolFree calls virStoragePoolFree using its raw C ABI contract.

func (*RawAPI) VirStoragePoolGetAutostart

func (raw *RawAPI) VirStoragePoolGetAutostart(pool unsafe.Pointer, autostart *int32) (int32, error)

VirStoragePoolGetAutostart calls virStoragePoolGetAutostart using its raw C ABI contract.

func (*RawAPI) VirStoragePoolGetConnect

func (raw *RawAPI) VirStoragePoolGetConnect(pool unsafe.Pointer) (unsafe.Pointer, error)

VirStoragePoolGetConnect calls virStoragePoolGetConnect using its raw C ABI contract.

func (*RawAPI) VirStoragePoolGetInfo

func (raw *RawAPI) VirStoragePoolGetInfo(pool unsafe.Pointer, info unsafe.Pointer) (int32, error)

VirStoragePoolGetInfo calls virStoragePoolGetInfo using its raw C ABI contract.

func (*RawAPI) VirStoragePoolGetName

func (raw *RawAPI) VirStoragePoolGetName(pool unsafe.Pointer) (unsafe.Pointer, error)

VirStoragePoolGetName calls virStoragePoolGetName using its raw C ABI contract.

func (*RawAPI) VirStoragePoolGetUUID

func (raw *RawAPI) VirStoragePoolGetUUID(pool unsafe.Pointer, uuid *byte) (int32, error)

VirStoragePoolGetUUID calls virStoragePoolGetUUID using its raw C ABI contract.

func (*RawAPI) VirStoragePoolGetUUIDString

func (raw *RawAPI) VirStoragePoolGetUUIDString(pool unsafe.Pointer, buf *byte) (int32, error)

VirStoragePoolGetUUIDString calls virStoragePoolGetUUIDString using its raw C ABI contract.

func (*RawAPI) VirStoragePoolGetXMLDesc

func (raw *RawAPI) VirStoragePoolGetXMLDesc(pool unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirStoragePoolGetXMLDesc calls virStoragePoolGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirStoragePoolIsActive

func (raw *RawAPI) VirStoragePoolIsActive(pool unsafe.Pointer) (int32, error)

VirStoragePoolIsActive calls virStoragePoolIsActive using its raw C ABI contract.

func (*RawAPI) VirStoragePoolIsPersistent

func (raw *RawAPI) VirStoragePoolIsPersistent(pool unsafe.Pointer) (int32, error)

VirStoragePoolIsPersistent calls virStoragePoolIsPersistent using its raw C ABI contract.

func (*RawAPI) VirStoragePoolListAllVolumes

func (raw *RawAPI) VirStoragePoolListAllVolumes(pool unsafe.Pointer, vols *unsafe.Pointer, flags uint32) (int32, error)

VirStoragePoolListAllVolumes calls virStoragePoolListAllVolumes using its raw C ABI contract.

func (*RawAPI) VirStoragePoolListVolumes

func (raw *RawAPI) VirStoragePoolListVolumes(pool unsafe.Pointer, names *unsafe.Pointer, maxnames int32) (int32, error)

VirStoragePoolListVolumes calls virStoragePoolListVolumes using its raw C ABI contract.

func (*RawAPI) VirStoragePoolLookupByName

func (raw *RawAPI) VirStoragePoolLookupByName(conn unsafe.Pointer, name *byte) (unsafe.Pointer, error)

VirStoragePoolLookupByName calls virStoragePoolLookupByName using its raw C ABI contract.

func (*RawAPI) VirStoragePoolLookupByTargetPath

func (raw *RawAPI) VirStoragePoolLookupByTargetPath(conn unsafe.Pointer, path *byte) (unsafe.Pointer, error)

VirStoragePoolLookupByTargetPath calls virStoragePoolLookupByTargetPath using its raw C ABI contract.

func (*RawAPI) VirStoragePoolLookupByUUID

func (raw *RawAPI) VirStoragePoolLookupByUUID(conn unsafe.Pointer, uuid *byte) (unsafe.Pointer, error)

VirStoragePoolLookupByUUID calls virStoragePoolLookupByUUID using its raw C ABI contract.

func (*RawAPI) VirStoragePoolLookupByUUIDString

func (raw *RawAPI) VirStoragePoolLookupByUUIDString(conn unsafe.Pointer, uuidstr *byte) (unsafe.Pointer, error)

VirStoragePoolLookupByUUIDString calls virStoragePoolLookupByUUIDString using its raw C ABI contract.

func (*RawAPI) VirStoragePoolLookupByVolume

func (raw *RawAPI) VirStoragePoolLookupByVolume(vol unsafe.Pointer) (unsafe.Pointer, error)

VirStoragePoolLookupByVolume calls virStoragePoolLookupByVolume using its raw C ABI contract.

func (*RawAPI) VirStoragePoolNumOfVolumes

func (raw *RawAPI) VirStoragePoolNumOfVolumes(pool unsafe.Pointer) (int32, error)

VirStoragePoolNumOfVolumes calls virStoragePoolNumOfVolumes using its raw C ABI contract.

func (*RawAPI) VirStoragePoolRef

func (raw *RawAPI) VirStoragePoolRef(pool unsafe.Pointer) (int32, error)

VirStoragePoolRef calls virStoragePoolRef using its raw C ABI contract.

func (*RawAPI) VirStoragePoolRefresh

func (raw *RawAPI) VirStoragePoolRefresh(pool unsafe.Pointer, flags uint32) (int32, error)

VirStoragePoolRefresh calls virStoragePoolRefresh using its raw C ABI contract.

func (*RawAPI) VirStoragePoolSetAutostart

func (raw *RawAPI) VirStoragePoolSetAutostart(pool unsafe.Pointer, autostart int32) (int32, error)

VirStoragePoolSetAutostart calls virStoragePoolSetAutostart using its raw C ABI contract.

func (*RawAPI) VirStoragePoolUndefine

func (raw *RawAPI) VirStoragePoolUndefine(pool unsafe.Pointer) (int32, error)

VirStoragePoolUndefine calls virStoragePoolUndefine using its raw C ABI contract.

func (*RawAPI) VirStorageVolCreateXML

func (raw *RawAPI) VirStorageVolCreateXML(pool unsafe.Pointer, xmlDesc *byte, flags uint32) (unsafe.Pointer, error)

VirStorageVolCreateXML calls virStorageVolCreateXML using its raw C ABI contract.

func (*RawAPI) VirStorageVolCreateXMLFrom

func (raw *RawAPI) VirStorageVolCreateXMLFrom(pool unsafe.Pointer, xmlDesc *byte, clonevol unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirStorageVolCreateXMLFrom calls virStorageVolCreateXMLFrom using its raw C ABI contract.

func (*RawAPI) VirStorageVolDelete

func (raw *RawAPI) VirStorageVolDelete(vol unsafe.Pointer, flags uint32) (int32, error)

VirStorageVolDelete calls virStorageVolDelete using its raw C ABI contract.

func (*RawAPI) VirStorageVolDownload

func (raw *RawAPI) VirStorageVolDownload(vol unsafe.Pointer, stream unsafe.Pointer, offset uint64, length uint64, flags uint32) (int32, error)

VirStorageVolDownload calls virStorageVolDownload using its raw C ABI contract.

func (*RawAPI) VirStorageVolFree

func (raw *RawAPI) VirStorageVolFree(vol unsafe.Pointer) (int32, error)

VirStorageVolFree calls virStorageVolFree using its raw C ABI contract.

func (*RawAPI) VirStorageVolGetConnect

func (raw *RawAPI) VirStorageVolGetConnect(vol unsafe.Pointer) (unsafe.Pointer, error)

VirStorageVolGetConnect calls virStorageVolGetConnect using its raw C ABI contract.

func (*RawAPI) VirStorageVolGetInfo

func (raw *RawAPI) VirStorageVolGetInfo(vol unsafe.Pointer, info unsafe.Pointer) (int32, error)

VirStorageVolGetInfo calls virStorageVolGetInfo using its raw C ABI contract.

func (*RawAPI) VirStorageVolGetInfoFlags

func (raw *RawAPI) VirStorageVolGetInfoFlags(vol unsafe.Pointer, info unsafe.Pointer, flags uint32) (int32, error)

VirStorageVolGetInfoFlags calls virStorageVolGetInfoFlags using its raw C ABI contract.

func (*RawAPI) VirStorageVolGetKey

func (raw *RawAPI) VirStorageVolGetKey(vol unsafe.Pointer) (unsafe.Pointer, error)

VirStorageVolGetKey calls virStorageVolGetKey using its raw C ABI contract.

func (*RawAPI) VirStorageVolGetName

func (raw *RawAPI) VirStorageVolGetName(vol unsafe.Pointer) (unsafe.Pointer, error)

VirStorageVolGetName calls virStorageVolGetName using its raw C ABI contract.

func (*RawAPI) VirStorageVolGetPath

func (raw *RawAPI) VirStorageVolGetPath(vol unsafe.Pointer) (unsafe.Pointer, error)

VirStorageVolGetPath calls virStorageVolGetPath using its raw C ABI contract.

func (*RawAPI) VirStorageVolGetXMLDesc

func (raw *RawAPI) VirStorageVolGetXMLDesc(vol unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirStorageVolGetXMLDesc calls virStorageVolGetXMLDesc using its raw C ABI contract.

func (*RawAPI) VirStorageVolLookupByKey

func (raw *RawAPI) VirStorageVolLookupByKey(conn unsafe.Pointer, key *byte) (unsafe.Pointer, error)

VirStorageVolLookupByKey calls virStorageVolLookupByKey using its raw C ABI contract.

func (*RawAPI) VirStorageVolLookupByName

func (raw *RawAPI) VirStorageVolLookupByName(pool unsafe.Pointer, name *byte) (unsafe.Pointer, error)

VirStorageVolLookupByName calls virStorageVolLookupByName using its raw C ABI contract.

func (*RawAPI) VirStorageVolLookupByPath

func (raw *RawAPI) VirStorageVolLookupByPath(conn unsafe.Pointer, path *byte) (unsafe.Pointer, error)

VirStorageVolLookupByPath calls virStorageVolLookupByPath using its raw C ABI contract.

func (*RawAPI) VirStorageVolRef

func (raw *RawAPI) VirStorageVolRef(vol unsafe.Pointer) (int32, error)

VirStorageVolRef calls virStorageVolRef using its raw C ABI contract.

func (*RawAPI) VirStorageVolResize

func (raw *RawAPI) VirStorageVolResize(vol unsafe.Pointer, capacity uint64, flags uint32) (int32, error)

VirStorageVolResize calls virStorageVolResize using its raw C ABI contract.

func (*RawAPI) VirStorageVolUpload

func (raw *RawAPI) VirStorageVolUpload(vol unsafe.Pointer, stream unsafe.Pointer, offset uint64, length uint64, flags uint32) (int32, error)

VirStorageVolUpload calls virStorageVolUpload using its raw C ABI contract.

func (*RawAPI) VirStorageVolWipe

func (raw *RawAPI) VirStorageVolWipe(vol unsafe.Pointer, flags uint32) (int32, error)

VirStorageVolWipe calls virStorageVolWipe using its raw C ABI contract.

func (*RawAPI) VirStorageVolWipePattern

func (raw *RawAPI) VirStorageVolWipePattern(vol unsafe.Pointer, algorithm uint32, flags uint32) (int32, error)

VirStorageVolWipePattern calls virStorageVolWipePattern using its raw C ABI contract.

func (*RawAPI) VirStreamAbort

func (raw *RawAPI) VirStreamAbort(stream unsafe.Pointer) (int32, error)

VirStreamAbort calls virStreamAbort using its raw C ABI contract.

func (*RawAPI) VirStreamEventAddCallback

func (raw *RawAPI) VirStreamEventAddCallback(stream unsafe.Pointer, events int32, cb uintptr, opaque unsafe.Pointer, ff uintptr) (int32, error)

VirStreamEventAddCallback calls virStreamEventAddCallback using its raw C ABI contract.

func (*RawAPI) VirStreamEventRemoveCallback

func (raw *RawAPI) VirStreamEventRemoveCallback(stream unsafe.Pointer) (int32, error)

VirStreamEventRemoveCallback calls virStreamEventRemoveCallback using its raw C ABI contract.

func (*RawAPI) VirStreamEventUpdateCallback

func (raw *RawAPI) VirStreamEventUpdateCallback(stream unsafe.Pointer, events int32) (int32, error)

VirStreamEventUpdateCallback calls virStreamEventUpdateCallback using its raw C ABI contract.

func (*RawAPI) VirStreamFinish

func (raw *RawAPI) VirStreamFinish(stream unsafe.Pointer) (int32, error)

VirStreamFinish calls virStreamFinish using its raw C ABI contract.

func (*RawAPI) VirStreamFree

func (raw *RawAPI) VirStreamFree(stream unsafe.Pointer) (int32, error)

VirStreamFree calls virStreamFree using its raw C ABI contract.

func (*RawAPI) VirStreamNew

func (raw *RawAPI) VirStreamNew(conn unsafe.Pointer, flags uint32) (unsafe.Pointer, error)

VirStreamNew calls virStreamNew using its raw C ABI contract.

func (*RawAPI) VirStreamRecv

func (raw *RawAPI) VirStreamRecv(stream unsafe.Pointer, data *byte, nbytes uintptr) (int32, error)

VirStreamRecv calls virStreamRecv using its raw C ABI contract.

func (*RawAPI) VirStreamRecvAll

func (raw *RawAPI) VirStreamRecvAll(stream unsafe.Pointer, handler uintptr, opaque unsafe.Pointer) (int32, error)

VirStreamRecvAll calls virStreamRecvAll using its raw C ABI contract.

func (*RawAPI) VirStreamRecvFlags

func (raw *RawAPI) VirStreamRecvFlags(stream unsafe.Pointer, data *byte, nbytes uintptr, flags uint32) (int32, error)

VirStreamRecvFlags calls virStreamRecvFlags using its raw C ABI contract.

func (*RawAPI) VirStreamRecvHole

func (raw *RawAPI) VirStreamRecvHole(stream unsafe.Pointer, length *int64, flags uint32) (int32, error)

VirStreamRecvHole calls virStreamRecvHole using its raw C ABI contract.

func (*RawAPI) VirStreamRef

func (raw *RawAPI) VirStreamRef(stream unsafe.Pointer) (int32, error)

VirStreamRef calls virStreamRef using its raw C ABI contract.

func (*RawAPI) VirStreamSend

func (raw *RawAPI) VirStreamSend(stream unsafe.Pointer, data *byte, nbytes uintptr) (int32, error)

VirStreamSend calls virStreamSend using its raw C ABI contract.

func (*RawAPI) VirStreamSendAll

func (raw *RawAPI) VirStreamSendAll(stream unsafe.Pointer, handler uintptr, opaque unsafe.Pointer) (int32, error)

VirStreamSendAll calls virStreamSendAll using its raw C ABI contract.

func (*RawAPI) VirStreamSendHole

func (raw *RawAPI) VirStreamSendHole(stream unsafe.Pointer, length int64, flags uint32) (int32, error)

VirStreamSendHole calls virStreamSendHole using its raw C ABI contract.

func (*RawAPI) VirStreamSparseRecvAll

func (raw *RawAPI) VirStreamSparseRecvAll(stream unsafe.Pointer, handler uintptr, holeHandler uintptr, opaque unsafe.Pointer) (int32, error)

VirStreamSparseRecvAll calls virStreamSparseRecvAll using its raw C ABI contract.

func (*RawAPI) VirStreamSparseSendAll

func (raw *RawAPI) VirStreamSparseSendAll(stream unsafe.Pointer, handler uintptr, holeHandler uintptr, skipHandler uintptr, opaque unsafe.Pointer) (int32, error)

VirStreamSparseSendAll calls virStreamSparseSendAll using its raw C ABI contract.

func (*RawAPI) VirTypedParamsAddBoolean

func (raw *RawAPI) VirTypedParamsAddBoolean(params *unsafe.Pointer, nparams *int32, maxparams *int32, name *byte, value int32) (int32, error)

VirTypedParamsAddBoolean calls virTypedParamsAddBoolean using its raw C ABI contract.

func (*RawAPI) VirTypedParamsAddDouble

func (raw *RawAPI) VirTypedParamsAddDouble(params *unsafe.Pointer, nparams *int32, maxparams *int32, name *byte, value float64) (int32, error)

VirTypedParamsAddDouble calls virTypedParamsAddDouble using its raw C ABI contract.

func (*RawAPI) VirTypedParamsAddFromString

func (raw *RawAPI) VirTypedParamsAddFromString(params *unsafe.Pointer, nparams *int32, maxparams *int32, name *byte, type_ int32, value *byte) (int32, error)

VirTypedParamsAddFromString calls virTypedParamsAddFromString using its raw C ABI contract.

func (*RawAPI) VirTypedParamsAddInt

func (raw *RawAPI) VirTypedParamsAddInt(params *unsafe.Pointer, nparams *int32, maxparams *int32, name *byte, value int32) (int32, error)

VirTypedParamsAddInt calls virTypedParamsAddInt using its raw C ABI contract.

func (*RawAPI) VirTypedParamsAddLLong

func (raw *RawAPI) VirTypedParamsAddLLong(params *unsafe.Pointer, nparams *int32, maxparams *int32, name *byte, value int64) (int32, error)

VirTypedParamsAddLLong calls virTypedParamsAddLLong using its raw C ABI contract.

func (*RawAPI) VirTypedParamsAddString

func (raw *RawAPI) VirTypedParamsAddString(params *unsafe.Pointer, nparams *int32, maxparams *int32, name *byte, value *byte) (int32, error)

VirTypedParamsAddString calls virTypedParamsAddString using its raw C ABI contract.

func (*RawAPI) VirTypedParamsAddStringList

func (raw *RawAPI) VirTypedParamsAddStringList(params *unsafe.Pointer, nparams *int32, maxparams *int32, name *byte, values *unsafe.Pointer) (int32, error)

VirTypedParamsAddStringList calls virTypedParamsAddStringList using its raw C ABI contract.

func (*RawAPI) VirTypedParamsAddUInt

func (raw *RawAPI) VirTypedParamsAddUInt(params *unsafe.Pointer, nparams *int32, maxparams *int32, name *byte, value uint32) (int32, error)

VirTypedParamsAddUInt calls virTypedParamsAddUInt using its raw C ABI contract.

func (*RawAPI) VirTypedParamsAddULLong

func (raw *RawAPI) VirTypedParamsAddULLong(params *unsafe.Pointer, nparams *int32, maxparams *int32, name *byte, value uint64) (int32, error)

VirTypedParamsAddULLong calls virTypedParamsAddULLong using its raw C ABI contract.

func (*RawAPI) VirTypedParamsClear

func (raw *RawAPI) VirTypedParamsClear(params unsafe.Pointer, nparams int32) error

VirTypedParamsClear calls virTypedParamsClear using its raw C ABI contract.

func (*RawAPI) VirTypedParamsFree

func (raw *RawAPI) VirTypedParamsFree(params unsafe.Pointer, nparams int32) error

VirTypedParamsFree calls virTypedParamsFree using its raw C ABI contract.

func (*RawAPI) VirTypedParamsGet

func (raw *RawAPI) VirTypedParamsGet(params unsafe.Pointer, nparams int32, name *byte) (unsafe.Pointer, error)

VirTypedParamsGet calls virTypedParamsGet using its raw C ABI contract.

func (*RawAPI) VirTypedParamsGetBoolean

func (raw *RawAPI) VirTypedParamsGetBoolean(params unsafe.Pointer, nparams int32, name *byte, value *int32) (int32, error)

VirTypedParamsGetBoolean calls virTypedParamsGetBoolean using its raw C ABI contract.

func (*RawAPI) VirTypedParamsGetDouble

func (raw *RawAPI) VirTypedParamsGetDouble(params unsafe.Pointer, nparams int32, name *byte, value *float64) (int32, error)

VirTypedParamsGetDouble calls virTypedParamsGetDouble using its raw C ABI contract.

func (*RawAPI) VirTypedParamsGetInt

func (raw *RawAPI) VirTypedParamsGetInt(params unsafe.Pointer, nparams int32, name *byte, value *int32) (int32, error)

VirTypedParamsGetInt calls virTypedParamsGetInt using its raw C ABI contract.

func (*RawAPI) VirTypedParamsGetLLong

func (raw *RawAPI) VirTypedParamsGetLLong(params unsafe.Pointer, nparams int32, name *byte, value *int64) (int32, error)

VirTypedParamsGetLLong calls virTypedParamsGetLLong using its raw C ABI contract.

func (*RawAPI) VirTypedParamsGetString

func (raw *RawAPI) VirTypedParamsGetString(params unsafe.Pointer, nparams int32, name *byte, value *unsafe.Pointer) (int32, error)

VirTypedParamsGetString calls virTypedParamsGetString using its raw C ABI contract.

func (*RawAPI) VirTypedParamsGetUInt

func (raw *RawAPI) VirTypedParamsGetUInt(params unsafe.Pointer, nparams int32, name *byte, value *uint32) (int32, error)

VirTypedParamsGetUInt calls virTypedParamsGetUInt using its raw C ABI contract.

func (*RawAPI) VirTypedParamsGetULLong

func (raw *RawAPI) VirTypedParamsGetULLong(params unsafe.Pointer, nparams int32, name *byte, value *uint64) (int32, error)

VirTypedParamsGetULLong calls virTypedParamsGetULLong using its raw C ABI contract.

type Secret

type Secret struct {
	// contains filtered or unexported fields
}

Secret is a reference-counted libvirt secret handle.

func (*Secret) Free

func (secret *Secret) Free() error

Free releases this wrapper's secret reference.

func (*Secret) GetUUIDString

func (secret *Secret) GetUUIDString() (string, error)

GetUUIDString returns the canonical secret UUID.

func (*Secret) GetValue

func (secret *Secret) GetValue(flags uint32) ([]byte, error)

GetValue copies the secret value into Go memory.

func (*Secret) GetXMLDesc

func (secret *Secret) GetXMLDesc(flags uint32) (string, error)

GetXMLDesc returns secret metadata XML. It does not return the secret value.

func (*Secret) SetValue

func (secret *Secret) SetValue(value []byte, flags uint32) error

SetValue replaces the secret value.

func (*Secret) Undefine

func (secret *Secret) Undefine() error

Undefine removes the secret metadata and value.

type StoragePool

type StoragePool struct {
	// contains filtered or unexported fields
}

StoragePool is a reference-counted libvirt storage pool handle.

func (*StoragePool) Create

func (pool *StoragePool) Create(flags uint32) error

Create starts an inactive storage pool.

func (*StoragePool) CreateVolumeXML

func (pool *StoragePool) CreateVolumeXML(xml string, flags uint32) (*StorageVol, error)

CreateVolumeXML creates a storage volume.

func (*StoragePool) Destroy

func (pool *StoragePool) Destroy() error

Destroy stops an active storage pool.

func (*StoragePool) Free

func (pool *StoragePool) Free() error

Free releases this wrapper's storage-pool reference.

func (*StoragePool) GetAutostart

func (pool *StoragePool) GetAutostart() (bool, error)

GetAutostart reports whether the storage pool starts automatically.

func (*StoragePool) GetName

func (pool *StoragePool) GetName() (string, error)

GetName returns the pool name.

func (*StoragePool) GetUUIDString

func (pool *StoragePool) GetUUIDString() (string, error)

GetUUIDString returns the canonical pool UUID.

func (*StoragePool) GetXMLDesc

func (pool *StoragePool) GetXMLDesc(flags uint32) (string, error)

GetXMLDesc returns the pool XML.

func (*StoragePool) IsActive

func (pool *StoragePool) IsActive() (bool, error)

IsActive reports whether the storage pool is active.

func (*StoragePool) IsPersistent

func (pool *StoragePool) IsPersistent() (bool, error)

IsPersistent reports whether the pool has persistent configuration.

func (*StoragePool) ListAllVolumes

func (pool *StoragePool) ListAllVolumes(flags uint32) ([]*StorageVol, error)

ListAllVolumes returns volumes in this pool. Each handle must be freed.

func (*StoragePool) LookupVolumeByName

func (pool *StoragePool) LookupVolumeByName(name string) (*StorageVol, error)

LookupVolumeByName returns a referenced volume in this pool.

func (*StoragePool) Refresh

func (pool *StoragePool) Refresh(flags uint32) error

Refresh refreshes the storage pool's volume list.

func (*StoragePool) SetAutostart

func (pool *StoragePool) SetAutostart(autostart bool) error

SetAutostart changes whether the storage pool starts automatically.

func (*StoragePool) Undefine

func (pool *StoragePool) Undefine() error

Undefine removes a persistent storage-pool definition.

type StorageVol

type StorageVol struct {
	// contains filtered or unexported fields
}

StorageVol is a reference-counted libvirt storage volume handle.

func (*StorageVol) Delete

func (volume *StorageVol) Delete(flags uint32) error

Delete removes the storage volume.

func (*StorageVol) Download

func (volume *StorageVol) Download(stream *Stream, offset, length uint64, flags uint32) error

Download starts downloading this volume into stream.

func (*StorageVol) Free

func (volume *StorageVol) Free() error

Free releases this wrapper's storage-volume reference.

func (*StorageVol) GetKey

func (volume *StorageVol) GetKey() (string, error)

GetKey returns the volume key.

func (*StorageVol) GetName

func (volume *StorageVol) GetName() (string, error)

GetName returns the volume name.

func (*StorageVol) GetPath

func (volume *StorageVol) GetPath() (string, error)

GetPath returns the volume path.

func (*StorageVol) GetXMLDesc

func (volume *StorageVol) GetXMLDesc(flags uint32) (string, error)

GetXMLDesc returns the volume XML.

func (*StorageVol) Resize

func (volume *StorageVol) Resize(capacity uint64, flags uint32) error

Resize changes the storage volume capacity.

func (*StorageVol) Upload

func (volume *StorageVol) Upload(stream *Stream, offset, length uint64, flags uint32) error

Upload starts uploading stream data into this volume.

func (*StorageVol) Wipe

func (volume *StorageVol) Wipe(flags uint32) error

Wipe securely erases the storage volume according to flags.

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

Stream is a reference-counted libvirt data stream.

func (*Stream) Abort

func (stream *Stream) Abort() error

Abort aborts stream I/O.

func (*Stream) Finish

func (stream *Stream) Finish() error

Finish indicates successful completion of stream I/O.

func (*Stream) Free

func (stream *Stream) Free() error

Free releases this wrapper's stream reference.

func (*Stream) Read

func (stream *Stream) Read(data []byte) (int, error)

Read receives bytes from the stream. A zero-byte native result maps to io.EOF.

func (*Stream) RecvHole

func (stream *Stream) RecvHole(flags uint32) (int64, error)

RecvHole receives the next sparse-stream hole length.

func (*Stream) Ref

func (stream *Stream) Ref() (*Stream, error)

Ref adds a stream reference and returns an independently freeable wrapper.

func (*Stream) SendHole

func (stream *Stream) SendHole(length int64, flags uint32) error

SendHole sends a sparse-stream hole.

func (*Stream) Write

func (stream *Stream) Write(data []byte) (int, error)

Write sends bytes to the stream.

type SymbolUnavailableError

type SymbolUnavailableError struct {
	Symbol string
	Since  string
}

SymbolUnavailableError describes a function absent from the loaded libvirt.

func (*SymbolUnavailableError) Error

func (e *SymbolUnavailableError) Error() string

func (*SymbolUnavailableError) Unwrap

func (e *SymbolUnavailableError) Unwrap() error

type TypedParameter

type TypedParameter struct {
	Field string
	Type  TypedParameterType
	Value any
}

TypedParameter is an ownership-safe Go representation of virTypedParameter. Value is one of int32, uint32, int64, uint64, float64, bool, or string.

type TypedParameterType

type TypedParameterType int32

TypedParameterType identifies the value stored in a TypedParameter.

type Version

type Version struct {
	Major   uint32
	Minor   uint32
	Release uint32
}

Version is a decoded libvirt version number.

func DecodeVersion

func DecodeVersion(raw uint64) Version

DecodeVersion decodes libvirt's major*1,000,000 + minor*1,000 + release format.

func (Version) Number

func (v Version) Number() uint64

Number returns the version in libvirt's integer representation.

func (Version) String

func (v Version) String() string

Directories

Path Synopsis
cmd
libvirt-api-gen command
examples
list-domains command
internal
generator
Package generator implements libvirt API XML to Go source generation.
Package generator implements libvirt API XML to Go source generation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL