[gtksourceview/wip/chergert/gsv-gtk4: 20/84] file: move private API to -private.h



commit afb6e57e0a552822bacdf9f9ed43b667b701ea3c
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 9 12:40:16 2020 -0800

    file: move private API to -private.h

 docs/reference/meson.build            |  1 +
 gtksourceview/gtksourcefile-private.h | 56 +++++++++++++++++++++++++++++++++++
 gtksourceview/gtksourcefile.c         |  2 +-
 gtksourceview/gtksourcefile.h         | 28 ------------------
 gtksourceview/gtksourcefileloader.c   |  5 ++--
 gtksourceview/gtksourcefilesaver.c    |  5 ++--
 6 files changed, 64 insertions(+), 33 deletions(-)
---
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index 73e41b3c..45b8488a 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -23,6 +23,7 @@ reference_private_h = [
   'gtksourcecontextengine-private.h',
   'gtksourceencoding-private.h',
   'gtksourceengine-private.h',
+  'gtksourcefile-private.h',
   'gtksourcegutter-private.h',
   'gtksourcegutterrendererlines.h',
   'gtksourcegutterrenderermarks-private.h',
diff --git a/gtksourceview/gtksourcefile-private.h b/gtksourceview/gtksourcefile-private.h
new file mode 100644
index 00000000..68a94ef8
--- /dev/null
+++ b/gtksourceview/gtksourcefile-private.h
@@ -0,0 +1,56 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*- */
+/*
+ * This file is part of GtkSourceView
+ *
+ * Copyright 2014, 2015 - Sébastien Wilmet <swilmet gnome org>
+ *
+ * GtkSourceView is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * GtkSourceView is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include "gtksourcefile.h"
+
+G_BEGIN_DECLS
+
+G_GNUC_INTERNAL
+void                      _gtk_source_file_set_encoding               (GtkSourceFile                  *file,
+                                                                       const GtkSourceEncoding        
*encoding);
+G_GNUC_INTERNAL
+void                      _gtk_source_file_set_newline_type           (GtkSourceFile                  *file,
+                                                                       GtkSourceNewlineType            
newline_type);
+G_GNUC_INTERNAL
+void                      _gtk_source_file_set_compression_type       (GtkSourceFile                  *file,
+                                                                       GtkSourceCompressionType        
compression_type);
+G_GNUC_INTERNAL
+GMountOperation          *_gtk_source_file_create_mount_operation     (GtkSourceFile                  *file);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+G_GNUC_INTERNAL
+gboolean                  _gtk_source_file_get_modification_time      (GtkSourceFile                  *file,
+                                                                       GTimeVal                       
*modification_time);
+G_GNUC_INTERNAL
+void                      _gtk_source_file_set_modification_time      (GtkSourceFile                  *file,
+                                                                       GTimeVal                        
modification_time);
+G_GNUC_END_IGNORE_DEPRECATIONS
+G_GNUC_INTERNAL
+void                      _gtk_source_file_set_externally_modified    (GtkSourceFile                  *file,
+                                                                       gboolean                        
externally_modified);
+G_GNUC_INTERNAL
+void                      _gtk_source_file_set_deleted                (GtkSourceFile                  *file,
+                                                                       gboolean                        
deleted);
+G_GNUC_INTERNAL
+void                      _gtk_source_file_set_readonly               (GtkSourceFile                  *file,
+                                                                       gboolean                        
readonly);
+
+G_END_DECLS
diff --git a/gtksourceview/gtksourcefile.c b/gtksourceview/gtksourcefile.c
index 3d41c4b0..212d46b2 100644
--- a/gtksourceview/gtksourcefile.c
+++ b/gtksourceview/gtksourcefile.c
@@ -20,7 +20,7 @@
 
 #include "config.h"
 
-#include "gtksourcefile.h"
+#include "gtksourcefile-private.h"
 #include "gtksourceencoding.h"
 #include "gtksource-enumtypes.h"
 
diff --git a/gtksourceview/gtksourcefile.h b/gtksourceview/gtksourcefile.h
index d81b65fc..84a13abc 100644
--- a/gtksourceview/gtksourcefile.h
+++ b/gtksourceview/gtksourcefile.h
@@ -126,33 +126,5 @@ GTK_SOURCE_AVAILABLE_IN_3_18
 gboolean                  gtk_source_file_is_deleted                  (GtkSourceFile                  *file);
 GTK_SOURCE_AVAILABLE_IN_3_18
 gboolean                  gtk_source_file_is_readonly                 (GtkSourceFile                  *file);
-G_GNUC_INTERNAL
-void                      _gtk_source_file_set_encoding               (GtkSourceFile                  *file,
-                                                                       const GtkSourceEncoding        
*encoding);
-G_GNUC_INTERNAL
-void                      _gtk_source_file_set_newline_type           (GtkSourceFile                  *file,
-                                                                       GtkSourceNewlineType            
newline_type);
-G_GNUC_INTERNAL
-void                      _gtk_source_file_set_compression_type       (GtkSourceFile                  *file,
-                                                                       GtkSourceCompressionType        
compression_type);
-G_GNUC_INTERNAL
-GMountOperation          *_gtk_source_file_create_mount_operation     (GtkSourceFile                  *file);
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-G_GNUC_INTERNAL
-gboolean                  _gtk_source_file_get_modification_time      (GtkSourceFile                  *file,
-                                                                       GTimeVal                       
*modification_time);
-G_GNUC_INTERNAL
-void                      _gtk_source_file_set_modification_time      (GtkSourceFile                  *file,
-                                                                       GTimeVal                        
modification_time);
-G_GNUC_END_IGNORE_DEPRECATIONS
-G_GNUC_INTERNAL
-void                      _gtk_source_file_set_externally_modified    (GtkSourceFile                  *file,
-                                                                       gboolean                        
externally_modified);
-G_GNUC_INTERNAL
-void                      _gtk_source_file_set_deleted                (GtkSourceFile                  *file,
-                                                                       gboolean                        
deleted);
-G_GNUC_INTERNAL
-void                      _gtk_source_file_set_readonly               (GtkSourceFile                  *file,
-                                                                       gboolean                        
readonly);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourcefileloader.c b/gtksourceview/gtksourcefileloader.c
index 09b329a3..2d1256f9 100644
--- a/gtksourceview/gtksourcefileloader.c
+++ b/gtksourceview/gtksourcefileloader.c
@@ -23,10 +23,11 @@
 
 #include "config.h"
 
-#include "gtksourcefileloader.h"
 #include <glib/gi18n-lib.h>
+
+#include "gtksourcefileloader.h"
 #include "gtksourcebuffer.h"
-#include "gtksourcefile.h"
+#include "gtksourcefile-private.h"
 #include "gtksourcebufferoutputstream.h"
 #include "gtksourceencoding.h"
 #include "gtksourceencoding-private.h"
diff --git a/gtksourceview/gtksourcefilesaver.c b/gtksourceview/gtksourcefilesaver.c
index dda555f9..18e87913 100644
--- a/gtksourceview/gtksourcefilesaver.c
+++ b/gtksourceview/gtksourcefilesaver.c
@@ -23,9 +23,10 @@
 
 #include "config.h"
 
-#include "gtksourcefilesaver.h"
 #include <glib/gi18n-lib.h>
-#include "gtksourcefile.h"
+
+#include "gtksourcefilesaver.h"
+#include "gtksourcefile-private.h"
 #include "gtksourcebufferinputstream-private.h"
 #include "gtksourceencoding.h"
 #include "gtksourcebuffer.h"


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