Debian Codegraph @

src/ws/cockpitflow.h

raw
1 /*
2 * Copyright (C) 2018 Red Hat, Inc.
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6 #ifndef COCKPIT_FLOW_H__
7 #define COCKPIT_FLOW_H__
8
9 #include <glib-object.h>
10
11 G_BEGIN_DECLS
12
13 #define COCKPIT_TYPE_FLOW (cockpit_flow_get_type ())
14 G_DECLARE_INTERFACE(CockpitFlow, cockpit_flow, COCKPIT, FLOW, GObject)
15
16 struct _CockpitFlowInterface {
17 GTypeInterface parent_iface;
18
19 void (* throttle) (CockpitFlow *flow,
20 CockpitFlow *controlling);
21 };
22
23 void cockpit_flow_throttle (CockpitFlow *flow,
24 CockpitFlow *controller);
25
26 void cockpit_flow_emit_pressure (CockpitFlow *flow,
27 gboolean pressure);
28
29 G_END_DECLS
30
31 #endif /* COCKPIT_FLOW_H__ */