Hi,
The FFI documentation states the following in terms of defining a C struct fields when defining subclasses of ExternalStructure:
#####################################
For example, a color structur might implemented so:
- first, create a new class named color in the System Browser (subclass of ExternalStructure)
- add class method 'fields' to color
maybe, like this:
fields
^#((red 'byte')
(green 'byte')
(blue 'byte'))
##########################################
It only mentions simple data types, int, byte etc, as do the all the examples I've been able to find.
How do you define pointers to other structs that are fields that are part of the C struct. E.g.
C definition:
struct Statement
{
Stmt *stmt; /* statement handle */
Resultset **rsts; /* pointer to resultset list */
....
Thanks