2 * Copyright © 2020 Nick Bowler
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 #ifndef TEST_FOOABLE_H_
19 #define TEST_FOOABLE_H_
21 #include <glib-object.h>
23 #define TEST_TYPE_FOOABLE (test_fooable_get_type())
24 #define TEST_FOOABLE(obj) \
25 G_TYPE_CHECK_INSTANCE_CAST(obj, TEST_TYPE_FOOABLE, TestFooableIface)
26 #define TEST_IS_FOOABLE(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, TEST_TYPE_FOOABLE)
27 #define TEST_FOOABLE_GET_INTERFACE(inst) \
28 G_TYPE_INSTANCE_GET_INTERFACE(inst, TEST_TYPE_FOOABLE, TestFooableIface)
30 typedef struct TestFooableIface TestFooableIface;
31 struct TestFooableIface {
32 GTypeInterface parent;
34 int (*foo)(GObject *obj);
37 GType test_fooable_get_type(void);
38 int test_foo(GObject *go);