[slang-users] Advice on "complex" data type integration
John E. Davis
davis at space.mit.edu
Sun Oct 23 18:40:14 EDT 2005
Robert Lipe <robertlipe at usa.net> wrote:
>So given my data types at
> http://cvs.sourceforge.net/viewcvs.py/gpsbabel/gpsbabel/defs.h?view=markup
>for struct waypoint, I'd like to be able to write Slang fragments like:
[...]
>from here, so I'd appreciate any pointers that can be offered. Do you
>have a good example on file of mapping things beyond simple C structs
>into Slang?
Have you considered using slirp <http://space.mit.edu/~mnoble/slirp/>
to wrap the functions and data structures in this file? It should
produce something that is more or less a straightforward mapping of
your interface, and handle all the memory management for you.
Mike Noble is the slirp expert and can probably provide additional
details.
Thanks,
--John
More information about the slang-users-l
mailing list