Commit 50570804 authored by Richard Hughes's avatar Richard Hughes

Unexport some GsCategory API the plugins should not use

parent 3454b1a2
......@@ -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 \
......
/* -*- 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: */
......@@ -32,7 +32,7 @@
#include <glib/gi18n.h>
#include "gs-category.h"
#include "gs-category-private.h"
struct _GsCategory
{
......
......@@ -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
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment