Logo Search packages:      
Sourcecode: ardour version File versions  Download package

IOStatus Glib::IOChannel::close ( bool  flush = true  )  [inherited]

Close the I/O channel. Any pending data to be written will be flushed if flush is true. The channel will not be freed until the last reference is dropped. Accessing the channel after closing it is considered an error.

Parameters:
flush Whether to flush() pending data before closing the channel.
Returns:
The status of the operation.
Exceptions:
Glib::IOChannelError Close an IO channel. Any pending data to be written will be flushed if flush is true. The channel will not be freed until the last reference is dropped using g_io_channel_unref().
Parameters:
flush If true, flush pending.
err Location to store a G::IOChannelError.
Returns:
The status of the operation.

Definition at line 628 of file iochannel.cc.

{
  GError *error = 0;
  IOStatus retvalue = ((IOStatus)(g_io_channel_shutdown(gobj(), static_cast<int>(flush), &(error))));
  if(error) ::Glib::Error::throw_exception(error);
  return retvalue;
}


Generated by  Doxygen 1.6.0   Back to index