/* Note that using G_DATA_STREAM_NEWLINE_TYPE_ANY is slightly unsafe. If a read chunk ends in "CR" we must read an additional byte to know if this is "CR" or "CR LF", and this might block if there is no more data available.  */
void g_data_input_stream_set_newline_type(GDataInputStream *stream, GDataStreamNewlineType type)
/* Note that using G_DATA_STREAM_NEWLINE_TYPE_ANY is slightly unsafe. If a read chunk ends in "CR" we must read an additional byte to know if this is "CR" or "CR LF", and this might block if there is no more data available.  */
void g_data_input_stream_set_newline_type(GDataInputStream *stream, GDataStreamNewlineType type)
{
  GDataInputStreamPrivate *priv;
  g_return_if_fail (G_IS_DATA_INPUT_STREAM (stream));
  priv = stream->priv;
  if (priv->newline_type != type)
    {
      priv->newline_type = type;
      g_object_notify (G_OBJECT (stream), "newline-type");
    }
}