Bug 93735 - Missing cname declaration for callback delegates in Vala VAPI
Summary: Missing cname declaration for callback delegates in Vala VAPI
Status: RESOLVED FIXED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-16 14:43 UTC by Marcin Lewandowski
Modified: 2016-01-18 04:43 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch (2.70 KB, text/plain)
2016-01-16 14:43 UTC, Marcin Lewandowski
Details

Description Marcin Lewandowski 2016-01-16 14:43:19 UTC
Created attachment 121074 [details]
Patch

There're no cname declarations for callback definitions, such as PulseAudio.Context.SubscribeCb in Vala's VAPI.

It causes problems when you want to pass callback function as a parameter. Vala compiler tries to guess underlying C type name, and ends up with something like pa_context_SubscribeCb which is obviously not valid.

The attached patch adds proper definitions, so it works fine.
Comment 1 Arun Raghavan 2016-01-18 04:43:45 UTC
Thanks, Marcin! I've pushed this out to our 'next' branch now and it'll be part of the next release (we're frozen for 8.0 right now).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.