/* Find a dissector by name and add parent protocol as a depedency  */
dissector_handle_t find_dissector_add_dependency(const char *name, const int parent_proto)
/* Find a dissector by name and add parent protocol as a depedency  */
dissector_handle_t find_dissector_add_dependency(const char *name, const int parent_proto)
{
	dissector_handle_t handle = (dissector_handle_t)g_hash_table_lookup(registered_dissectors, name);
	if ((handle != NULL) && (parent_proto > 0))
	{
		register_depend_dissector(proto_get_protocol_short_name(find_protocol_by_id(parent_proto)), dissector_handle_get_short_name(handle));
	}
	return handle;
}