GNOME Bugzilla – Bug 529034
g_file_{in,out}put_query_info{,_async} consting
Last modified: 2009-01-13 18:25:36 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);
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 ***