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 <alexis.lagoutte@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
Alexis La Goutte 2017-01-15 19:46:58 +01:00
parent 024cf942c6
commit b8ae1b1492
1 changed files with 38 additions and 25 deletions

View File

@ -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:
*/