Re: [Vala] writing a vapi
- From: "Levi Bard" <taktaktaktaktaktaktaktaktaktak gmail com>
- To: "Mihail Naydenov" <mlists ymail com>
- Cc: vala <vala-list gnome org>
- Subject: Re: [Vala] writing a vapi
- Date: Wed, 1 Oct 2008 08:54:45 -0400
Most of them a self-explanatory like cheader_filename and lower_case_cprefix
but for
type_signature
My wild guess is that this one is for DBus signatures.
IntegerType (rank = 6)
This is for types that are wrappers of integral types (int, byte, ...)
I believe the rank is to help vala determine which of these can be
safely cast to each other.
marshaller_type_name
This appears to be for types that are actually wrappers of types that
gobject knows about (int, string, GBoxed, ...)
instance_pos
This denotes the position of the instance argument in a method, e.g.:
C signature: int fputs(const char *s, FILE *stream);
Vala signature:
[CCode (cname = "fputs", instance_pos = -1)]
public void puts (string s);
Here, instance_pos being -1 signifies that stream is the last argument.
There are a couple of non-gobject vapis distributed with vala, like
the sdl ones, that might be helpful.
--
http://homes.eff.org/~barlow/EconomyOfIdeas.html
http://www.dreamsongs.com/MobSoftware.html
http://www.gnu.org/philosophy/shouldbefree.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]