libvirt/src/conf
Laine Stump ef79fb5b5f conf: add <listen> subelement to domain <graphics> element
Once it's plugged in, the <listen> element will be an optional
replacement for the "listen" attribute that graphics elements already
have. If the <listen> element is type='address', it will have an
attribute called 'address' which will contain an IP address or dns
name that the guest's display server should listen on. If, however,
type='network', the <listen> element should have an attribute called
'network' that will be set to the name of a network configuration to
get the IP address from.

* docs/schemas/domain.rng: updated to allow the <listen> element

* docs/formatdomain.html.in: document the <listen> element and its
  attributes.

* src/conf/domain_conf.[hc]:

  1) The domain parser, formatter, and data structure are modified to
     support 0 or more <listen> subelements to each <graphics>
     element. The old style "legacy" listen attribute is also still
     accepted, and will be stored internally just as if it were a
     separate <listen> element. On output (i.e. format), the address
     attribute of the first <listen> element of type 'address' will be
     duplicated in the legacy "listen" attribute of the <graphic>
     element.

  2) The "listenAddr" attribute has been removed from the unions in
     virDomainGRaphicsDef for graphics types vnc, rdp, and spice.
     This attribute is now in the <listen> subelement (aka
     virDomainGraphicsListenDef)

  3) Helper functions were written to provide simple access
     (both Get and Set) to the listen elements and their attributes.

* src/libvirt_private.syms: export the listen helper functions

* src/qemu/qemu_command.c, src/qemu/qemu_hotplug.c,
  src/qemu/qemu_migration.c, src/vbox/vbox_tmpl.c,
  src/vmx/vmx.c, src/xenxs/xen_sxpr.c, src/xenxs/xen_xm.c

  Modify all these files to use the listen helper functions rather
  than directly referencing the (now missing) listenAddr
  attribute. There can be multiple <listen> elements to a single
  <graphics>, but the drivers all currently only support one, so all
  replacements of direct access with a helper function indicate index
  "0".

* tests/* - only 3 of these are new files added explicitly to test the
  new <listen> element. All the others have been modified to reflect
  the fact that any legacy "listen" attributes passed in to the domain
  parse will be saved in a <listen> element (i.e. one of the
  virDomainGraphicsListenDefs), and during the domain format function,
  both the <listen> element as well as the legacy attributes will be
  output.
2011-07-28 13:46:39 -04:00
..
capabilities.c maint: rename virBufferVSprintf to virBufferAsprintf 2011-05-05 13:47:40 -06:00
capabilities.h domain: Require <init> for container guests 2011-05-13 10:32:53 -04:00
cpu_conf.c conf: prefer unsigned flags 2011-07-13 17:05:10 -06:00
cpu_conf.h conf: prefer unsigned flags 2011-07-13 17:05:10 -06:00
domain_audit.c Add virtualization type in audit messages 2011-07-12 17:05:30 +01:00
domain_audit.h Add auditing of filesystems 2011-07-12 17:05:30 +01:00
domain_conf.c conf: add <listen> subelement to domain <graphics> element 2011-07-28 13:46:39 -04:00
domain_conf.h conf: add <listen> subelement to domain <graphics> element 2011-07-28 13:46:39 -04:00
domain_event.c Asynchronous event for BlockJob completion 2011-07-22 13:57:42 +08:00
domain_event.h Asynchronous event for BlockJob completion 2011-07-22 13:57:42 +08:00
domain_nwfilter.c nwfilter: fix loadable module support 2010-06-21 14:18:31 -04:00
domain_nwfilter.h nwfilter: fix loadable module support 2010-06-21 14:18:31 -04:00
interface_conf.c interface: implement a test driver for network config transaction API. 2011-05-27 14:34:13 -04:00
interface_conf.h interface: implement a test driver for network config transaction API. 2011-05-27 14:34:13 -04:00
network_conf.c bandwidth: Integrate bandwidth into portgroups 2011-07-27 10:26:25 +02:00
network_conf.h bandwidth: Integrate bandwidth into portgroups 2011-07-27 10:26:25 +02:00
node_device_conf.c xml: Make sure virXpathNodeSet always sets an error 2011-05-13 10:32:52 -04:00
node_device_conf.h node_device: avoid implicit int 2011-07-13 17:05:10 -06:00
nwfilter_conf.c build: rename files.h to virfile.h 2011-07-21 10:34:51 -06:00
nwfilter_conf.h nwfilter: enable filtering of gratuitous ARP packets 2011-05-23 19:41:18 -04:00
nwfilter_params.c maint: rename virBufferVSprintf to virBufferAsprintf 2011-05-05 13:47:40 -06:00
nwfilter_params.h This patch removes the virConnectPtr parameter from all functions where it's not necessary starting out with removing it as a parameter to the error reporting function. 2010-04-05 12:34:55 -04:00
secret_conf.c maint: rename virBufferVSprintf to virBufferAsprintf 2011-05-05 13:47:40 -06:00
secret_conf.h Remove virConnectPtr from virRaiseErrorFull 2011-04-17 07:22:23 +02:00
storage_conf.c build: rename files.h to virfile.h 2011-07-21 10:34:51 -06:00
storage_conf.h Remove virConnectPtr from virRaiseErrorFull 2011-04-17 07:22:23 +02:00
storage_encryption_conf.c build: rename files.h to virfile.h 2011-07-21 10:34:51 -06:00
storage_encryption_conf.h Put <stdbool.h> into internal.h so it is available everywhere 2011-02-24 12:04:06 +00:00