[devhelp] util: make get_possible_index_files() private
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] util: make get_possible_index_files() private
- Date: Sun, 7 Jan 2018 11:42:54 +0000 (UTC)
commit 7b6d764957508429ab44deba52d3fc5f78694ed0
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Jan 7 12:39:40 2018 +0100
util: make get_possible_index_files() private
It's a new function, it's used only inside the lib, it's not used by the
Devhelp application.
src/dh-book-manager.c | 2 +-
src/dh-util.c | 2 +-
src/dh-util.h | 3 ++-
unit-tests/test-util.c | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/dh-book-manager.c b/src/dh-book-manager.c
index 9ec06c5..0ed1e64 100644
--- a/src/dh-book-manager.c
+++ b/src/dh-book-manager.c
@@ -605,7 +605,7 @@ create_book_from_directory (DhBookManager *book_manager,
GSList *possible_index_files;
GSList *l;
- possible_index_files = dh_util_get_possible_index_files (book_directory);
+ possible_index_files = _dh_util_get_possible_index_files (book_directory);
for (l = possible_index_files; l != NULL; l = l->next) {
GFile *index_file = G_FILE (l->data);
diff --git a/src/dh-util.c b/src/dh-util.c
index 26efc3b..d2ff30f 100644
--- a/src/dh-util.c
+++ b/src/dh-util.c
@@ -305,7 +305,7 @@ _dh_util_free_book_tree (GNode *book_tree)
* index files in @book_directory, in order of preference.
*/
GSList *
-dh_util_get_possible_index_files (GFile *book_directory)
+_dh_util_get_possible_index_files (GFile *book_directory)
{
const gchar *extensions[] = {
".devhelp2",
diff --git a/src/dh-util.h b/src/dh-util.h
index 89708a8..6e55858 100644
--- a/src/dh-util.h
+++ b/src/dh-util.h
@@ -50,7 +50,8 @@ void dh_util_queue_concat (GQueue *q1,
G_GNUC_INTERNAL
void _dh_util_free_book_tree (GNode *book_tree);
-GSList * dh_util_get_possible_index_files (GFile *book_directory);
+G_GNUC_INTERNAL
+GSList * _dh_util_get_possible_index_files (GFile *book_directory);
G_END_DECLS
diff --git a/unit-tests/test-util.c b/unit-tests/test-util.c
index 0f9b895..6060e58 100644
--- a/unit-tests/test-util.c
+++ b/unit-tests/test-util.c
@@ -27,7 +27,7 @@ check_get_possible_index_files (const gchar *book_directory_path,
gint i;
book_directory = g_file_new_for_path (book_directory_path);
- list = dh_util_get_possible_index_files (book_directory);
+ list = _dh_util_get_possible_index_files (book_directory);
g_assert_cmpint (g_slist_length (list), ==, 4);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]