/* Adds a data chunk to a given SPDY conversation/stream.  */
static void spdy_add_data_chunk(spdy_conv_t *conv_data, guint32 stream_id, guint32 frame, guint8 *data, guint32 length)
/* Adds a data chunk to a given SPDY conversation/stream.  */
static void spdy_add_data_chunk(spdy_conv_t *conv_data, guint32 stream_id, guint32 frame, guint8 *data, guint32 length)
{
  spdy_stream_info_t *si = spdy_get_stream_info(conv_data, stream_id);
  if (si != NULL) {
    spdy_data_frame_t *df = (spdy_data_frame_t *)wmem_new(wmem_file_scope(), spdy_data_frame_t);
    df->data = data;
    df->length = length;
    df->framenum = frame;
    wmem_list_append(si->data_frames, df);
    ++si->num_data_frames;
  }
}