From b8ae1b14926af6a0177b4b7764ff33e52b5f14a5 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Sun, 15 Jan 2017 19:46:58 +0100 Subject: [PATCH] xml(.h): fix indent (use spaces) and modelines use same indent like packet-xml.c Change-Id: I687b0306ba1d3559ce4a299a0e66c55e3f04fdfd Reviewed-on: https://code.wireshark.org/review/19641 Petri-Dish: Alexis La Goutte Reviewed-by: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte --- epan/dissectors/packet-xml.h | 63 ++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 25 deletions(-) diff --git a/epan/dissectors/packet-xml.h b/epan/dissectors/packet-xml.h index 9b384ac760..d0c5487e15 100644 --- a/epan/dissectors/packet-xml.h +++ b/epan/dissectors/packet-xml.h @@ -26,21 +26,21 @@ typedef struct _xml_ns_t { /* the name of this namespace */ - gchar* name; + gchar* name; /* its fully qualified name */ - const gchar* fqn; + const gchar* fqn; - /* the contents of the whole element from <> to */ - int hf_tag; + /* the contents of the whole element from <> to */ + int hf_tag; - /* chunks of cdata from <> to excluding sub tags */ - int hf_cdata; + /* chunks of cdata from <> to excluding sub tags */ + int hf_cdata; /* the subtree for its sub items */ - gint ett; + gint ett; - GHashTable* attributes; + GHashTable* attributes; /* key: the attribute name value: hf_id of what's between quotes */ @@ -49,7 +49,7 @@ typedef struct _xml_ns_t { /* key: the element name value: the child namespace */ - GPtrArray* element_names; + GPtrArray* element_names; /* imported directly from the parser and used while building the namespace */ } xml_ns_t; @@ -62,22 +62,22 @@ typedef struct _xml_ns_t { #define XML_FRAME_CDATA 5 typedef struct _xml_frame_t { - int type; - struct _xml_frame_t* parent; - struct _xml_frame_t* first_child; - struct _xml_frame_t* last_child; - struct _xml_frame_t* prev_sibling; - struct _xml_frame_t* next_sibling; - const gchar *name; - const gchar *name_orig_case; - tvbuff_t *value; - proto_tree* tree; - proto_item* item; - proto_item* last_item; - xml_ns_t* ns; - int start_offset; - int length; - packet_info* pinfo; + int type; + struct _xml_frame_t* parent; + struct _xml_frame_t* first_child; + struct _xml_frame_t* last_child; + struct _xml_frame_t* prev_sibling; + struct _xml_frame_t* next_sibling; + const gchar *name; + const gchar *name_orig_case; + tvbuff_t *value; + proto_tree* tree; + proto_item* item; + proto_item* last_item; + xml_ns_t* ns; + int start_offset; + int length; + packet_info* pinfo; } xml_frame_t; WS_DLL_PUBLIC @@ -88,3 +88,16 @@ WS_DLL_PUBLIC xml_frame_t *xml_get_cdata(xml_frame_t *frame); #endif /* __PACKET_XML_H__ */ + +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 4 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * vi: set shiftwidth=4 tabstop=8 expandtab: + * :indentSize=4:tabSize=8:noTabs=true: + */