mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-29 05:21:23 +01:00
15 lines
303 B
Vala
15 lines
303 B
Vala
int main(string[] args)
|
|
{
|
|
var loop = new MainLoop();
|
|
|
|
var foo = new Foo(loop);
|
|
foo.an_event.connect(() => {stdout.printf("Foo"); stdout.flush(); return false;});
|
|
|
|
var bar = new Bar(loop);
|
|
bar.an_event.connect(() => {stdout.printf("Bar\n"); loop.quit(); return false;});
|
|
|
|
loop.run();
|
|
|
|
return 0;
|
|
}
|