[Vala] [PATCH] Posix vapi, added scheduler (sched.h) functions

2011-01-03 Thread TreviƱo
I've included in the vala posix vapi all the scheduler functions provided by sched.h. A simple usage, could be for example this code (which shows the number of CPUs that you have): /* Compile with valac --pkg posix test-posix-sched.vala -v -X -D"_GNU_SOURCE" */ using Posix; int get_cpu_count()

[Vala] vala-gen-introspect struct vs. object

2011-01-03 Thread W. Michael Petullo
How does vala-gen-introspect differentiate between a basic struct and an object? I am trying to generate a Vala API file for an object, but vala-gen-introspect is classifying it as a struct: