1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include "drawable.h" G_DEFINE_ABSTRACT_TYPE (TestDrawable, test_drawable, G_TYPE_OBJECT); static void test_drawable_class_init (TestDrawableClass *klass) { } static void test_drawable_init (TestDrawable *drawable) { } void test_drawable_do_foo (TestDrawable *drawable, int x) { }