[pulseaudio-tickets] [Bug 93735] New: Missing cname declaration for callback delegates in Vala VAPI

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jan 16 06:43:19 PST 2016


https://bugs.freedesktop.org/show_bug.cgi?id=93735

            Bug ID: 93735
           Summary: Missing cname declaration for callback delegates in
                    Vala VAPI
           Product: PulseAudio
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: misc
          Assignee: pulseaudio-bugs at lists.freedesktop.org
          Reporter: marcin at saepia.net
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net

Created attachment 121074
  --> https://bugs.freedesktop.org/attachment.cgi?id=121074&action=edit
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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20160116/6e4589e4/attachment.html>


More information about the pulseaudio-bugs mailing list