comp.lang.ada
 help / color / mirror / Atom feed
* interfaces.C - Import struct
@ 2005-03-13  7:53 Jean-Baptiste CAMPESATO
  2005-03-13  9:05 ` Martin Krischik
  0 siblings, 1 reply; 5+ messages in thread
From: Jean-Baptiste CAMPESATO @ 2005-03-13  7:53 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-03-13 17:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-13  7:53 interfaces.C - Import struct Jean-Baptiste CAMPESATO
2005-03-13  9:05 ` Martin Krischik
2005-03-13 11:06   ` Jean-Baptiste CAMPESATO
2005-03-13 12:31   ` Simon Wright
2005-03-13 17:27     ` Martin Krischik

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