diff options
author | Benjamin Otte <otte@gnome.org> | 2008-02-28 15:33:12 +0000 |
---|---|---|
committer | Benjamin Otte <otte@src.gnome.org> | 2008-02-28 15:33:12 +0000 |
commit | aecb2d6c48f7cc16b58d22e3117f30f0671e188a (patch) | |
tree | cc25f21a709f1e7e93e7e6d4e9d792ff12eebddf /daemon/gvfsdaemonutils.h | |
parent | c6ffd646e6092d8f2049c464a8c9fa4e666d38c7 (diff) | |
download | gvfs-aecb2d6c48f7cc16b58d22e3117f30f0671e188a.tar.gz |
add functions that are supposed to set default values on a remote file
2008-02-28 Benjamin Otte <otte@gnome.org>
* daemon/gvfsdaemonutils.c: (gvfs_file_info_populate_default),
(gvfs_file_info_populate_names),
(gvfs_file_info_populate_content_types):
* daemon/gvfsdaemonutils.h:
add functions that are supposed to set default values on a remote file
info structure, so we don't duplicate the code across multiple
backends.
* daemon/gvfsbackendftp.c: (ftp_error_set_from_response),
(ftp_connection_new), (file_info_get_flags), (file_info_query):
use it.
svn path=/trunk/; revision=1425
Diffstat (limited to 'daemon/gvfsdaemonutils.h')
-rw-r--r-- | daemon/gvfsdaemonutils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/daemon/gvfsdaemonutils.h b/daemon/gvfsdaemonutils.h index 199e319a..f3209838 100644 --- a/daemon/gvfsdaemonutils.h +++ b/daemon/gvfsdaemonutils.h @@ -38,6 +38,15 @@ char * g_error_to_daemon_reply (GError *error, guint32 seq_nr, gsize *len_out); +void gvfs_file_info_populate_default (GFileInfo *info, + const char *name_string, + GFileType type); +char * gvfs_file_info_populate_names (GFileInfo *info, + const char *name_string); +void gvfs_file_info_populate_content_types(GFileInfo *info, + const char *basename, + GFileType type); + G_END_DECLS #endif /* __G_VFS_DAEMON_UTILS_H__ */ |