mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-23 07:39:17 +02:00
Small documentation fixes
svn path=/trunk/; revision=7187
This commit is contained in:
parent
656f08fc54
commit
9f3f5f0905
@ -1,3 +1,7 @@
|
|||||||
|
2008-07-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gfile.c: Small documentation fixes.
|
||||||
|
|
||||||
2008-07-15 Matthias Clasen <mclasen@redhat.com>
|
2008-07-15 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gunixmounts.c: Use g_strcmp0 instead of rolling our own.
|
* gunixmounts.c: Use g_strcmp0 instead of rolling our own.
|
||||||
|
44
gio/gfile.c
44
gio/gfile.c
@ -1306,6 +1306,7 @@ g_file_find_enclosing_mount (GFile *file,
|
|||||||
|
|
||||||
return (* iface->find_enclosing_mount) (file, cancellable, error);
|
return (* iface->find_enclosing_mount) (file, cancellable, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* g_file_find_enclosing_mount_async:
|
* g_file_find_enclosing_mount_async:
|
||||||
* @file: a #GFile
|
* @file: a #GFile
|
||||||
@ -5056,20 +5057,23 @@ g_file_query_default_handler (GFile *file,
|
|||||||
* @file: input #GFile.
|
* @file: input #GFile.
|
||||||
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
||||||
* @contents: a location to place the contents of the file.
|
* @contents: a location to place the contents of the file.
|
||||||
* @length: a location to place the length of the contents of the file.
|
* @length: a location to place the length of the contents of the file,
|
||||||
* @etag_out: a location to place the current entity tag for the file.
|
* or %NULL if the length is not needed
|
||||||
|
* @etag_out: a location to place the current entity tag for the file,
|
||||||
|
* or %NULL if the entity tag is not needed
|
||||||
* @error: a #GError, or %NULL
|
* @error: a #GError, or %NULL
|
||||||
*
|
*
|
||||||
* Loads the content of the file into memory, returning the size of
|
* Loads the content of the file into memory. The data is always
|
||||||
* the data. The data is always zero terminated, but this is not
|
* zero-terminated, but this is not included in the resultant @length.
|
||||||
* included in the resultant @length.
|
* The returned @content should be freed with g_free() when no longer
|
||||||
|
* needed.
|
||||||
*
|
*
|
||||||
* If @cancellable is not %NULL, then the operation can be cancelled by
|
* If @cancellable is not %NULL, then the operation can be cancelled by
|
||||||
* triggering the cancellable object from another thread. If the operation
|
* triggering the cancellable object from another thread. If the operation
|
||||||
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
|
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
|
||||||
*
|
*
|
||||||
* Returns: %TRUE if the @file's contents were successfully loaded.
|
* Returns: %TRUE if the @file's contents were successfully loaded.
|
||||||
* %FALSE if there were errors..
|
* %FALSE if there were errors.
|
||||||
**/
|
**/
|
||||||
gboolean
|
gboolean
|
||||||
g_file_load_contents (GFile *file,
|
g_file_load_contents (GFile *file,
|
||||||
@ -5361,12 +5365,17 @@ g_file_load_partial_contents_async (GFile *file,
|
|||||||
* @file: input #GFile.
|
* @file: input #GFile.
|
||||||
* @res: a #GAsyncResult.
|
* @res: a #GAsyncResult.
|
||||||
* @contents: a location to place the contents of the file.
|
* @contents: a location to place the contents of the file.
|
||||||
* @length: a location to place the length of the contents of the file.
|
* @length: a location to place the length of the contents of the file,
|
||||||
* @etag_out: a location to place the current entity tag for the file.
|
* or %NULL if the length is not needed
|
||||||
|
* @etag_out: a location to place the current entity tag for the file,
|
||||||
|
* or %NULL if the entity tag is not needed
|
||||||
* @error: a #GError, or %NULL
|
* @error: a #GError, or %NULL
|
||||||
*
|
*
|
||||||
* Finishes an asynchronous partial load operation that was started
|
* Finishes an asynchronous partial load operation that was started
|
||||||
* with g_file_load_partial_contents_async().
|
* with g_file_load_partial_contents_async(). The data is always
|
||||||
|
* zero-terminated, but this is not included in the resultant @length.
|
||||||
|
* The returned @content should be freed with g_free() when no longer
|
||||||
|
* needed.
|
||||||
*
|
*
|
||||||
* Returns: %TRUE if the load was successful. If %FALSE and @error is
|
* Returns: %TRUE if the load was successful. If %FALSE and @error is
|
||||||
* present, it will be set appropriately.
|
* present, it will be set appropriately.
|
||||||
@ -5462,13 +5471,16 @@ g_file_load_contents_async (GFile *file,
|
|||||||
* @file: input #GFile.
|
* @file: input #GFile.
|
||||||
* @res: a #GAsyncResult.
|
* @res: a #GAsyncResult.
|
||||||
* @contents: a location to place the contents of the file.
|
* @contents: a location to place the contents of the file.
|
||||||
* @length: a location to place the length of the contents of the file.
|
* @length: a location to place the length of the contents of the file,
|
||||||
* @etag_out: a location to place the current entity tag for the file.
|
* or %NULL if the length is not needed
|
||||||
|
* @etag_out: a location to place the current entity tag for the file,
|
||||||
|
* or %NULL if the entity tag is not needed
|
||||||
* @error: a #GError, or %NULL
|
* @error: a #GError, or %NULL
|
||||||
*
|
*
|
||||||
* Finishes an asynchronous load of the @file's contents.
|
* Finishes an asynchronous load of the @file's contents.
|
||||||
* The contents are placed in @contents, and @length is set to the
|
* The contents are placed in @contents, and @length is set to the
|
||||||
* size of the @contents string. If @etag_out is present, it will be
|
* size of the @contents string. The @content should be freed with
|
||||||
|
* g_free() when no longer needed. If @etag_out is present, it will be
|
||||||
* set to the new entity tag for the @file.
|
* set to the new entity tag for the @file.
|
||||||
*
|
*
|
||||||
* Returns: %TRUE if the load was successful. If %FALSE and @error is
|
* Returns: %TRUE if the load was successful. If %FALSE and @error is
|
||||||
@ -5496,12 +5508,12 @@ g_file_load_contents_finish (GFile *file,
|
|||||||
* @contents: a string containing the new contents for @file.
|
* @contents: a string containing the new contents for @file.
|
||||||
* @length: the length of @contents in bytes.
|
* @length: the length of @contents in bytes.
|
||||||
* @etag: the old <link linkend="gfile-etag">entity tag</link>
|
* @etag: the old <link linkend="gfile-etag">entity tag</link>
|
||||||
* for the document.
|
* for the document, or %NULL
|
||||||
* @make_backup: %TRUE if a backup should be created.
|
* @make_backup: %TRUE if a backup should be created.
|
||||||
* @flags: a set of #GFileCreateFlags.
|
* @flags: a set of #GFileCreateFlags.
|
||||||
* @new_etag: a location to a new <link linkend="gfile-etag">entity tag</link>
|
* @new_etag: a location to a new <link linkend="gfile-etag">entity tag</link>
|
||||||
* for the document. This should be freed with g_free() when no longer
|
* for the document. This should be freed with g_free() when no longer
|
||||||
* needed.
|
* needed, or %NULL
|
||||||
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
||||||
* @error: a #GError, or %NULL
|
* @error: a #GError, or %NULL
|
||||||
*
|
*
|
||||||
@ -5709,7 +5721,7 @@ replace_contents_open_callback (GObject *obj,
|
|||||||
* @file: input #GFile.
|
* @file: input #GFile.
|
||||||
* @contents: string of contents to replace the file with.
|
* @contents: string of contents to replace the file with.
|
||||||
* @length: the length of @contents in bytes.
|
* @length: the length of @contents in bytes.
|
||||||
* @etag: a new <link linkend="gfile-etag">entity tag</link> for the @file.
|
* @etag: a new <link linkend="gfile-etag">entity tag</link> for the @file, or %NULL
|
||||||
* @make_backup: %TRUE if a backup should be created.
|
* @make_backup: %TRUE if a backup should be created.
|
||||||
* @flags: a set of #GFileCreateFlags.
|
* @flags: a set of #GFileCreateFlags.
|
||||||
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
||||||
@ -5774,7 +5786,7 @@ g_file_replace_contents_async (GFile *file,
|
|||||||
* @res: a #GAsyncResult.
|
* @res: a #GAsyncResult.
|
||||||
* @new_etag: a location of a new <link linkend="gfile-etag">entity tag</link>
|
* @new_etag: a location of a new <link linkend="gfile-etag">entity tag</link>
|
||||||
* for the document. This should be freed with g_free() when it is no
|
* for the document. This should be freed with g_free() when it is no
|
||||||
* longer needed.
|
* longer needed, or %NULL
|
||||||
* @error: a #GError, or %NULL
|
* @error: a #GError, or %NULL
|
||||||
*
|
*
|
||||||
* Finishes an asynchronous replace of the given @file. See
|
* Finishes an asynchronous replace of the given @file. See
|
||||||
|
Loading…
x
Reference in New Issue
Block a user