aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxlutil.h
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@amd.com>2010-09-21 16:41:09 +0100
committerAndre Przywara <andre.przywara@amd.com>2010-09-21 16:41:09 +0100
commit88ac54776934daa7f57ec06f94c3d5306027220f (patch)
tree3971ee4a5e5cb3c6192a34e65c70be1ed2d90ba5 /tools/libxl/libxlutil.h
parente1d00a45e0f526c7ba98eba7f400987645f18a86 (diff)
downloadxen-88ac54776934daa7f57ec06f94c3d5306027220f.tar.gz
xen-88ac54776934daa7f57ec06f94c3d5306027220f.tar.bz2
xen-88ac54776934daa7f57ec06f94c3d5306027220f.zip
libxl: change xl_cfg_get_list to take a dont_warn parameter
xl_cfg_get_list can cope with the option not being a list, but it always reports a warning in this case. Introduce a parameter to omit this warning if needed. Future code can then decide what to do with this information. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxlutil.h')
-rw-r--r--tools/libxl/libxlutil.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxl/libxlutil.h b/tools/libxl/libxlutil.h
index 6c992a2c0f..8a6fcbd803 100644
--- a/tools/libxl/libxlutil.h
+++ b/tools/libxl/libxlutil.h
@@ -51,7 +51,8 @@ int xlu_cfg_get_long(const XLU_Config*, const char *n, long *value_r);
int xlu_cfg_get_list(const XLU_Config*, const char *n,
XLU_ConfigList **list_r /* may be 0 */,
- int *entries_r /* may be 0 */);
+ int *entries_r /* may be 0 */,
+ int dont_warn);
/* there is no need to free *list_r; lifetime is that of the XLU_Config */
const char *xlu_cfg_get_listitem(const XLU_ConfigList*, int entry);
/* xlu_cfg_get_listitem cannot fail, except that if entry is