blob: 56f1e2f5493fc7b37b927af48821df33778ecbf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
[ModuleInit]
public GLib.Type init_plugin (TypeModule? m) {
return typeof (Foo);
}
[DBus (name = "org.example.Test")]
public interface Foo : GLib.TypeModule {
public void do_foo (Variant value) {
}
}
void main () {
// https://bugzilla.gnome.org/show_bug.cgi?id=684282
#if GLIB_2_56
var o = GLib.Object.new (init_plugin (null));
assert (o is TypeModule);
assert (o is Foo);
#endif
}
|