/* Saves state on header data for a given stream.  */
static spdy_header_info_t* spdy_save_header_block(packet_info *pinfo _U_, guint32 stream_id, guint16 frame_type, guint8 *header, guint length)
/* Saves state on header data for a given stream.  */
static spdy_header_info_t* spdy_save_header_block(packet_info *pinfo _U_, guint32 stream_id, guint16 frame_type, guint8 *header, guint length)
{
  spdy_header_info_t *header_info;
  if (header_info_list == NULL)
    header_info_list = wmem_list_new(wmem_file_scope());
  header_info = wmem_new(wmem_file_scope(), spdy_header_info_t);
  header_info->stream_id = stream_id;
  header_info->header_block = header;
  header_info->header_block_len = length;
  header_info->frame_type = frame_type;
  wmem_list_append(header_info_list, header_info);
  return header_info;
}