entrypoints.nim 669 B

1234567891011121314151617181920212223
  1. #
  2. #
  3. # Nim's Runtime Library
  4. # (c) Copyright 2022 Emery Hemingway
  5. #
  6. # See the file "copying.txt", included in this
  7. # distribution, for details about the copyright.
  8. #
  9. ## See `Genode Foundations - Entrypoint <https://genode.org/documentation/genode-foundations/21.05/functional_specification/Entrypoint.html>`
  10. ## for a description of Entrypoints.
  11. type
  12. EntrypointObj {.
  13. importcpp: "Genode::Entrypoint",
  14. header: "<base/entrypoint.h>",
  15. pure.} = object
  16. Entrypoint* = ptr EntrypointObj
  17. ## Opaque Entrypoint object.
  18. proc ep*(env: GenodeEnv): Entrypoint {.importcpp: "(&#->ep())".}
  19. ## Access the entrypoint associated with `env`.