Debian Codegraph @

src/ws/cockpitwebfilter.h

raw
1 /*
2 * Copyright (C) 2015 Red Hat, Inc.
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6 #ifndef COCKPIT_WEB_FILTER_H__
7 #define COCKPIT_WEB_FILTER_H__
8
9 #include <glib-object.h>
10
11 G_BEGIN_DECLS
12
13 #define COCKPIT_TYPE_WEB_FILTER (cockpit_web_filter_get_type ())
14 G_DECLARE_INTERFACE(CockpitWebFilter, cockpit_web_filter, COCKPIT, WEB_FILTER, GObject)
15
16 struct _CockpitWebFilterInterface {
17 GTypeInterface parent_iface;
18
19 void (* push) (CockpitWebFilter *filter,
20 GBytes *block,
21 void (* function) (gpointer, GBytes *),
22 gpointer data);
23 };
24
25 void cockpit_web_filter_push (CockpitWebFilter *filter,
26 GBytes *queue,
27 void (* function) (gpointer, GBytes *),
28 gpointer data);
29
30 G_END_DECLS
31
32 #endif /* COCKPIT_WEB_FILTER_H__ */