Formatting cleanups

This commit is contained in:
Matthias Clasen 2012-06-03 21:37:32 -04:00
parent eeb5140ad2
commit 3129bac14c

View File

@ -36,7 +36,7 @@
*
* Entry point for using GIO functionality.
*
**/
*/
G_DEFINE_TYPE (GVfs, g_vfs, G_TYPE_OBJECT);
@ -56,8 +56,9 @@ g_vfs_init (GVfs *vfs)
*
* Checks if the VFS is active.
*
* Returns: %TRUE if construction of the @vfs was successful and it is now active.
**/
* Returns: %TRUE if construction of the @vfs was successful
* and it is now active.
*/
gboolean
g_vfs_is_active (GVfs *vfs)
{
@ -80,10 +81,10 @@ g_vfs_is_active (GVfs *vfs)
*
* Returns: (transfer full): a #GFile.
* Free the returned object with g_object_unref().
**/
*/
GFile *
g_vfs_get_file_for_path (GVfs *vfs,
const char *path)
const char *path)
{
GVfsClass *class;
@ -108,10 +109,10 @@ g_vfs_get_file_for_path (GVfs *vfs,
*
* Returns: (transfer full): a #GFile.
* Free the returned object with g_object_unref().
**/
*/
GFile *
g_vfs_get_file_for_uri (GVfs *vfs,
const char *uri)
const char *uri)
{
GVfsClass *class;
@ -121,9 +122,10 @@ g_vfs_get_file_for_uri (GVfs *vfs,
class = G_VFS_GET_CLASS (vfs);
/* This is an unfortunate placement, but we really
need to check this before chaining to the vfs,
because we want to support resource uris for
all vfs:es, even those that predate resources. */
* need to check this before chaining to the vfs,
* because we want to support resource uris for
* all vfs:es, even those that predate resources.
*/
if (g_str_has_prefix (uri, "resource:"))
return _g_resource_file_new (uri);
@ -139,7 +141,7 @@ g_vfs_get_file_for_uri (GVfs *vfs,
* Returns: (transfer none): a %NULL-terminated array of strings.
* The returned array belongs to GIO and must
* not be freed or modified.
**/
*/
const gchar * const *
g_vfs_get_supported_uri_schemes (GVfs *vfs)
{
@ -163,10 +165,10 @@ g_vfs_get_supported_uri_schemes (GVfs *vfs)
*
* Returns: (transfer full): a #GFile for the given @parse_name.
* Free the returned object with g_object_unref().
**/
*/
GFile *
g_vfs_parse_name (GVfs *vfs,
const char *parse_name)
const char *parse_name)
{
GVfsClass *class;
@ -187,13 +189,13 @@ g_vfs_parse_name (GVfs *vfs,
* Gets the default #GVfs for the system.
*
* Returns: (transfer none): a #GVfs.
**/
*/
GVfs *
g_vfs_get_default (void)
{
return _g_io_module_get_default (G_VFS_EXTENSION_POINT_NAME,
"GIO_USE_VFS",
(GIOModuleVerifyFunc)g_vfs_is_active);
"GIO_USE_VFS",
(GIOModuleVerifyFunc)g_vfs_is_active);
}
/**
@ -202,7 +204,7 @@ g_vfs_get_default (void)
* Gets the local #GVfs for the system.
*
* Returns: (transfer none): a #GVfs.
**/
*/
GVfs *
g_vfs_get_local (void)
{