diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-01-28 21:52:57 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-01-28 21:52:57 +0000 |
commit | 0e1613fbe598912370b0b57b0fec0e8bbc33a04a (patch) | |
tree | d9f7c69a0c0818a539cd0a3ff9d6e7768a5f13fb /epan/dissectors/packet-rtps2.c | |
parent | 3c11319ea43806d417003c7b2fd825e6b3759c67 (diff) |
Minor changes mostly related to proto_register & proto_reg_handoff;
- Use 'dissector standard template format'
- Remove 'once-only' ["if (!initialized) ..."] if not req'd
- Misc
Also: adjust some indentation
svn path=/trunk/; revision=27324
Diffstat (limited to 'epan/dissectors/packet-rtps2.c')
-rw-r--r-- | epan/dissectors/packet-rtps2.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/epan/dissectors/packet-rtps2.c b/epan/dissectors/packet-rtps2.c index f0fa12c9ec..56b8f549e1 100644 --- a/epan/dissectors/packet-rtps2.c +++ b/epan/dissectors/packet-rtps2.c @@ -830,13 +830,6 @@ static gboolean dissect_rtps(tvbuff_t *, packet_info *, proto_tree *); /* static gboolean glob_do_something = TRUE; */ static guint rtps_max_batch_samples_dissected = 16; -static void reinit_rtps(void) { - /* Do something here when global arguments are changed */ -} - - - - /* *********************************************************************** */ /* Appends a submessage description to the info summary text @@ -9250,22 +9243,13 @@ void proto_register_rtps2(void) { proto_register_subtree_array(ett, array_length(ett)); /* Registers the control in the preference panel */ - rtps_module = prefs_register_protocol(proto_rtps, reinit_rtps); -/* - prefs_register_bool_preference(rtps_module, "do_something", - "Do somethinig short description", - "Do something long and very exhaustive description " - "that can go on and on and on and on... ", - &glob_do_something); -*/ + rtps_module = prefs_register_protocol(proto_rtps, NULL); prefs_register_uint_preference(rtps_module, "max_batch_samples_dissected", "Max samples dissected for DATA_BATCH", "Specifies the maximum number of samples dissected in " "a DATA_BATCH submessage. Increasing this value may affect " "performances if the trace has a lot of big batched samples.", 10, &rtps_max_batch_samples_dissected); - - } void proto_reg_handoff_rtps2(void) { |