Bug 93735

Summary: Missing cname declaration for callback delegates in Vala VAPI
Product: PulseAudio Reporter: Marcin Lewandowski <marcin>
Component: miscAssignee: pulseaudio-bugs
Status: RESOLVED FIXED QA Contact: pulseaudio-bugs
Severity: enhancement    
Priority: medium CC: lennart
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch

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.