mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
The big thing going on here is that we are going to split up the libraries a bit better, and remove GObject from the capture library. The libsysprof library will bring in the capture library statically, so we can export the symbols we want. Eventually, we will bump the version to sysprof-3, but not yet.
53 lines
1.8 KiB
C
53 lines
1.8 KiB
C
/* sp-model-filter.h
|
|
*
|
|
* Copyright 2016-2019 Christian Hergert <christian@hergert.me>
|
|
*
|
|
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
#ifndef SP_MODEL_FILTER_H
|
|
#define SP_MODEL_FILTER_H
|
|
|
|
#include <gio/gio.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define SP_TYPE_MODEL_FILTER (sp_model_filter_get_type())
|
|
|
|
typedef gboolean (*SpModelFilterFunc) (GObject *object,
|
|
gpointer user_data);
|
|
|
|
G_DECLARE_DERIVABLE_TYPE (SpModelFilter, sp_model_filter, SP, MODEL_FILTER, GObject)
|
|
|
|
struct _SpModelFilterClass
|
|
{
|
|
GObjectClass parent_class;
|
|
|
|
gpointer padding[8];
|
|
};
|
|
|
|
SpModelFilter *sp_model_filter_new (GListModel *child_model);
|
|
GListModel *sp_model_filter_get_child_model (SpModelFilter *self);
|
|
void sp_model_filter_invalidate (SpModelFilter *self);
|
|
void sp_model_filter_set_filter_func (SpModelFilter *self,
|
|
SpModelFilterFunc filter_func,
|
|
gpointer filter_func_data,
|
|
GDestroyNotify filter_func_data_destroy);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* SP_MODEL_FILTER_H */
|