mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Add extension point for adding metadata for local files
This adds a local_file_add_info vfunc to GVfs that vfs implementations can override to add metadata for local files.
This commit is contained in:
26
gio/gvfs.h
26
gio/gvfs.h
@@ -75,6 +75,27 @@ struct _GVfsClass
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
void (* local_file_add_info) (GVfs *vfs,
|
||||
const char *filename,
|
||||
guint64 device,
|
||||
GFileAttributeMatcher *attribute_matcher,
|
||||
GFileInfo *info,
|
||||
GCancellable *cancellable,
|
||||
gpointer *extra_data,
|
||||
GDestroyNotify *free_extra_data);
|
||||
void (* add_writable_namespaces) (GVfs *vfs,
|
||||
GFileAttributeInfoList *list);
|
||||
gboolean (* local_file_set_attributes) (GVfs *vfs,
|
||||
const char *filename,
|
||||
GFileInfo *info,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* local_file_removed) (GVfs *vfs,
|
||||
const char *filename);
|
||||
void (* local_file_moved) (GVfs *vfs,
|
||||
const char *source,
|
||||
const char *dest);
|
||||
void (*_g_reserved1) (void);
|
||||
void (*_g_reserved2) (void);
|
||||
void (*_g_reserved3) (void);
|
||||
@@ -82,11 +103,6 @@ struct _GVfsClass
|
||||
void (*_g_reserved5) (void);
|
||||
void (*_g_reserved6) (void);
|
||||
void (*_g_reserved7) (void);
|
||||
void (*_g_reserved8) (void);
|
||||
void (*_g_reserved9) (void);
|
||||
void (*_g_reserved10) (void);
|
||||
void (*_g_reserved11) (void);
|
||||
void (*_g_reserved12) (void);
|
||||
};
|
||||
|
||||
GType g_vfs_get_type (void) G_GNUC_CONST;
|
||||
|
Reference in New Issue
Block a user