Re: [Vala] Interfaces and asynchronous methods

2012-08-14 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok, here are the interesting pieces of the code: interface backends : GLib.Object { [...] public abstract async BACKUP_RETVAL start_backup(out int64 last_backup_time); [...] } private backends backend; var rv=this.backend.start_backup(out

Re: [Vala] Interfaces and asynchronous methods

2012-08-14 Thread Tal Hadad
To: e...@yorba.org CC: vala-list@gnome.org Subject: Re: [Vala] Interfaces and asynchronous methods -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok, here are the interesting pieces of the code: interface backends : GLib.Object { [...] public abstract async BACKUP_RETVAL

Re: [Vala] Interfaces and asynchronous methods

2012-08-14 Thread Eric Gregory
On Tue, Aug 14, 2012 at 2:49 AM, rastersoft ras...@rastersoft.com wrote: BTW, Jim Nelson answered that I have to do something like this: run_async.begin(on_run_async_completed); /* ... */ void on_run_async(AsyncResult result, Object? source) { int result = run_async.end(result); }

[Vala] Interfaces and asynchronous methods

2012-08-13 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I tried to define an interface with an async method, but I receive this error in the line where I try to invoke it in an object that implements it: backup.vala:246.14-246.43: error: invocation of void method not allowed as expression Are

Re: [Vala] Interfaces and asynchronous methods

2012-08-13 Thread Eric Gregory
On Mon, Aug 13, 2012 at 4:03 PM, rastersoft ras...@rastersoft.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I tried to define an interface with an async method, but I receive this error in the line where I try to invoke it in an object that implements it: