diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-06-22 04:58:08 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-06-22 04:58:08 +0000 |
commit | f8c959dc8c4e46f733dbd4dcc954e6fa3304b248 (patch) | |
tree | 1ac2ca9d8478f5fd796c6bf17654b0899faa99f2 /plugins/opcua/opcua_application_layer.c | |
parent | 135ca5136ff5a9d79341228ca9e325ccba733214 (diff) |
From Kovarththanan Rajaratnam:
Move header field info declarations into function scope.
This is the first step. Another patch will be submitted which actually scrubs
the header field info declarations (remove empty blurbs, etc.)
svn path=/trunk/; revision=28797
Diffstat (limited to 'plugins/opcua/opcua_application_layer.c')
-rw-r--r-- | plugins/opcua/opcua_application_layer.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/opcua/opcua_application_layer.c b/plugins/opcua/opcua_application_layer.c index ae3193c803..08609e519c 100644 --- a/plugins/opcua/opcua_application_layer.c +++ b/plugins/opcua/opcua_application_layer.c @@ -49,23 +49,23 @@ static int hf_opcua_nodeid_encodingmask = -1; static int hf_opcua_app_nsid = -1; static int hf_opcua_app_numeric = -1; -/** header field definitions */ -static hf_register_info hf[] = -{ - { &hf_opcua_nodeid_encodingmask, - { "NodeId EncodingMask", "application.nodeid.encodingmask", FT_UINT8, BASE_HEX, VALS(g_nodeidmasks), 0x0, "", HFILL } - }, - { &hf_opcua_app_nsid, - { "NodeId EncodingMask", "application.nodeid.nsid", FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL } - }, - { &hf_opcua_app_numeric, - { "NodeId Identifier Numeric", "application.nodeid.numeric", FT_UINT32, BASE_DEC, VALS(g_requesttypes), 0x0, "", HFILL } - } -}; - /** Register application layer types. */ void registerApplicationLayerTypes(int proto) { + /** header field definitions */ + static hf_register_info hf[] = + { + { &hf_opcua_nodeid_encodingmask, + { "NodeId EncodingMask", "application.nodeid.encodingmask", FT_UINT8, BASE_HEX, VALS(g_nodeidmasks), 0x0, "", HFILL } + }, + { &hf_opcua_app_nsid, + { "NodeId EncodingMask", "application.nodeid.nsid", FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL } + }, + { &hf_opcua_app_numeric, + { "NodeId Identifier Numeric", "application.nodeid.numeric", FT_UINT32, BASE_DEC, VALS(g_requesttypes), 0x0, "", HFILL } + } + }; + proto_register_field_array(proto, hf, array_length(hf)); } |