diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-10-21 12:58:45 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2008-10-21 12:58:45 +0000 |
commit | d73422735a1d60d1b014cf40b273e7391389e678 (patch) | |
tree | 63c01910d1ef0d30b1084209c90e21144ee4710b /daemon/gvfsbackend.h | |
parent | 1078f20f47debb00d0a0f6966b6680ad0473e32f (diff) | |
download | gvfs-d73422735a1d60d1b014cf40b273e7391389e678.tar.gz |
Patch from David Zeuthen
2008-10-21 Alexander Larsson <alexl@redhat.com>
Patch from David Zeuthen
* common/Makefile.am:
* common/gvfsicon.[ch]:
Added GVfsIcon object for GVfs backend specific icons.
* common/gmountspec.[ch]:
Make sure to/from string works correctly to roundtrip GMountSpec:s
Make GMountSpec a boxed type
* common/gvfsdaemonprotocol.h:
Add OpenIconForRead operation
* client/Makefile.am:
* client/gvfsiconloadable.[ch]:
In gvfs client side, implement GLoadableIcon for GVfsIcon type.
* client/gdaemonvfs.c:
Make sure that we add the GLoadableIcon interface for GVfsIcon on load
* daemon/Makefile.am:
* daemon/gvfsbackend.[ch]:
* daemon/gvfsjobopeniconforread.[ch]:
Add new job type for OpenIconForRead op
* daemon/gvfsbackendgphoto2.c:
Implement OpenIconForRead for icon previews.
svn path=/trunk/; revision=2070
Diffstat (limited to 'daemon/gvfsbackend.h')
-rw-r--r-- | daemon/gvfsbackend.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/daemon/gvfsbackend.h b/daemon/gvfsbackend.h index e47f3680..4dcf7409 100644 --- a/daemon/gvfsbackend.h +++ b/daemon/gvfsbackend.h @@ -48,6 +48,7 @@ typedef struct _GVfsJobUnmount GVfsJobUnmount; typedef struct _GVfsJobMountMountable GVfsJobMountMountable; typedef struct _GVfsJobUnmountMountable GVfsJobUnmountMountable; typedef struct _GVfsJobOpenForRead GVfsJobOpenForRead; +typedef struct _GVfsJobOpenIconForRead GVfsJobOpenIconForRead; typedef struct _GVfsJobSeekRead GVfsJobSeekRead; typedef struct _GVfsJobCloseRead GVfsJobCloseRead; typedef struct _GVfsJobRead GVfsJobRead; @@ -138,6 +139,12 @@ struct _GVfsBackendClass gboolean (*try_open_for_read) (GVfsBackend *backend, GVfsJobOpenForRead *job, const char *filename); + void (*open_icon_for_read) (GVfsBackend *backend, + GVfsJobOpenIconForRead *job, + const char *icon_id); + gboolean (*try_open_icon_for_read) (GVfsBackend *backend, + GVfsJobOpenIconForRead *job, + const char *icon_id); void (*close_read) (GVfsBackend *backend, GVfsJobCloseRead *job, GVfsBackendHandle handle); |