Summary: |
Missing cname declaration for callback delegates in Vala VAPI |
Product: |
PulseAudio
|
Reporter: |
Marcin Lewandowski <marcin> |
Component: |
misc | Assignee: |
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
|
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.
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.