[glib/wip/oholy/remote-attribute-fixes: 2/7] glocalfile: Remove redundant private header



commit 1e336a2dcafb5e335d4a2eb3e6fa2b82ebd4510e
Author: Ondrej Holy <oholy redhat com>
Date:   Thu Jun 11 17:31:39 2020 +0200

    glocalfile: Remove redundant private header
    
    There are glocalfile.h and glocalfileprivate.h header files currently.
    None of those header files is public, so it doesn't make sense to have
    two private headers for glocalfile.c. Let's remove glocalfileprivate.h.

 gio/glocalfile.c        |  1 -
 gio/glocalfile.h        |  2 ++
 gio/glocalfileprivate.h | 30 ------------------------------
 gio/gunixmounts.c       |  2 +-
 4 files changed, 3 insertions(+), 32 deletions(-)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index 9caa35b1c..1effea5fa 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -51,7 +51,6 @@
 
 #include "gfileattribute.h"
 #include "glocalfile.h"
-#include "glocalfileprivate.h"
 #include "glocalfileinfo.h"
 #include "glocalfileenumerator.h"
 #include "glocalfileinputstream.h"
diff --git a/gio/glocalfile.h b/gio/glocalfile.h
index 960cfef1f..f3ec4f294 100644
--- a/gio/glocalfile.h
+++ b/gio/glocalfile.h
@@ -51,6 +51,8 @@ gboolean g_local_file_is_remote (const gchar *filename);
 GFile * g_local_file_new_from_dirname_and_basename (const char *dirname,
                                                     const char *basename);
 
+gchar *_g_local_file_find_topdir_for (const char *file_path);
+
 G_END_DECLS
 
 #endif /* __G_LOCAL_FILE_H__ */
diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c
index 1880d9926..881cec2cd 100644
--- a/gio/gunixmounts.c
+++ b/gio/gunixmounts.c
@@ -64,7 +64,7 @@
 #endif
 
 #include "gunixmounts.h"
-#include "glocalfileprivate.h"
+#include "glocalfile.h"
 #include "gfile.h"
 #include "gfilemonitor.h"
 #include "glibintl.h"


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