[Vala] Problem converting c to vala/genie
- From: Nicolas <c r n a wanadoo fr>
- To: vala-list gnome org
- Subject: [Vala] Problem converting c to vala/genie
- Date: Mon, 01 Nov 2010 15:11:58 +0100
Hello,
I'm trying to use a c library in genie and i have a question about
converting code.
This is the c code who makes me crazy !
The struct:
typedef struct _Widget_Data Widget_Data;
struct _Widget_Data
{
Object *myboject
};
Now in the function:
Widget_Data *wd;
wd = ELM_NEW(Widget_Data); <-- this is the problem
The ELM_NEW is declared like this in the header file:
#define ELM_NEW(t) calloc(1, sizeof(t))
How can i convert this on genie (or vala), at least it is possible ?
Thanks you in advance,
Nicolas.
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]