tree: 242584b8afcc281eb6cc18e6177324ad3630046e [path history] [tgz]
  1. api/
  2. base/
  3. linux/
  4. mac/
  5. posix/
  6. BUILD.gn
  7. README.md
platform/README.md

Platform API

The Platform API is designed to allow easy porting of the Open Screen Library between platforms. There are some default implementations included in the library.

Directory structure

  • api/ contains the Platform API which is used by the Open Screen Library. Some of the public API may also include adapter code that acts as a small shim above the C functions to be implemented by the platform.
  • Other directories contain default implementations provided for the API. Currently, this includes:
    • base/ is implemented without any platform-specific features and so may be included on any platform.
    • linux/ is specific to Linux.
    • posix/ is specific to Posix (i.e. Linux, BSD, Mac, etc.).