Commit graph

10 commits

Author SHA1 Message Date
Arun Raghavan
fb107fc770 vala: Add has_type_id=false to all enums, structs and classes
Since none of our types is derived from GType, explicitly signal this.
The default value for this attribute changed at some point, breaking our
bindings.
2011-08-31 11:35:35 +05:30
Alexander Kurtz
67ba3734ea 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-18 10:31:51 +02:00
Sean McNamara
13d1928f3e vala: ChannelMap has no destroy function. 2011-03-31 11:08:47 +01:00
Alexander Kurtz
9defe846e7 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:26:57 +00:00
Sean McNamara
f5d2c33e86 vala: delegate FreeCb does not have a target. 2011-03-25 09:14:45 +00:00
Alexander Kurtz
705cf4d316 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-24 21:43:29 +00:00
Lennart Poettering
534def2d2b vala: fix wrapping of port setting calls 2010-02-21 17:48:39 +01:00
Lennart Poettering
c25665ed10 vala: fix definition of the GLib mainloop adapter 2010-02-21 17:48:24 +01:00
Lennart Poettering
57e0e2cdab vala: fix definition of INVALID_INDEX 2010-02-21 17:48:20 +01:00
Lennart Poettering
ab6ed0683f vala: install .vapi file by default 2009-09-19 01:55:46 +02:00