[gnome-software] Unexport some of GsAppList
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Unexport some of GsAppList
- Date: Thu, 19 May 2016 10:08:31 +0000 (UTC)
commit 7e133e919820c36f0b66a226d1159d93ce7420c8
Author: Richard Hughes <richard hughsie com>
Date: Thu May 19 10:02:26 2016 +0100
Unexport some of GsAppList
src/Makefile.am | 1 +
src/gs-app-list-private.h | 49 ++++++++++++++++++++++++++++++++++++++++
src/gs-app-list.c | 2 +-
src/gs-app-list.h | 17 +-------------
src/gs-plugin-loader.c | 1 +
src/gs-self-test.c | 1 +
src/gs-shell-overview.c | 1 +
src/gs-shell-search-provider.c | 1 +
8 files changed, 56 insertions(+), 17 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 93a2f2c..fb325f7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -136,6 +136,7 @@ gnome_software_SOURCES = \
gs-app-private.h \
gs-app-list.c \
gs-app-list.h \
+ gs-app-list-private.h \
gs-category.c \
gs-category.h \
gs-common.c \
diff --git a/src/gs-app-list-private.h b/src/gs-app-list-private.h
new file mode 100644
index 0000000..21064ea
--- /dev/null
+++ b/src/gs-app-list-private.h
@@ -0,0 +1,49 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2016 Richard Hughes <richard hughsie com>
+ *
+ * Licensed under the GNU General Public License Version 2
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef __GS_APP_LIST_PRIVATE_H
+#define __GS_APP_LIST_PRIVATE_H
+
+#include "gs-app-list.h"
+
+G_BEGIN_DECLS
+
+typedef gboolean (*GsAppListFilterFunc) (GsApp *app,
+ gpointer user_data);
+typedef gboolean (*GsAppListSortFunc) (GsApp *app1,
+ GsApp *app2,
+ gpointer user_data);
+
+GsAppList *gs_app_list_copy (GsAppList *list);
+void gs_app_list_filter (GsAppList *list,
+ GsAppListFilterFunc func,
+ gpointer user_data);
+void gs_app_list_sort (GsAppList *list,
+ GsAppListSortFunc func,
+ gpointer user_data);
+void gs_app_list_filter_duplicates (GsAppList *list);
+void gs_app_list_randomize (GsAppList *list);
+
+G_END_DECLS
+
+#endif /* __GS_APP_LIST_PRIVATE_H */
+
+/* vim: set noexpandtab: */
diff --git a/src/gs-app-list.c b/src/gs-app-list.c
index f8d97e4..69fc42b 100644
--- a/src/gs-app-list.c
+++ b/src/gs-app-list.c
@@ -30,7 +30,7 @@
#include <glib.h>
-#include "gs-app-list.h"
+#include "gs-app-list-private.h"
struct _GsAppList
{
diff --git a/src/gs-app-list.h b/src/gs-app-list.h
index ce90f9c..2897430 100644
--- a/src/gs-app-list.h
+++ b/src/gs-app-list.h
@@ -32,27 +32,12 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (GsAppList, gs_app_list, GS, APP_LIST, GObject)
-typedef gboolean (*GsAppListFilterFunc) (GsApp *app,
- gpointer user_data);
-typedef gboolean (*GsAppListSortFunc) (GsApp *app1,
- GsApp *app2,
- gpointer user_data);
-
+GsAppList *gs_app_list_new (void);
void gs_app_list_add (GsAppList *list,
GsApp *app);
GsApp *gs_app_list_index (GsAppList *list,
guint idx);
guint gs_app_list_length (GsAppList *list);
-GsAppList *gs_app_list_new (void);
-GsAppList *gs_app_list_copy (GsAppList *list);
-void gs_app_list_filter (GsAppList *list,
- GsAppListFilterFunc func,
- gpointer user_data);
-void gs_app_list_sort (GsAppList *list,
- GsAppListSortFunc func,
- gpointer user_data);
-void gs_app_list_filter_duplicates (GsAppList *list);
-void gs_app_list_randomize (GsAppList *list);
G_END_DECLS
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index b46259a..d8ef1f1 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -26,6 +26,7 @@
#include <appstream-glib.h>
#include "gs-app-private.h"
+#include "gs-app-list-private.h"
#include "gs-plugin-loader.h"
#include "gs-plugin.h"
#include "gs-plugin-private.h"
diff --git a/src/gs-self-test.c b/src/gs-self-test.c
index 558e374..db8aaca 100644
--- a/src/gs-self-test.c
+++ b/src/gs-self-test.c
@@ -27,6 +27,7 @@
#include <fnmatch.h>
#include "gs-app-private.h"
+#include "gs-app-list-private.h"
#include "gs-plugin.h"
#include "gs-plugin-loader.h"
#include "gs-plugin-loader-sync.h"
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index 30cd1cf..47fd9ca 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -26,6 +26,7 @@
#include "gs-shell.h"
#include "gs-shell-overview.h"
#include "gs-app.h"
+#include "gs-app-list-private.h"
#include "gs-category.h"
#include "gs-popular-tile.h"
#include "gs-feature-tile.h"
diff --git a/src/gs-shell-search-provider.c b/src/gs-shell-search-provider.c
index 5eab9e3..9f04400 100644
--- a/src/gs-shell-search-provider.c
+++ b/src/gs-shell-search-provider.c
@@ -27,6 +27,7 @@
#include <string.h>
#include <glib/gi18n.h>
+#include "gs-app-list-private.h"
#include "gs-plugin-loader-sync.h"
#include "gs-shell-search-provider-generated.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]