Bug#476886: libglib2.0-dev: g_file_{in,out}put_query_info{,_async} consting

Florian Ragwitz rafl at debian.org
Sat Apr 19 22:11:28 UTC 2008


Package: libglib2.0-dev
Version: 2.16.3-2
Severity: wishlist

Hi,

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);


TIA,
Flo

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-rc7 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libglib2.0-dev depends on:
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  libglib2.0-0                  2.16.3-2   The GLib library of C routines
ii  libpcre3                      7.6-2      Perl 5 Compatible Regular Expressi
ii  libselinux1                   2.0.59-1   SELinux shared libraries
ii  pkg-config                    0.22-1     manage compile and link flags for 

Versions of packages libglib2.0-dev recommends:
ii  python                        2.4.4-6    An interactive high-level object-o

-- no debconf information






More information about the pkg-gnome-maintainers mailing list