diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-01-31 16:34:39 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-01-31 16:34:39 +0000 |
commit | cf3b8d958cd16ced7cdf5674406482efade3db29 (patch) | |
tree | cf739889c4f37ea96fd4de63fdcc98f2a603d7e9 /tools/libxl/libxl_json.c | |
parent | 8137e3ea1a0ea66181680b9bc4f1865c0edb81b5 (diff) | |
download | xen-cf3b8d958cd16ced7cdf5674406482efade3db29.tar.gz xen-cf3b8d958cd16ced7cdf5674406482efade3db29.tar.bz2 xen-cf3b8d958cd16ced7cdf5674406482efade3db29.zip |
libxl: drop libxl_cpuarray -- topology was the only user.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_json.c')
-rw-r--r-- | tools/libxl/libxl_json.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c index 345894b000..d5e970d20f 100644 --- a/tools/libxl/libxl_json.c +++ b/tools/libxl/libxl_json.c @@ -246,27 +246,6 @@ out: return s; } -yajl_gen_status libxl_cpuarray_gen_json(yajl_gen hand, - libxl_cpuarray *cpuarray) -{ - yajl_gen_status s; - int i; - - s = yajl_gen_array_open(hand); - if (s != yajl_gen_status_ok) goto out; - - for(i=0; i<cpuarray->entries; i++) { - if (cpuarray->array[i] == LIBXL_CPUARRAY_INVALID_ENTRY) - s = yajl_gen_null(hand); - else - s = yajl_gen_integer(hand, cpuarray->array[i]); - if (s != yajl_gen_status_ok) goto out; - } - s = yajl_gen_array_close(hand); -out: - return s; -} - yajl_gen_status libxl_file_reference_gen_json(yajl_gen hand, libxl_file_reference *p) { |