Re: [Vala] LADSPA bindings







----- 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]