libvirt/src
Jiri Denemark 070da02fb5 Introduce virCheckFlags for consistent flags checking
The idea is that every API implementation in driver which has flags
parameter should first call virCheckFlags() macro to check the function
was called with supported flags:

    virCheckFlags(VIR_SUPPORTED_FLAG_1 |
                  VIR_SUPPORTED_FLAG_2 |
                  VIR_ANOTHER_SUPPORTED_FLAG, -1);

The error massage which is printed when unsupported flags are passed
looks like:

    invalid argument in virFooBar: unsupported flags (0x2)

Where the unsupported flags part only prints those flags which were
passed but are not supported rather than all flags passed.
2010-04-16 14:05:50 +02:00
..
conf Fix close_used_without_including_unistd_h error 2010-04-15 01:41:00 +02:00
cpu Fix CPU comparison for x86 arch 2010-04-07 21:33:04 +02:00
esx esx: Replace scanf with STRSKIP and strtok_r 2010-04-15 19:52:38 +02:00
interface Implement forgotten backend of virInterfaceIsActive() 2010-04-14 10:38:18 -04:00
lxc Fix up comments for isEncrypted, isSecure, domainIsActive, 2010-04-06 09:51:24 -04:00
network build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
node_device Remove unnecessary trailing \n in log messages 2010-04-06 01:41:58 +02:00
nwfilter nwfilter: Clear all state tracking from a drop rule 2010-04-16 07:34:36 -04:00
opennebula Fix up comments for isEncrypted, isSecure, domainIsActive, 2010-04-06 09:51:24 -04:00
openvz openvzGetProcessInfo: address clang-detected low-probability flaw 2010-04-14 16:20:44 +02:00
phyp phyp: Remove virConnectPtr from PHYP_ERROR 2010-04-06 19:48:51 +02:00
qemu Fix CDROM media change for QEMU when using -device syntax 2010-04-15 18:09:42 +01:00
remote remote: react to failures on wakeupFD 2010-04-15 11:40:08 -06:00
secret build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
security Improve virt-aa-helper to handle SDL graphics and cleanups 2010-04-06 23:01:23 +02:00
storage virStorageBackendFileSystemMount: prefer strdup over virAsprintf 2010-04-14 17:17:54 +02:00
test Undoing 2nd application of the patch... 2010-04-09 10:05:59 -04:00
uml Fix up comments for isEncrypted, isSecure, domainIsActive, 2010-04-06 09:51:24 -04:00
util util: ensure safe{read,write,zero} return is checked 2010-04-15 11:40:08 -06:00
vbox vbox: Mark all error messages for translation 2010-04-06 19:02:58 +02:00
xen xend_internal.c: assure clang that we do not dereference NULL 2010-04-14 20:10:19 +02:00
xenapi Snapshot API framework. 2010-04-05 10:24:34 -04:00
.gitignore Generate libvirt.def from libvirt.syms 2010-04-08 20:12:09 +02:00
datatypes.c Remove virConnectPtr from virLibConnError 2010-04-06 02:01:51 +02:00
datatypes.h Snapshot API framework. 2010-04-05 10:24:34 -04:00
driver.c Remote driver & daemon impl of new event API 2010-03-26 13:52:29 +00:00
driver.h Snapshot API framework. 2010-04-05 10:24:34 -04:00
gnutls_1_0_compat.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
internal.h Introduce virCheckFlags for consistent flags checking 2010-04-16 14:05:50 +02:00
libvirt_bridge.syms Support networking in UML driver 2009-06-03 11:13:33 +00:00
libvirt_daemon.syms Export conditional state driver symbols only when they are defined 2010-03-23 02:05:18 +01:00
libvirt_driver_modules.syms Move --with-driver-modules symbols into a separate sym file 2009-01-05 14:06:41 +00:00
libvirt_internal.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
libvirt_linux.syms migrate linux-specific symbol names into their own sym file 2009-01-05 14:08:26 +00:00
libvirt_macvtap.syms macvtap teardown rework 2010-02-18 15:13:48 +01:00
libvirt_private.syms Consolidate interface related functions in interface.c 2010-04-13 10:57:11 -04:00
libvirt_public.syms Release of libvirt-0.8.0 2010-04-12 19:39:20 +02:00
libvirt.c Fix apibuild.py warnings about missing ':' 2010-04-15 01:00:46 +02:00
Makefile.am esx: Add nwfilter driver stub 2010-04-15 19:52:38 +02:00
nodeinfo.c Fix compiler warning about unused conn parameter 2010-04-06 11:47:28 +02:00
nodeinfo.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
README Add a README file to src/ explaining the directory structure 2009-09-21 14:41:47 +01:00

       libvirt library code README
       ===========================

The directory provides the bulk of the libvirt codebase. Everything
except for the libvirtd daemon and client tools. The build uses a
large number of libtool convenience libraries - one for each child
directory, and then links them together for the final libvirt.so,
although some bits get linked directly to libvirtd daemon instead.

The files directly in this directory are supporting the public API
entry points & data structures.

There are two core shared modules to be aware of:

 * util/  - a collection of shared APIs that can be used by any
            code. This directory is always in the include path
            for all things built

 * conf/  - APIs for parsing / manipulating all the official XML
            files used by the public API. This directory is only
            in the include path for driver implementation modules


Then there are the hypervisor implementations:

 * esx/          - VMware ESX and GSX support using vSphere API over SOAP
 * lxc/          - Linux Native Containers
 * opennebula/   - Open Nebula using XMLRPC
 * openvz/       - OpenVZ containers using cli tools
 * phyp/         - IBM Power Hypervisor using CLI tools over SSH
 * qemu/         - QEMU / KVM using qemu CLI/monitor
 * remote/       - Generic libvirt native RPC client
 * test/         - A "mock" driver for testing
 * uml/          - User Mode Linux
 * vbox/         - Virtual Box using native API
 * xen/          - Xen using hypercalls, XenD SEXPR & XenStore


Finally some secondary drivers that are shared for several HVs.
Currently these are used by LXC, OpenVZ, QEMU, UML and Xen drivers.
The ESX, OpenNebula, Power Hypervisor, Remote, Test & VirtualBox
drivers all implement the secondary drivers directly

 * interface/    - Host network interface management
 * network/      - Virtual NAT networking
 * node_device/  - Host device enumeration
 * secret/       - Secret management
 * security/     - Mandatory access control drivers
 * storage/      - Storage management drivers


Since both the hypervisor and secondary drivers can be built as
dlopen()able modules, it is *FORBIDDEN* to have build dependencies
between these directories. Drivers are only allowed to depend on
the public API, and the internal APIs in the util/ and conf/
directories