diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-01-31 16:54:22 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2008-01-31 16:54:22 +0000 |
commit | 0b4b30045a8411784a5e02436d02132034ab2a23 (patch) | |
tree | f01f7eec82d1ec74a3cb45770c415a2ebaed5915 /client/gvfsurimapper.c | |
parent | 31bd287ee9fbcff89ac814615e600f43e4ff963b (diff) | |
download | gvfs-0b4b30045a8411784a5e02436d02132034ab2a23.tar.gz |
Implement uri navigation for http uris (#509341)
2008-01-31 Alexander Larsson <alexl@redhat.com>
Implement uri navigation for http uris (#509341)
* client/gvfsurimapper.[ch]:
Add get_mount_info_for_path method for mount types
like ssh that change MountInfo as the path changes.
* client/httpuri.c:
Implement get_mount_info_for_path.
For http, set the path from the uri.
The will be removed on i/o by the corresponding
path being in the mount_prefix.
* daemon/gvfsbackendhttp.c:
Set mount_prefix to path from uri.
Remove unused code in message_new_from_filename
* client/gdaemonfile.c:
* client/gdaemonvfs.[ch]:
Use the new uri mapper function to change GMountInfo
as the path changes.
svn path=/trunk/; revision=1214
Diffstat (limited to 'client/gvfsurimapper.c')
-rw-r--r-- | client/gvfsurimapper.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/client/gvfsurimapper.c b/client/gvfsurimapper.c index b632b524..9e99b2c8 100644 --- a/client/gvfsurimapper.c +++ b/client/gvfsurimapper.c @@ -170,6 +170,21 @@ g_vfs_uri_mapper_from_uri (GVfsUriMapper *mapper, return (* class->from_uri) (mapper, uri); } +GVfsUriMountInfo * +g_vfs_uri_mapper_get_mount_info_for_path (GVfsUriMapper *mapper, + GVfsUriMountInfo *info, + const char *new_path) +{ + GVfsUriMapperClass *class; + + class = G_VFS_URI_MAPPER_GET_CLASS (mapper); + + if (class->get_mount_info_for_path != NULL) + return (* class->get_mount_info_for_path) (mapper, info, new_path); + else + return NULL; +} + const char * const * g_vfs_uri_mapper_get_handled_mount_types (GVfsUriMapper *mapper) { |