]> xenbits.xensource.com Git - libvirt.git/commit
conf: make 'vnet' prefix a macro
authorEric Blake <eblake@redhat.com>
Fri, 29 Jul 2011 15:36:17 +0000 (09:36 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 29 Jul 2011 22:08:54 +0000 (16:08 -0600)
commitdd20328fbbc359d1773fdaa5d462222127b7348a
tree9dd2aeaf3154275a1dbee26c61cb09ba29aadf1f
parent513122ae93be9e21fd809a100580ce6fbb4e0ba5
conf: make 'vnet' prefix a macro

Using a macro ensures that all the code is looking for the same
prefix.

* src/conf/domain_conf.h (VIR_NET_GENERATED_PREFIX): New macro.
* src/conf/domain_conf.c (virDomainNetDefParseXML): Use it.
* src/uml/uml_conf.c (umlConnectTapDevice): Likewise.
* src/qemu/qemu_command.c (qemuNetworkIfaceConnect): Likewise.
Suggested by Laine Stump.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
src/uml/uml_conf.c