diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-07-26 10:35:31 +0100 |
---|---|---|
committer | Roger Pau Monne <roger.pau@citrix.com> | 2012-07-26 10:35:31 +0100 |
commit | 3218894319e722ac1593dda25a0e8962d6bc25da (patch) | |
tree | 4d66969e250959f78dea83638cc084dc6287bd36 /tools/libxl/libxl_json.c | |
parent | b1ec741ea12eb599ce055e408b5d15fa7c7c8ea1 (diff) | |
download | xen-3218894319e722ac1593dda25a0e8962d6bc25da.tar.gz xen-3218894319e722ac1593dda25a0e8962d6bc25da.tar.bz2 xen-3218894319e722ac1593dda25a0e8962d6bc25da.zip |
libxl: rename vifs to nics
This change renames functions and struct values that used to contain
vifs in their names to nics, that provides a more clear name to
define network interfaces without referring to the backend that is
behind them.
This is not a functional change.
Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_json.c')
-rw-r--r-- | tools/libxl/libxl_json.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c index e870606db5..caa831234e 100644 --- a/tools/libxl/libxl_json.c +++ b/tools/libxl/libxl_json.c @@ -822,15 +822,15 @@ yajl_gen_status libxl_domain_config_gen_json(yajl_gen hand, if (s != yajl_gen_status_ok) goto out; - s = yajl_gen_string(hand, (const unsigned char *)"vifs", - sizeof("vifs")-1); + s = yajl_gen_string(hand, (const unsigned char *)"nics", + sizeof("nics")-1); if (s != yajl_gen_status_ok) goto out; s = yajl_gen_array_open(hand); if (s != yajl_gen_status_ok) goto out; - for (i = 0; i < p->num_vifs; i++) { - s = libxl_device_nic_gen_json(hand, &p->vifs[i]); + for (i = 0; i < p->num_nics; i++) { + s = libxl_device_nic_gen_json(hand, &p->nics[i]); if (s != yajl_gen_status_ok) goto out; } |