mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-03 19:30:07 +02:00
Formatting cleanups
This commit is contained in:
parent
eeb5140ad2
commit
3129bac14c
26
gio/gvfs.c
26
gio/gvfs.c
@ -36,7 +36,7 @@
|
|||||||
*
|
*
|
||||||
* Entry point for using GIO functionality.
|
* Entry point for using GIO functionality.
|
||||||
*
|
*
|
||||||
**/
|
*/
|
||||||
|
|
||||||
G_DEFINE_TYPE (GVfs, g_vfs, G_TYPE_OBJECT);
|
G_DEFINE_TYPE (GVfs, g_vfs, G_TYPE_OBJECT);
|
||||||
|
|
||||||
@ -56,8 +56,9 @@ g_vfs_init (GVfs *vfs)
|
|||||||
*
|
*
|
||||||
* Checks if the VFS is active.
|
* 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
|
gboolean
|
||||||
g_vfs_is_active (GVfs *vfs)
|
g_vfs_is_active (GVfs *vfs)
|
||||||
{
|
{
|
||||||
@ -80,7 +81,7 @@ g_vfs_is_active (GVfs *vfs)
|
|||||||
*
|
*
|
||||||
* Returns: (transfer full): a #GFile.
|
* Returns: (transfer full): a #GFile.
|
||||||
* Free the returned object with g_object_unref().
|
* Free the returned object with g_object_unref().
|
||||||
**/
|
*/
|
||||||
GFile *
|
GFile *
|
||||||
g_vfs_get_file_for_path (GVfs *vfs,
|
g_vfs_get_file_for_path (GVfs *vfs,
|
||||||
const char *path)
|
const char *path)
|
||||||
@ -108,7 +109,7 @@ g_vfs_get_file_for_path (GVfs *vfs,
|
|||||||
*
|
*
|
||||||
* Returns: (transfer full): a #GFile.
|
* Returns: (transfer full): a #GFile.
|
||||||
* Free the returned object with g_object_unref().
|
* Free the returned object with g_object_unref().
|
||||||
**/
|
*/
|
||||||
GFile *
|
GFile *
|
||||||
g_vfs_get_file_for_uri (GVfs *vfs,
|
g_vfs_get_file_for_uri (GVfs *vfs,
|
||||||
const char *uri)
|
const char *uri)
|
||||||
@ -121,9 +122,10 @@ g_vfs_get_file_for_uri (GVfs *vfs,
|
|||||||
class = G_VFS_GET_CLASS (vfs);
|
class = G_VFS_GET_CLASS (vfs);
|
||||||
|
|
||||||
/* This is an unfortunate placement, but we really
|
/* This is an unfortunate placement, but we really
|
||||||
need to check this before chaining to the vfs,
|
* need to check this before chaining to the vfs,
|
||||||
because we want to support resource uris for
|
* because we want to support resource uris for
|
||||||
all vfs:es, even those that predate resources. */
|
* all vfs:es, even those that predate resources.
|
||||||
|
*/
|
||||||
if (g_str_has_prefix (uri, "resource:"))
|
if (g_str_has_prefix (uri, "resource:"))
|
||||||
return _g_resource_file_new (uri);
|
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.
|
* Returns: (transfer none): a %NULL-terminated array of strings.
|
||||||
* The returned array belongs to GIO and must
|
* The returned array belongs to GIO and must
|
||||||
* not be freed or modified.
|
* not be freed or modified.
|
||||||
**/
|
*/
|
||||||
const gchar * const *
|
const gchar * const *
|
||||||
g_vfs_get_supported_uri_schemes (GVfs *vfs)
|
g_vfs_get_supported_uri_schemes (GVfs *vfs)
|
||||||
{
|
{
|
||||||
@ -163,7 +165,7 @@ g_vfs_get_supported_uri_schemes (GVfs *vfs)
|
|||||||
*
|
*
|
||||||
* Returns: (transfer full): a #GFile for the given @parse_name.
|
* Returns: (transfer full): a #GFile for the given @parse_name.
|
||||||
* Free the returned object with g_object_unref().
|
* Free the returned object with g_object_unref().
|
||||||
**/
|
*/
|
||||||
GFile *
|
GFile *
|
||||||
g_vfs_parse_name (GVfs *vfs,
|
g_vfs_parse_name (GVfs *vfs,
|
||||||
const char *parse_name)
|
const char *parse_name)
|
||||||
@ -187,7 +189,7 @@ g_vfs_parse_name (GVfs *vfs,
|
|||||||
* Gets the default #GVfs for the system.
|
* Gets the default #GVfs for the system.
|
||||||
*
|
*
|
||||||
* Returns: (transfer none): a #GVfs.
|
* Returns: (transfer none): a #GVfs.
|
||||||
**/
|
*/
|
||||||
GVfs *
|
GVfs *
|
||||||
g_vfs_get_default (void)
|
g_vfs_get_default (void)
|
||||||
{
|
{
|
||||||
@ -202,7 +204,7 @@ g_vfs_get_default (void)
|
|||||||
* Gets the local #GVfs for the system.
|
* Gets the local #GVfs for the system.
|
||||||
*
|
*
|
||||||
* Returns: (transfer none): a #GVfs.
|
* Returns: (transfer none): a #GVfs.
|
||||||
**/
|
*/
|
||||||
GVfs *
|
GVfs *
|
||||||
g_vfs_get_local (void)
|
g_vfs_get_local (void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user