[glib/wip/oholy/remote-attribute-fixes: 2/3] glocalfile: Rename g_local_file_is_remote



commit a8f97cbe8e013767712bc724f4bf7f0f6106f5e3
Author: Ondrej Holy <oholy redhat com>
Date:   Mon Jun 15 17:44:26 2020 +0200

    glocalfile: Rename g_local_file_is_remote
    
    The g_local_file_is_remote function is misleading as it works only for
    NFS filesystem types and only for locations in home directorly. Let's
    rename it to g_local_file_is_nfs_home to make it obvious.

 gio/glocalfile.c        | 4 ++--
 gio/glocalfile.h        | 2 +-
 gio/glocalfilemonitor.c | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index 121d5e9ed..0ad39853f 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -2516,7 +2516,7 @@ g_local_file_move (GFile                  *source,
 #ifdef G_OS_WIN32
 
 gboolean
-g_local_file_is_remote (const gchar *filename)
+g_local_file_is_nfs_home (const gchar *filename)
 {
   return FALSE;
 }
@@ -2538,7 +2538,7 @@ is_remote_fs_type (const gchar *fsname)
 }
 
 gboolean
-g_local_file_is_remote (const gchar *filename)
+g_local_file_is_nfs_home (const gchar *filename)
 {
   static gboolean remote_home;
   static gsize initialized;
diff --git a/gio/glocalfile.h b/gio/glocalfile.h
index f3ec4f294..ac0ad9d73 100644
--- a/gio/glocalfile.h
+++ b/gio/glocalfile.h
@@ -46,7 +46,7 @@ GFile * _g_local_file_new      (const char *filename);
 
 const char * _g_local_file_get_filename (GLocalFile *file);
 
-gboolean g_local_file_is_remote (const gchar *filename);
+gboolean g_local_file_is_nfs_home (const gchar *filename);
 
 GFile * g_local_file_new_from_dirname_and_basename (const char *dirname,
                                                     const char *basename);
diff --git a/gio/glocalfilemonitor.c b/gio/glocalfilemonitor.c
index 3212beff7..4f1660d16 100644
--- a/gio/glocalfilemonitor.c
+++ b/gio/glocalfilemonitor.c
@@ -878,7 +878,7 @@ g_local_file_monitor_new_for_path (const gchar        *pathname,
   GLocalFileMonitor *monitor;
   gboolean is_remote_fs;
 
-  is_remote_fs = g_local_file_is_remote (pathname);
+  is_remote_fs = g_local_file_is_nfs_home (pathname);
 
   monitor = g_local_file_monitor_new (is_remote_fs, is_directory, error);
 
@@ -900,7 +900,7 @@ g_local_file_monitor_new_in_worker (const gchar           *pathname,
   GLocalFileMonitor *monitor;
   gboolean is_remote_fs;
 
-  is_remote_fs = g_local_file_is_remote (pathname);
+  is_remote_fs = g_local_file_is_nfs_home (pathname);
 
   monitor = g_local_file_monitor_new (is_remote_fs, is_directory, error);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]