Re: Prototype of g_io_channel_write() and gnet_iochennel_writen()
- From: Ron Steinke <rsteinke w-link net>
- To: loban earthling net, gtk-devel-list gnome org
- Cc: gnet gnetlibrary org, gnet-dev gnetlibrary org
- Subject: Re: Prototype of g_io_channel_write() and gnet_iochennel_writen()
- Date: Thu, 26 Jul 2001 18:01:29 -0700
> From: Loban Rahman <loban earthling net>
>
> These are the current prototypes:
>
> GIOError g_io_channel_write (GIOChannel *channel,
> gchar *buf,
> guint count,
> guint *bytes_written);
>
> GIOError gnet_io_channel_writen (GIOChannel *channel,
> gchar *buf,
> guint len,
> guint *bytes_written);
>
> I propose they ought to be:
>
> GIOError g_io_channel_write (GIOChannel *channel,
> const gchar *buf,
> guint count,
> guint *bytes_written);
>
> GIOError gnet_io_channel_writen (GIOChannel *channel,
> const gchar *buf,
> guint len,
> guint *bytes_written);
>
> because the contents of buf shouldn't change.
In the case of glib, this is already fixed in CVS. Do we need to backport this
to 1.2?
Ron Steinke
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]