[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] libxl: clean up namespace violation
commit c7857abd916c3dbc75c13443eb28f44437eb1f57 Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Wed Jul 9 10:45:25 2014 +0100 Commit: Ian Campbell <ian.campbell@xxxxxxxxxx> CommitDate: Thu Jul 10 13:06:55 2014 +0100 libxl: clean up namespace violation In 752f181f ("libxl_json: introduce parser functions for builtin types") a bunch of parser functions were introduced. Unfortunately they polluted the public namespace with a prefix "libxl_", while they should be internal functions. This patch changes the prefix to "libxl__". No functional change introduced. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- tools/libxl/libxl_cpuid.c | 6 +++--- tools/libxl/libxl_internal.h | 40 ++++++++++++++++++++-------------------- tools/libxl/libxl_json.c | 30 +++++++++++++++--------------- tools/libxl/libxl_nocpuid.c | 6 +++--- 4 files changed, 41 insertions(+), 41 deletions(-) diff --git a/tools/libxl/libxl_cpuid.c b/tools/libxl/libxl_cpuid.c index 1706357..7f66678 100644 --- a/tools/libxl/libxl_cpuid.c +++ b/tools/libxl/libxl_cpuid.c @@ -403,9 +403,9 @@ out: return s; } -int libxl_cpuid_policy_list_parse_json(libxl__gc *gc, - const libxl__json_object *o, - libxl_cpuid_policy_list *p) +int libxl__cpuid_policy_list_parse_json(libxl__gc *gc, + const libxl__json_object *o, + libxl_cpuid_policy_list *p) { int i, size; libxl_cpuid_policy_list l; diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 7750dc5..07a3bdf 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -3153,28 +3153,28 @@ static inline int libxl__defbool_is_default(libxl_defbool *db) */ #define CTYPE(isfoo,c) (isfoo((unsigned char)(c))) -int libxl_defbool_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_defbool *p); +int libxl__defbool_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_defbool *p); int libxl__bool_parse_json(libxl__gc *gc, const libxl__json_object *o, bool *p); -int libxl_mac_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_mac *p); -int libxl_bitmap_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_bitmap *p); -int libxl_uuid_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_uuid *p); -int libxl_cpuid_policy_list_parse_json(libxl__gc *gc, - const libxl__json_object *o, - libxl_cpuid_policy_list *p); -int libxl_string_list_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_string_list *p); -int libxl_key_value_list_parse_json(libxl__gc *gc, - const libxl__json_object *o, - libxl_key_value_list *p); -int libxl_hwcap_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_hwcap *p); -int libxl_ms_vm_genid_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_ms_vm_genid *p); +int libxl__mac_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_mac *p); +int libxl__bitmap_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_bitmap *p); +int libxl__uuid_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_uuid *p); +int libxl__cpuid_policy_list_parse_json(libxl__gc *gc, + const libxl__json_object *o, + libxl_cpuid_policy_list *p); +int libxl__string_list_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_string_list *p); +int libxl__key_value_list_parse_json(libxl__gc *gc, + const libxl__json_object *o, + libxl_key_value_list *p); +int libxl__hwcap_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_hwcap *p); +int libxl__ms_vm_genid_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_ms_vm_genid *p); int libxl__int_parse_json(libxl__gc *gc, const libxl__json_object *o, void *p); int libxl__uint8_parse_json(libxl__gc *gc, const libxl__json_object *o, diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c index 63125dc..ceb014a 100644 --- a/tools/libxl/libxl_json.c +++ b/tools/libxl/libxl_json.c @@ -100,8 +100,8 @@ yajl_gen_status libxl_defbool_gen_json(yajl_gen hand, return libxl__yajl_gen_asciiz(hand, libxl_defbool_to_string(*db)); } -int libxl_defbool_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_defbool *p) +int libxl__defbool_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_defbool *p) { const char *s; @@ -144,8 +144,8 @@ yajl_gen_status libxl_uuid_gen_json(yajl_gen hand, return yajl_gen_string(hand, (const unsigned char *)buf, LIBXL_UUID_FMTLEN); } -int libxl_uuid_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_uuid *p) +int libxl__uuid_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_uuid *p) { if (!libxl__json_object_is_string(o)) return ERROR_FAIL; @@ -173,7 +173,7 @@ out: return s; } -int libxl_bitmap_parse_json(libxl__gc *gc, const libxl__json_object *o, +int libxl__bitmap_parse_json(libxl__gc *gc, const libxl__json_object *o, libxl_bitmap *p) { int i; @@ -234,8 +234,8 @@ out: return s; } -int libxl_key_value_list_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_key_value_list *p) +int libxl__key_value_list_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_key_value_list *p) { libxl__json_map_node *node = NULL; flexarray_t *maps = NULL; @@ -290,8 +290,8 @@ out: return s; } -int libxl_string_list_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_string_list *p) +int libxl__string_list_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_string_list *p) { const libxl__json_object *t; libxl_string_list l; @@ -329,8 +329,8 @@ yajl_gen_status libxl_mac_gen_json(yajl_gen hand, libxl_mac *mac) return yajl_gen_string(hand, (const unsigned char *)buf, LIBXL_MAC_FMTLEN); } -int libxl_mac_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_mac *p) +int libxl__mac_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_mac *p) { if (!libxl__json_object_is_string(o)) return ERROR_FAIL; @@ -356,8 +356,8 @@ out: return s; } -int libxl_hwcap_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_hwcap *p) +int libxl__hwcap_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_hwcap *p) { int i; @@ -395,8 +395,8 @@ yajl_gen_status libxl_ms_vm_genid_gen_json(yajl_gen hand, libxl_ms_vm_genid *p) return yajl_gen_array_close(hand); } -int libxl_ms_vm_genid_parse_json(libxl__gc *gc, const libxl__json_object *o, - libxl_ms_vm_genid *p) +int libxl__ms_vm_genid_parse_json(libxl__gc *gc, const libxl__json_object *o, + libxl_ms_vm_genid *p) { unsigned int i; diff --git a/tools/libxl/libxl_nocpuid.c b/tools/libxl/libxl_nocpuid.c index 96e6e2e..bab8911 100644 --- a/tools/libxl/libxl_nocpuid.c +++ b/tools/libxl/libxl_nocpuid.c @@ -49,9 +49,9 @@ yajl_gen_status libxl_cpuid_policy_list_gen_json(yajl_gen hand, return 0; } -int libxl_cpuid_policy_list_parse_json(libxl__gc *gc, - const libxl__json_object *o, - libxl_cpuid_policy_list *p) +int libxl__cpuid_policy_list_parse_json(libxl__gc *gc, + const libxl__json_object *o, + libxl_cpuid_policy_list *p) { return 0; } -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |