Re: [Vala] Confusing issue with static struct method: too many arguments to function

2018-01-25 Thread Abderrahim Kitouni
Hello, On Mon, 22 Jan 2018, 23:00 Michael Murphy, wrote: > I have the following which is automatically generated by bindgen. > > ```c > DistinstSector distinst_sector_megabyte(uint64_t value); > ``` > If the struct is returned (and passed as a parameter) like this in C, it should be a simple ty

Re: [Vala] Confusing issue with static struct method: too many arguments to function

2018-01-22 Thread Al Thomas via vala-list
> On Monday, 22 January 2018, 22:00:19 GMT, Michael Murphy wrote: > I have the following which is automatically generated by bindgen. Would that be vala-gen-introspect ? That's a bit of an old tool. I'm not sure how well it fares, butmay be a good starting point for a hand written bindings

[Vala] Confusing issue with static struct method: too many arguments to function

2018-01-22 Thread Michael Murphy
I have the following which is automatically generated by bindgen. ```c DistinstSector distinst_sector_megabyte(uint64_t value); ``` And I have this defined in the accompanying vapi file. ```vala [CCode (has_type_id = false)] public struct Sector { SectorKind flag; uint64