Re: [Vala] LADSPA bindings
- From: Victor Aurélio Santos <victoraur santos gmail com>
- To: Al Thomas <astavale yahoo co uk>
- Cc: "vala-list gnome org" <vala-list gnome org>
- Subject: Re: [Vala] LADSPA bindings
- Date: Tue, 13 Sep 2016 11:55:13 -0300
Now...
[CCode (cname = "connect_port", has_target = false)]
public delegate void DescriptorConnectPort(Handle? instance, ulong
port, ref double dataLocation);
results in:
src/CompressorBackend.c: In function ‘ajami_compressor_backend_connect’:
src/CompressorBackend.c:674:2: error: unknown type name ‘connect_port’
connect_port _tmp2_ = NULL;
2016-09-13 6:40 GMT-03:00 Al Thomas <astavale yahoo co uk>:
----- Original Message -----
From: Victor Aurélio Santos <victoraur santos gmail com>
Sent: Tuesday, 13 September 2016, 3:22
Subject: Re: [Vala] LADSPA bindings
[CCode (has_target = false)]
public delegate void DescriptorConnectPort(Handle? instance, ulong
port, ref double dataLocation);
You probably want:
[CCode (cname = "connect_port", has_target = false)]
but...
src/CompressorBackend.c: In function ‘ajami_compressor_backend_connect’:
src/CompressorBackend.c:674:2: error: unknown type name
‘LADSPA_DescriptorConnectPort’
There are name conversion rules between the Vala side and C.
I've started to document them, but not completed the examples yet:
https://wiki.gnome.org/Projects/Vala/LegacyBindings#Naming_Conventions
For an example for delegates take a look at:
https://wiki.gnome.org/Projects/Vala/LegacyBindings#Delegates
--
Victor Aurélio Santos
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]