diff options
| -rw-r--r-- | gvfs/gvfs.c | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/gvfs/gvfs.c b/gvfs/gvfs.c index 1fb0230..c689ca3 100644 --- a/gvfs/gvfs.c +++ b/gvfs/gvfs.c @@ -361,8 +361,27 @@ VFSGetExts () char * VFSGetServices () { - /* FIXME: retrieve list of supported backends from gvfs subsystem */ - return g_strdup ("http;https;ftp;sftp;smb;network"); + GVfs *gvfs; + const gchar* const * schemes; + char *l = NULL; + char *s; + + gvfs = g_vfs_get_default (); + g_print ("(II) GVFS: is_active = %d\n", g_vfs_is_active (gvfs)); + + schemes = g_vfs_get_supported_uri_schemes (gvfs); + for (; *schemes; schemes++) { + if (l) { + s = g_strdup_printf ("%s;%s", l, *schemes); + g_free (l); + l = s; + } + else + l = g_strdup (*schemes); + } + + g_print ("(II) GVFS: supported schemes: %s\n", l); + return l; } char * @@ -1401,8 +1420,8 @@ VFSCopyIn (struct TVFSGlobs *globs, const char *sSrcName, const char *sDstName, /********** * TODO: - * - block size settings for GIO subsystem - * - variable block size for different protocols? + * NOT NEEDED - block size settings for GIO subsystem + * NOT NEEDED - variable block size for different protocols? * - support for appending in VFSCopyIn * DONE- authentication improvements (needs new VFS API) * |
