-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make platform plug-ins implement an extension point
Instead of using dlopen/dlsym manually, turn existing platform modules into implementations of the platform extension point. This is mostly mechanical work to apply the following changes to each platform plug-in: - Add a subclass of CogPlatform e.g. CogFdoPlatform. - Make callback functions private to the platform plug-ins and install them as vfuncs of the CogPlatform class. - Support automatic selection of platform plug-ins by adding a new "is_suported" static vfunc. Note than other than the "is_supported" bit, no attempt is done at changing the architecture of the platform plug-ins.
- Loading branch information
Showing
15 changed files
with
517 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.