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.h | |
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.h')
-rw-r--r-- | client/gvfsurimapper.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/client/gvfsurimapper.h b/client/gvfsurimapper.h index 5cdef03a..6a3b5ea5 100644 --- a/client/gvfsurimapper.h +++ b/client/gvfsurimapper.h @@ -42,6 +42,7 @@ struct _GVfsUriMapper { GObject parent; }; +/* Keep in sync with GMountSpecItem */ typedef struct { char *key; char *value; @@ -61,7 +62,10 @@ struct _GVfsUriMapperClass const char * const * (*get_handled_schemes) (GVfsUriMapper *mapper); GVfsUriMountInfo * (*from_uri) (GVfsUriMapper *mapper, const char *uri); - + GVfsUriMountInfo * (*get_mount_info_for_path) (GVfsUriMapper *mapper, + GVfsUriMountInfo *mount_info, + const char *new_path); + const char * const * (*get_handled_mount_types) (GVfsUriMapper *mapper); char * (*to_uri) (GVfsUriMapper *mapper, GVfsUriMountInfo *mount_info, @@ -88,6 +92,9 @@ void g_vfs_uri_mount_info_set_with_len (GVfsUriMountInfo *info, const char * const *g_vfs_uri_mapper_get_handled_schemes (GVfsUriMapper *mapper); GVfsUriMountInfo * g_vfs_uri_mapper_from_uri (GVfsUriMapper *mapper, const char *uri); +GVfsUriMountInfo * g_vfs_uri_mapper_get_mount_info_for_path (GVfsUriMapper *mapper, + GVfsUriMountInfo *mount_info, + const char *new_path); const char * const *g_vfs_uri_mapper_get_handled_mount_types (GVfsUriMapper *mapper); char * g_vfs_uri_mapper_to_uri (GVfsUriMapper *mapper, |