Commit graph

9 commits

Author SHA1 Message Date
Alexander Kurtz
3bb6546548 vala: More vala fixes
1. Remove the "has_destroy_function=false" attribute. It was only
necessary because of a bug in vala which is fixed in 0.12. [1]

2. Add sizes to all fixed-size arrays to make vala recognize them as
such. Using symbolic constants for this is not yet supported. [2]

3. CardInfo struct: Move the brackets in the list of available profiles
to the type to make it clear that this is a dynamically-sized array. [3]

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=622773
[2] https://bugzilla.gnome.org/show_bug.cgi?id=647788
[3] http://0pointer.de/lennart/projects/pulseaudio/doxygen/structpa__card__info.html
2011-04-19 11:20:59 +01:00
Sean McNamara
93e7a19ee6 vala: ChannelMap has no destroy function. 2011-03-31 12:13:38 +01:00
Alexander Kurtz
64985aa9bb vala: move GLibMainLoop class into separate file to fix linker errors
Vala uses the name of the *.vapi file to determine the libraries to link
against. Since the pa_glib_mainloop_*() functions are in a separate
library (libpulse-mainloop-glib.so) the corresponding objects in the
Vala bindings have to be in a separate *.vapi file.

If you are compiling an app without the GLib integration you could use:
 $ valac --pkg=libpulse test.vala
but if you do use GLib you can use:
 $ valac --pkg=libpulse-mainloop-glib test.vala
(libpulse is a dep of the libpulse-mainloop-glib so no need to specify
it explicitly)
2011-03-26 11:33:54 +00:00
Sean McNamara
ea0a2a603c vala: delegate FreeCb does not have a target. 2011-03-25 09:15:15 +00:00
Alexander Kurtz
4fa7495a31 vala: Some bugfixes for the vala bindings
1. PA uses Vala's "Posix" package (see line 23 of libpulse.vapi).
    These dependencies have to be declared in the *.deps file.

 2. Fix obvious copy/paste error.

 3. Rename the parameter to match the C function. This simplifies
    understanding what this parameter means.

 4. According to the official documentation the "dev" parameter
    for playback/capture streams on connection may be NULL and this
    is the default. Change the method definition accordingly.
2011-03-25 09:15:09 +00:00
Lennart Poettering
117c99de3a vala: fix wrapping of port setting calls 2010-02-21 17:36:51 +01:00
Lennart Poettering
6bbdd200e8 vala: fix definition of the GLib mainloop adapter 2010-02-19 03:32:00 +01:00
Lennart Poettering
5ce18c32f6 vala: fix definition of INVALID_INDEX 2010-02-19 03:31:46 +01:00
Lennart Poettering
ab6ed0683f vala: install .vapi file by default 2009-09-19 01:55:46 +02:00