The latest version in philmoz-reorg includes quite a few changes to try and make the module code cleaner and less prone to including camera dependencies. This was a deeper rabbit hole than I first imagined
Main changes:
- remove camera dependencies from stdlib.h. All the work for the differences in the 'open', 'stat' and directory functions in now done in the wrapper code. Note this meant a change to the llibtst.lua script because the internal 'stat' structure is now simpler.
- split platform_camera.h and camera.h into pieces (e.g. camera_info.h, viewports.h, etc). These are now included in the module code and attempting to include either camera.h or platform_camera.h will give a compile error in a module.
- clean up include file usage in other source files
- simplify module header files
- remove the safe_XXX functions which are no longer needed for modules
- probably other stuff I've forgotten
I haven't encountered any problems so far, tested on both VxWorks and DryOS cameras; but the changes are extensive so I may have broken something.
Testing and feedback appreciated as always.
Phil.