[Vala] How to set custom free function for an array?



Hello,

I am writing bindings for JACK.

I am struggling to properly handle jack_get_ports (
http://jackaudio.org/files/docs/html/group__PortSearching.html).

It returns const char **, but has to be freed by a dedicated jack_free
function instead of generic vala free func for arrays.

How can I handle this properly in Vala?

Marcin


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