libvirt/src
Daniel P. Berrange ea7dc33786 Make internal domain events struct definitions private
The virtual box driver was directly accesing the domain events
structs instead of using the APIs provided. To prevent this kind
of abuse, make the struct definitions private, forcing use of the
internal APIs. This requires adding one extra internal API.

* src/conf/domain_event.h, src/conf/domain_event.c: Move
  virDomainEventCallback and virDomainEvent structs into
  the source file instead of header
* src/vbox/vbox_tmpl.c: Use official APIs for dispatching domain
  events instead of accessing structs directly.
2010-03-26 13:52:09 +00:00
..
conf Make internal domain events struct definitions private 2010-03-26 13:52:09 +00:00
cpu Add entry point logging for cpu functions 2010-03-25 14:51:52 +01:00
esx Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
interface build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
lxc Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
network build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
node_device maint: make Red Hat copyright notices consistent 2010-03-18 16:48:05 +01:00
opennebula Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
openvz Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
phyp Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
qemu Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
remote Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
secret build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
security security: selinux: Fix crash when releasing non-existent label 2010-03-22 10:45:36 -04:00
storage Simplified version of volume wiping based on feedback from the list. 2010-03-19 14:43:40 -04:00
test Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
uml Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
util esx: Make the conf parser compare names case insensitive in VMX mode 2010-03-24 21:03:37 +01:00
vbox Make internal domain events struct definitions private 2010-03-26 13:52:09 +00:00
xen Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
xenapi Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
.gitignore Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
datatypes.c build: consistently use C99 varargs macros 2010-03-08 13:32:27 +01:00
datatypes.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
driver.c build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
driver.h Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
gnutls_1_0_compat.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
internal.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01: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 Remove interfaceRegister from libvirt_private.syms 2010-03-23 02:06:07 +01:00
libvirt_public.syms Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
libvirt.c Introduce a new public API for domain events 2010-03-26 13:52:03 +00:00
Makefile.am build: suppress distracting build output 2010-03-24 09:45:24 +01:00
nodeinfo.c Fix syntax-check errors 2010-03-15 15:10:27 +01: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