[devhelp] parser: make the function fully private



commit fe5c3bb756ce622e6a58c4eed2b455e1d12cae0e
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Apr 2 09:53:17 2018 +0200

    parser: make the function fully private

 devhelp/dh-book.c   |   14 +++++++-------
 devhelp/dh-parser.c |   18 +++++++++---------
 devhelp/dh-parser.h |   17 +++++++++--------
 3 files changed, 25 insertions(+), 24 deletions(-)
---
diff --git a/devhelp/dh-book.c b/devhelp/dh-book.c
index ba4a393..dad84dd 100644
--- a/devhelp/dh-book.c
+++ b/devhelp/dh-book.c
@@ -307,13 +307,13 @@ dh_book_new (GFile *index_file)
         priv->index_file = g_object_ref (index_file);
 
         /* Parse file storing contents in the book struct. */
-        if (!dh_parser_read_file (priv->index_file,
-                                  &priv->title,
-                                  &priv->id,
-                                  &language,
-                                  &priv->tree,
-                                  &priv->links,
-                                  &error)) {
+        if (!_dh_parser_read_file (priv->index_file,
+                                   &priv->title,
+                                   &priv->id,
+                                   &language,
+                                   &priv->tree,
+                                   &priv->links,
+                                   &error)) {
                 /* It's fine if the file doesn't exist, as DhBookManager tries
                  * to create a DhBook for each possible index file in a certain
                  * book directory.
diff --git a/devhelp/dh-parser.c b/devhelp/dh-parser.c
index 94fa232..a76e474 100644
--- a/devhelp/dh-parser.c
+++ b/devhelp/dh-parser.c
@@ -4,8 +4,8 @@
  *
  * Copyright (C) 2002-2003 Mikael Hallendal <micke imendio com>
  * Copyright (C) 2002-2003 CodeFactory AB
- * Copyright (C) 2005,2008 Imendio AB
- * Copyright (C) 2017 Sébastien Wilmet <swilmet gnome org>
+ * Copyright (C) 2005, 2008 Imendio AB
+ * Copyright (C) 2017, 2018 Sébastien Wilmet <swilmet gnome org>
  *
  * Devhelp is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published
@@ -530,13 +530,13 @@ parser_end_node_cb (GMarkupParseContext  *context,
 }
 
 gboolean
-dh_parser_read_file (GFile   *index_file,
-                     gchar  **book_title,
-                     gchar  **book_id,
-                     gchar  **book_language,
-                     GNode  **book_tree,
-                     GList  **all_links,
-                     GError **error)
+_dh_parser_read_file (GFile   *index_file,
+                      gchar  **book_title,
+                      gchar  **book_id,
+                      gchar  **book_language,
+                      GNode  **book_tree,
+                      GList  **all_links,
+                      GError **error)
 {
         DhParser *parser;
         gchar *index_file_uri;
diff --git a/devhelp/dh-parser.h b/devhelp/dh-parser.h
index b05c32b..6cfe46c 100644
--- a/devhelp/dh-parser.h
+++ b/devhelp/dh-parser.h
@@ -4,7 +4,7 @@
  *
  * Copyright (C) 2003 CodeFactory AB
  * Copyright (C) 2003 Mikael Hallendal <micke imendio com>
- * Copyright (C) 2017 Sébastien Wilmet <swilmet gnome org>
+ * Copyright (C) 2017, 2018 Sébastien Wilmet <swilmet gnome org>
  *
  * Devhelp is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published
@@ -27,13 +27,14 @@
 
 G_BEGIN_DECLS
 
-gboolean dh_parser_read_file (GFile   *index_file,
-                              gchar  **book_title,
-                              gchar  **book_id,
-                              gchar  **book_language,
-                              GNode  **book_tree,
-                              GList  **all_links,
-                              GError **error);
+G_GNUC_INTERNAL
+gboolean _dh_parser_read_file (GFile   *index_file,
+                               gchar  **book_title,
+                               gchar  **book_id,
+                               gchar  **book_language,
+                               GNode  **book_tree,
+                               GList  **all_links,
+                               GError **error);
 
 G_END_DECLS
 


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