Rename new_register_per_oid_dissector to register_per_oid_dissector.

There's no "old" register_per_oid_dissector, so the new_ is redundant.

Change-Id: Iaf85a0bec120c5171d68ca4b12b6724a77df8305
Reviewed-on: https://code.wireshark.org/review/13274
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2016-01-13 17:22:29 -08:00
parent ab784d60b3
commit 59ef817871
2 changed files with 3 additions and 3 deletions

View File

@ -2521,7 +2521,7 @@ dissect_per_external_type(tvbuff_t *tvb _U_, guint32 offset, asn1_ctx_t *actx, p
}
/*
* Calls the callback defined with new_register_per_oid_dissector() if found.
* Calls the callback defined with register_per_oid_dissector() if found.
* Offset is in bits.
*/
@ -2551,7 +2551,7 @@ call_per_oid_callback(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_
}
void
new_register_per_oid_dissector(const char *oid, dissector_t dissector, int proto, const char *name)
register_per_oid_dissector(const char *oid, dissector_t dissector, int proto, const char *name)
{
dissector_handle_t dissector_handle;

View File

@ -129,6 +129,6 @@ extern gboolean get_size_constraint_from_stack(asn1_ctx_t *actx, const gchar *na
extern guint32 dissect_per_length_determinant(tvbuff_t *tvb, guint32 offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index, guint32 *length);
WS_DLL_PUBLIC int call_per_oid_callback(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, asn1_ctx_t *actx, int hf_index);
WS_DLL_PUBLIC void new_register_per_oid_dissector(const char *oid, dissector_t dissector, int proto, const char *name);
WS_DLL_PUBLIC void register_per_oid_dissector(const char *oid, dissector_t dissector, int proto, const char *name);
#endif /* __PACKET_PER_H__ */