|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [RFC XEN PATCH v4 17/41] tools/xl: expose parse_ulong()
Signed-off-by: Haozhong Zhang <haozhong.zhang@xxxxxxxxx>
---
Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Cc: Wei Liu <wei.liu2@xxxxxxxxxx>
---
tools/xl/xl_parse.c | 2 +-
tools/xl/xl_parse.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c
index 81a50f2edb..993b754c0a 100644
--- a/tools/xl/xl_parse.c
+++ b/tools/xl/xl_parse.c
@@ -382,7 +382,7 @@ static void parse_vcpu_affinity(libxl_domain_build_info
*b_info,
}
}
-static unsigned long parse_ulong(const char *str)
+unsigned long parse_ulong(const char *str)
{
char *endptr;
unsigned long val;
diff --git a/tools/xl/xl_parse.h b/tools/xl/xl_parse.h
index cc459fb43f..1a4f12b0f3 100644
--- a/tools/xl/xl_parse.h
+++ b/tools/xl/xl_parse.h
@@ -21,6 +21,7 @@ void parse_config_data(const char *config_source,
const char *config_data,
int config_len,
libxl_domain_config *d_config);
+unsigned long parse_ulong(const char *str);
int parse_range(const char *str, unsigned long *a, unsigned long *b);
int64_t parse_mem_size_kb(const char *mem);
void parse_disk_config(XLU_Config **config, const char *spec,
--
2.15.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |