I am trying to externally load a function, tcgetattr actually.
The type for this is:
int tcgetattr(int, struct termios *);
How should I accomplish this in pop11 ?
So far I have set up a p_typespec for the termios struct.
But cannot seem to easily specify that I want a ptr to that struct as
the second argument.
I thought of using Get_tty_params from devio.p in $popsrc, but
I wasn't entirely certain how to call that with the correct
paramters either.
I have read ref external, external_data, defstruct etc, but am a bit
confused.
Cheers,
david
|