comp.lang.ada
 help / color / mirror / Atom feed
From: Jean-Baptiste CAMPESATO <camje_lemon@nospam.a2lf.org>
Subject: interfaces.C - Import struct
Date: Sun, 13 Mar 2005 08:53:34 +0100
Date: 2005-03-13T08:52:45+01:00	[thread overview]
Message-ID: <pan.2005.03.13.07.53.34.658187@nospam.a2lf.org> (raw)

Hello;
In a C Header file i've got this struct :
    typedef struct {
        void (*driver_setpixel_func) (int, int, int);
        int (*driver_getpixel_func) (int, int);
        void (*driver_hline_func) (int, int, int, int);
        void (*driver_fillbox_func) (int, int, int, int, int);
        void (*driver_putbox_func) (int, int, int, int, void *, int);
        void (*driver_getbox_func) (int, int, int, int, void *, int);
        void (*driver_putboxmask_func) (int, int, int, int, void *);
        void (*driver_putboxpart_func) (int, int, int, int, int, int, void *,
                                        int, int);
        void (*driver_getboxpart_func) (int, int, int, int, int, int, void *,
                                        int, int);
        void (*driver_copybox_func) (int, int, int, int, int, int);
    } framebufferfunctions;

And with the package interfaces.C i wan't to import this structure as
"type framebufferfunctions is record" but i don't know the equivalent of a
pointer for a function in Ada, and if i must import all the possible
function.
And c2ada doesn't work under SlackwareLinux 10.1, Debian Sarge, Fedora2.
I've a lot of error when i compile.
Somebody can help please ? (use c2ada on vgagl.h or explicate me how
translat this struct)
Thanks



             reply	other threads:[~2005-03-13  7:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-13  7:53 Jean-Baptiste CAMPESATO [this message]
2005-03-13  9:05 ` interfaces.C - Import struct Martin Krischik
2005-03-13 11:06   ` Jean-Baptiste CAMPESATO
2005-03-13 12:31   ` Simon Wright
2005-03-13 17:27     ` Martin Krischik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox