summaryrefslogtreecommitdiff
path: root/gvfs/gvfs.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-10-25 18:10:51 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-10-25 18:10:51 +0100
commit407ffece7951dd089cc8f18c33312f7757739c3d (patch)
treea82a80765724f44055742d4fe63b9b82d5aa4cde /gvfs/gvfs.c
parent72bdb9394347572644799ad964d1fbc6f3969033 (diff)
downloadtuxcmd-modules-407ffece7951dd089cc8f18c33312f7757739c3d.tar.xz
Separate archiving and networking mode
Diffstat (limited to 'gvfs/gvfs.c')
-rw-r--r--gvfs/gvfs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gvfs/gvfs.c b/gvfs/gvfs.c
index 55e0d9b..7b15b5e 100644
--- a/gvfs/gvfs.c
+++ b/gvfs/gvfs.c
@@ -31,8 +31,8 @@
-#define VERSION "0.1.9"
-#define BUILD_DATE "2009-10-24"
+#define VERSION "0.1.10"
+#define BUILD_DATE "2009-10-25"
#define DEFAULT_BLOCK_SIZE 0x10000 /* 64kB */
#define CONST_DEFAULT_QUERY_INFO_ATTRIBUTES G_FILE_ATTRIBUTE_STANDARD_TYPE "," G_FILE_ATTRIBUTE_STANDARD_NAME "," \
@@ -387,7 +387,7 @@ VFSGetNetworkServices ()
}
TVFSResult
-VFSOpen (struct TVFSGlobs *globs, char *sName)
+VFSOpenURI (struct TVFSGlobs *globs, char *sURI)
{
GFile *f, *f2;
GFileInfo *info;
@@ -397,13 +397,13 @@ VFSOpen (struct TVFSGlobs *globs, char *sName)
globs->file = NULL;
globs->ftp_anonymous = FALSE;
- if (strstr (sName, "@") == NULL) {
+ if (strstr (sURI, "@") == NULL) {
/* test for FTP protocol (we only enable anonymous here) */
- globs->ftp_anonymous = strcasestr (sName, "ftp://") == sName;
+ globs->ftp_anonymous = strcasestr (sURI, "ftp://") == sURI;
}
- g_print ("(II) VFSOpen: opening URI '%s'\n", sName);
- f = g_file_new_for_commandline_arg (sName);
+ g_print ("(II) VFSOpenURI: opening URI '%s'\n", sURI);
+ f = g_file_new_for_commandline_arg (sURI);
while (1) {
error = NULL;
@@ -432,7 +432,7 @@ VFSOpen (struct TVFSGlobs *globs, char *sName)
}
/* Any other errors --> report */
if (error) {
- g_print ("(EE) VFSOpen: g_file_query_info() error: %s\n", error->message);
+ g_print ("(EE) VFSOpenURI: g_file_query_info() error: %s\n", error->message);
res = g_error_to_TVFSResult (error);
g_error_free (error);
g_object_unref (f);