static void rtps_util_topic_info_add_tree(proto_tree *tree, tvbuff_t *tvb,
  gint offset, endpoint_guid * guid) {
  if (enable_topic_info) {
    proto_tree * topic_info_tree;
    proto_item * ti;
    type_mapping * type_mapping_object = rtps_util_get_topic_info(guid);
    if (type_mapping_object != NULL) {
      topic_info_tree = proto_tree_add_subtree(tree, tvb, offset, 0,
                ett_rtps_topic_info, NULL, "[Topic Information (from Discovery)]");
      ti = proto_tree_add_string(topic_info_tree, hf_rtps_param_topic_name, tvb, offset, 0,
                type_mapping_object->topic_name);
      proto_item_set_generated(ti);
      ti = proto_tree_add_string(topic_info_tree, hf_rtps_param_type_name, tvb, offset, 0,
                type_mapping_object->type_name);
      proto_item_set_generated(ti);
      ti = proto_tree_add_uint(topic_info_tree, hf_rtps_dcps_publication_data_frame_number,
          tvb, 0, 0, type_mapping_object->dcps_publication_frame_number);
      proto_item_set_generated(ti);
    }
  }
}
static void rtps_util_topic_info_add_tree(proto_tree *tree, tvbuff_t *tvb,
  gint offset, endpoint_guid * guid) {
  if (enable_topic_info) {
    proto_tree * topic_info_tree;
    proto_item * ti;
    type_mapping * type_mapping_object = rtps_util_get_topic_info(guid);
    if (type_mapping_object != NULL) {
      topic_info_tree = proto_tree_add_subtree(tree, tvb, offset, 0,
                ett_rtps_topic_info, NULL, "[Topic Information (from Discovery)]");
      ti = proto_tree_add_string(topic_info_tree, hf_rtps_param_topic_name, tvb, offset, 0,
                type_mapping_object->topic_name);
      proto_item_set_generated(ti);
      ti = proto_tree_add_string(topic_info_tree, hf_rtps_param_type_name, tvb, offset, 0,
                type_mapping_object->type_name);
      proto_item_set_generated(ti);
      ti = proto_tree_add_uint(topic_info_tree, hf_rtps_dcps_publication_data_frame_number,
          tvb, 0, 0, type_mapping_object->dcps_publication_frame_number);
      proto_item_set_generated(ti);
    }
  }
}