diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2010-10-30 16:00:30 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2010-10-30 16:00:30 +0000 |
commit | e17b9ccec18b9efaacb370ff715c19b09f1b4ea0 (patch) | |
tree | 96ced51f0ba70bc067960c979a5243c43d4a52d7 /epan/packet.h | |
parent | b94da93586f8af151aea9ef60e2d409761371a5a (diff) |
Rev 29427 added packet_add_new_data_source() with a comment indicating that
the data source does not need to be allocated if (!tree).
Rev 30158 took the if (!tree) check out indicating that the check was invalid.
So: (since packet_add_new_data_source() now only calls add_new_data_source()),
remove packet_add_new_data_source().
svn path=/trunk/; revision=34717
Diffstat (limited to 'epan/packet.h')
-rw-r--r-- | epan/packet.h | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/epan/packet.h b/epan/packet.h index 5aa87dee59..092741cf3c 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -192,7 +192,7 @@ extern gboolean dissector_try_port(dissector_table_t sub_dissectors, /* Look for a given value in a given uint dissector table and, if found, call the dissector with the arguments supplied, and return TRUE, otherwise return FALSE. */ -extern gboolean dissector_try_port_new(dissector_table_t sub_dissectors, +extern gboolean dissector_try_port_new(dissector_table_t sub_dissectors, const guint32 port, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, const gboolean add_proto_name); /* Look for a given value in a given uint dissector table and, if found, @@ -307,14 +307,14 @@ extern dissector_handle_t new_create_dissector_handle(new_dissector_t dissector, * @param tvb The buffer to dissect. * @param pinfo Packet Info. * @param tree The protocol tree. - * @return If the protocol for that handle isn't enabled call the data - * dissector. Otherwise, if the handle refers to a new-style - * dissector, call the dissector and return its return value, otherwise call + * @return If the protocol for that handle isn't enabled call the data + * dissector. Otherwise, if the handle refers to a new-style + * dissector, call the dissector and return its return value, otherwise call * it and return the length of the tvbuff pointed to by the argument. */ extern int call_dissector(dissector_handle_t handle, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree); - + /* Call a dissector through a handle but if no dissector was found * just return 0 and do not call the "data" dissector instead. * @@ -323,8 +323,8 @@ extern int call_dissector(dissector_handle_t handle, tvbuff_t *tvb, * @param pinfo Packet Info. * @param tree The protocol tree. * @return If the protocol for that handle isn't enabled, return 0 without - * calling the dissector. Otherwise, if the handle refers to a new-style - * dissector, call the dissector and return its return value, otherwise call + * calling the dissector. Otherwise, if the handle refers to a new-style + * dissector, call the dissector and return its return value, otherwise call * it and return the length of the tvbuff pointed to by the argument. */ extern int call_dissector_only(dissector_handle_t handle, tvbuff_t *tvb, @@ -377,22 +377,11 @@ extern void final_registration_all_protocols(void); /* - * DEPRECATED: Use packet_add_new_data_source() instead. - */ -extern void -add_new_data_source(packet_info *pinfo, tvbuff_t *tvb, const char *name); - -/* * Add a new data source to the list of data sources for a frame, given * the tvbuff for the data source and its name. - * - * @param tree The protocol tree. - * @param pinfo Packet Info. - * @param tvb The buffer to store. - * @param name The name of the data source */ -extern void -packet_add_new_data_source(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, const char *name); +extern void add_new_data_source(packet_info *pinfo, tvbuff_t *tvb, + const char *name); /* * Return the data source name. |