[Vala] how vala types are mapped to C ones?
- From: vasaka gmail com
- To: vala-list gnome org
- Subject: [Vala] how vala types are mapped to C ones?
- Date: Fri, 30 Jan 2009 07:43:07 +0200
when writing .vapi file how to handle correctly types like int64_t and char[32]
in particular I need to wrap a structs from videodev.h
public struct video_capability
{
public char name[32];
public int type;
public int channels;/* Num channels */
public int audios;/* Num audio devices */
public int maxwidth;/* Supported width */
public int maxheight;/* And height */
public int minwidth;/* Supported width */
public int minheight;/* And height */
}
struct video_window
{
public __u32 x,y; /* Position of window */
public __u32 width,height; /* Its size */
public __u32 chromakey;
public __u32 flags;
public struct video_clip *clips; /* Set only */
public int clipcount;
}
and not shure that simple changing char name[32] to char* name and
__u32 to int will produce correct code in most cases.
and what to do with nested structures?
--
Vasily Levin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]