Re: [Vala] trying vapi file for ngspice

2014-06-24 Thread Evan Nemerson
Based on a quick look at the documentation, my guess would be [CCode (cname = "ngGet_Vec_Info")] public static unowned VectorInfo? get_vector_info (string name); That said, if you put it in the VectorInfo class you might want to consider changing the name to "from_string" or somet

Re: [Vala] trying vapi file for ngspice

2014-06-24 Thread Steven Vanden Branden
sorry got a typo, the first vapi i have here is: public VectorInfo get_vector_info(string vector_name); Steven Vanden Branden schreef op Tue 24-06-2014 om 17:48 [+0200]: > thanks a lot, > it working afther some tweaking and testing. > > but i got another question: > > i would like to get the ve

Re: [Vala] trying vapi file for ngspice

2014-06-24 Thread Steven Vanden Branden
thanks a lot, it working afther some tweaking and testing. but i got another question: i would like to get the vector info struct working with this function: VAPI: [CCode (cname = "ngGet_Vec_Info")] public unowned VectorInfo get_vector_info(string