mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
Bug 562613 – Missing const modifier in string parameters
2009-03-03 Alexander Larsson <alexl@redhat.com> Bug 562613 – Missing const modifier in string parameters * gfileinputstream.[ch]: * gfileoutputstream.[ch]: * glocalfileinfo.[ch]: Make string arguments const if used as such. svn path=/trunk/; revision=7952
This commit is contained in:
parent
0b9f24c1e1
commit
f891d4e04e
@ -1,3 +1,12 @@
|
||||
2009-03-03 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
Bug 562613 – Missing const modifier in string parameters
|
||||
|
||||
* gfileinputstream.[ch]:
|
||||
* gfileoutputstream.[ch]:
|
||||
* glocalfileinfo.[ch]:
|
||||
Make string arguments const if used as such.
|
||||
|
||||
2009-03-03 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* glocalfile.c (g_local_file_query_filesystem_info):
|
||||
|
@ -66,7 +66,7 @@ static gboolean g_file_input_stream_seekable_truncate (GSeekable
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
static void g_file_input_stream_real_query_info_async (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
@ -129,7 +129,7 @@ g_file_input_stream_init (GFileInputStream *stream)
|
||||
**/
|
||||
GFileInfo *
|
||||
g_file_input_stream_query_info (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error)
|
||||
{
|
||||
@ -202,7 +202,7 @@ async_ready_callback_wrapper (GObject *source_object,
|
||||
**/
|
||||
void
|
||||
g_file_input_stream_query_info_async (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
@ -434,7 +434,7 @@ query_info_async_thread (GSimpleAsyncResult *res,
|
||||
|
||||
static void
|
||||
g_file_input_stream_real_query_info_async (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
|
@ -69,11 +69,11 @@ struct _GFileInputStreamClass
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileInfo * (* query_info) (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* query_info_async) (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
@ -94,11 +94,11 @@ struct _GFileInputStreamClass
|
||||
GType g_file_input_stream_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFileInfo *g_file_input_stream_query_info (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void g_file_input_stream_query_info_async (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
|
@ -70,7 +70,7 @@ static gboolean g_file_output_stream_seekable_truncate (GSeekable
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
static void g_file_output_stream_real_query_info_async (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
@ -143,7 +143,7 @@ g_file_output_stream_init (GFileOutputStream *stream)
|
||||
**/
|
||||
GFileInfo *
|
||||
g_file_output_stream_query_info (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error)
|
||||
{
|
||||
@ -211,7 +211,7 @@ async_ready_callback_wrapper (GObject *source_object,
|
||||
**/
|
||||
void
|
||||
g_file_output_stream_query_info_async (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
@ -536,7 +536,7 @@ query_info_async_thread (GSimpleAsyncResult *res,
|
||||
|
||||
static void
|
||||
g_file_output_stream_real_query_info_async (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
|
@ -74,11 +74,11 @@ struct _GFileOutputStreamClass
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileInfo * (* query_info) (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* query_info_async) (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
@ -100,11 +100,11 @@ GType g_file_output_stream_get_type (void) G_GNUC_CONST;
|
||||
|
||||
|
||||
GFileInfo *g_file_output_stream_query_info (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void g_file_output_stream_query_info_async (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
|
@ -1681,9 +1681,9 @@ _g_local_file_info_get (const char *basename,
|
||||
}
|
||||
|
||||
GFileInfo *
|
||||
_g_local_file_info_get_from_fd (int fd,
|
||||
char *attributes,
|
||||
GError **error)
|
||||
_g_local_file_info_get_from_fd (int fd,
|
||||
const char *attributes,
|
||||
GError **error)
|
||||
{
|
||||
GLocalFileStat stat_buf;
|
||||
GFileAttributeMatcher *matcher;
|
||||
|
@ -60,7 +60,7 @@ GFileInfo *_g_local_file_info_get (const char *basename,
|
||||
GLocalParentFileInfo *parent_info,
|
||||
GError **error);
|
||||
GFileInfo *_g_local_file_info_get_from_fd (int fd,
|
||||
char *attributes,
|
||||
const char *attributes,
|
||||
GError **error);
|
||||
char * _g_local_file_info_create_etag (GLocalFileStat *statbuf);
|
||||
gboolean _g_local_file_info_set_attribute (char *filename,
|
||||
|
Loading…
Reference in New Issue
Block a user