After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 529034 - g_file_{in,out}put_query_info{,_async} consting
g_file_{in,out}put_query_info{,_async} consting
Status: RESOLVED DUPLICATE of bug 562613
Product: glib
Classification: Platform
Component: gio
2.16.x
Other Linux
: Normal enhancement
: ---
Assigned To: Alexander Larsson
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-04-20 13:11 UTC by Josselin Mouette
Modified: 2009-01-13 18:25 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Josselin Mouette 2008-04-20 13:11:14 UTC
[ Forwarded from http://bugs.debian.org/476886 by Florian Ragwitz ]

the following functions take the file attribute query string as a char
pointer. However they shouldn't, and in fact don't, modify it. Therefor
I think it should be declared as const char * just like
g_file_query_info and g_file_query_info_async do it.

  GFileInfo *g_file_input_stream_query_info (GFileInputStream *stream, char *attributes, GCancellable *cancellable, GError **error);
  void g_file_input_stream_query_info_async (GFileInputStream *stream, char *attributes, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpoiner user_data);
  GFileInfo *g_file_output_stream_query_info (GFileOutputStream *stream, char *attributes, GCancellable *cancellable, GError **error);
  void g_file_input_stream_query_info_async (GFileOutputStream *stream, char *attributes, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpoiner user_data);
Comment 1 Paolo Borelli 2009-01-13 18:25:36 UTC
marking this dupe even if it is older since the other has a valid patch

*** This bug has been marked as a duplicate of 562613 ***