[gnome-software] Unexport some GsCategory API the plugins should not use
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Unexport some GsCategory API the plugins should not use
- Date: Tue, 31 May 2016 11:48:31 +0000 (UTC)
commit 505708049a053b4eebd004e9368293521a149494
Author: Richard Hughes <richard hughsie com>
Date: Tue May 31 12:46:57 2016 +0100
Unexport some GsCategory API the plugins should not use
src/Makefile.am | 1 +
src/gs-category-private.h | 38 ++++++++++++++++++++++++++++++++++++++
src/gs-category.c | 2 +-
src/gs-category.h | 3 ---
src/gs-plugin-loader.c | 1 +
5 files changed, 41 insertions(+), 4 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index f9158b0..dbdf496 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -140,6 +140,7 @@ gnome_software_SOURCES = \
gs-app-list-private.h \
gs-category.c \
gs-category.h \
+ gs-category-private.h \
gs-common.c \
gs-common.h \
gs-debug.c \
diff --git a/src/gs-category-private.h b/src/gs-category-private.h
new file mode 100644
index 0000000..1efdedc
--- /dev/null
+++ b/src/gs-category-private.h
@@ -0,0 +1,38 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2013-2016 Richard Hughes <richard hughsie com>
+ * Copyright (C) 2013 Matthias Clasen <mclasen redhat 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_CATEGORY_PRIVATE_H
+#define __GS_CATEGORY_PRIVATE_H
+
+#include "gs-category.h"
+
+G_BEGIN_DECLS
+
+void gs_category_sort_children (GsCategory *category);
+void gs_category_set_size (GsCategory *category,
+ guint size);
+
+G_END_DECLS
+
+#endif /* __GS_CATEGORY_PRIVATE_H */
+
+/* vim: set noexpandtab: */
diff --git a/src/gs-category.c b/src/gs-category.c
index c761ceb..800101f 100644
--- a/src/gs-category.c
+++ b/src/gs-category.c
@@ -32,7 +32,7 @@
#include <glib/gi18n.h>
-#include "gs-category.h"
+#include "gs-category-private.h"
struct _GsCategory
{
diff --git a/src/gs-category.h b/src/gs-category.h
index 95ef917..455bd13 100644
--- a/src/gs-category.h
+++ b/src/gs-category.h
@@ -44,14 +44,11 @@ void gs_category_set_icon (GsCategory *category,
GsCategory *gs_category_find_child (GsCategory *category,
const gchar *id);
-void gs_category_sort_children (GsCategory *category);
GPtrArray *gs_category_get_children (GsCategory *category);
void gs_category_add_child (GsCategory *category,
GsCategory *subcategory);
guint gs_category_get_size (GsCategory *category);
-void gs_category_set_size (GsCategory *category,
- guint size);
void gs_category_increment_size (GsCategory *category);
G_END_DECLS
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 8f5fd22..8d41517 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -27,6 +27,7 @@
#include "gs-app-private.h"
#include "gs-app-list-private.h"
+#include "gs-category-private.h"
#include "gs-plugin-loader.h"
#include "gs-plugin.h"
#include "gs-plugin-private.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]