After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 598266 - vala doesn't expose async interfaces methods into headers
vala doesn't expose async interfaces methods into headers
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Code Generator: GAsync
0.7.x
Other Linux
: Normal major
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2009-10-13 12:47 UTC by Frederik Sdun
Modified: 2010-02-12 10:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (219 bytes, text/x-vala)
2009-10-13 14:12 UTC, Frederik Sdun
Details
updated testcase (87 bytes, text/x-vala)
2010-02-03 01:19 UTC, Frederik Sdun
Details

Description Frederik Sdun 2009-10-13 12:47:25 UTC
If you compile a DBus interface into a library, the interfaces methods are not in the header file, which leads to compile errors. I attached a small example.

command for compilation:
valac --header=pc.h --library=pc --vapi=pc.vapi --pkg=dbus-glib-1 --pkg=gio-2.0 -C pc.vala
Comment 1 Frederik Sdun 2009-10-13 14:12:35 UTC
Created attachment 145354 [details]
testcase
Comment 2 Frederik Sdun 2010-02-03 01:19:05 UTC
Created attachment 152898 [details]
updated testcase


it's not because it's dbus interface, it's because the method is async

to compile use:

valac  --header=async_iface.h async_interface.vala  --pkg=gio-2.0 -C
Comment 3 Jürg Billeter 2010-02-12 10:01:44 UTC
commit 5ec6ff7aa0de85419c156d26c8b1c72349c4878d
Author: Jürg Billeter <j@bitron.ch>
Date:   Fri Feb 12 11:00:05 2010 +0100

    GAsync: Declare functions for abstract async methods
    
    Fixes bug 598266.