Re: [Vala] difference between using IntegerType and inheriting

2014-01-06 Thread rastersoft
My question, really, is which one is the best to define in a VAPI file a typedef. This is: if I have in C #typedef uint32_t xcb_atom_t; is better to define it as: [SimpleType] [IntegerType (rank = 9)] [CCode (cname = xcb_atom_t, has_type_id = false)] public struct Atom {

Re: [Vala] difference between using IntegerType and inheriting

2014-01-06 Thread Luca Bruno
Guess the second. On Mon, Jan 6, 2014 at 12:00 PM, rastersoft ras...@rastersoft.com wrote: My question, really, is which one is the best to define in a VAPI file a typedef. This is: if I have in C #typedef uint32_t xcb_atom_t; is better to define it as: [SimpleType]

[Vala] difference between using IntegerType and inheriting

2014-01-05 Thread rastersoft
Hi again: Another doubt I have is: what is the difference between doing: [SimpleType] [IntegerType (rank = 9)] [CCode (cname = c_name, has_type_id = false)] public struct StructName { } and [SimpleType] [CCode (cname = c_name, has_type_id = false)] public

Re: [Vala] difference between using IntegerType and inheriting

2014-01-05 Thread Luca Bruno
You inherit all the methods from uint32? ;) On Sun, Jan 5, 2014 at 9:51 PM, rastersoft ras...@rastersoft.com wrote: Hi again: Another doubt I have is: what is the difference between doing: [SimpleType] [IntegerType (rank = 9)] [CCode (cname = c_name, has_type_id = false)]