aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxlutil.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-11-29 14:17:27 +0000
committerIan Campbell <ian.campbell@citrix.com>2011-11-29 14:17:27 +0000
commit0fe30a0519d073c88da3d94387b6190134eec5c7 (patch)
tree985174b45b04217ca5ff3f8285e930181835f133 /tools/libxl/libxlutil.h
parent984848264bd4f1674cde10829f9966265373fe24 (diff)
downloadxen-0fe30a0519d073c88da3d94387b6190134eec5c7.tar.gz
xen-0fe30a0519d073c88da3d94387b6190134eec5c7.tar.bz2
xen-0fe30a0519d073c88da3d94387b6190134eec5c7.zip
libxlu: add xlu_cfg_get_list_as_string_list
Returns a cfg list as a libxl_string_list. Use this to simplify the parsing of device model extra args. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com> Acked-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxl/libxlutil.h')
-rw-r--r--tools/libxl/libxlutil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxl/libxlutil.h b/tools/libxl/libxlutil.h
index f0fbb757c2..edb3264ce6 100644
--- a/tools/libxl/libxlutil.h
+++ b/tools/libxl/libxlutil.h
@@ -58,6 +58,8 @@ int xlu_cfg_get_list(const XLU_Config*, const char *n,
int *entries_r /* may be 0 */,
int dont_warn);
/* there is no need to free *list_r; lifetime is that of the XLU_Config */
+int xlu_cfg_get_list_as_string_list(const XLU_Config *cfg, const char *n,
+ libxl_string_list *sl, int dont_warn);
const char *xlu_cfg_get_listitem(const XLU_ConfigList*, int entry);
/* xlu_cfg_get_listitem cannot fail, except that if entry is
* out of range it returns 0 (not setting errno) */