I've got a load of code that I'm trying to convert into a native amiga program and I've got a question about converting some shared utility function libraries. I've got them as dll and so files on windows and unix. Given the nature of the program, keeping them as shared objects is quite expensive as the program also consists of a load of plugins (as shared objects) and the overhead of reloading the utility libraries as shared objects for each one is too much. The libraries only export functions, no data, so they should be ideal candidates for normal amiga shared libraries.
After playing around with idltool, I'm starting to see how the xml and code fit together but I have a couple of questions.
1. Is the struct interface *self parameter a requirement? My code itself doesn't need it, since it doesn't have any private library specific data, and it would mean that I could just use the same prototypes that are in the library already. Or do I need to create a load of stub routines that include the self parameter that simply call the original prototype. For example, is it enough to have something like
Code: Select all
void ConjugateQuaternion (Quaternion * const quaternion_p);
Code: Select all
void ConjugateQuaternion (struct EPRIFace *self, Quaternion * const quaternion_p);
cheers
billy