api.cpp 359 B

123456789101112131415
  1. #include "Wasabi.h"
  2. #include "api__wasabi-replicant.h"
  3. #include "nswasabi/singleton.h"
  4. #include "foundation/error.h"
  5. SysCallbacks system_callbacks;
  6. ServiceManager service_manager;
  7. static SingletonServiceFactory<SysCallbacks, api_syscb> syscb_factory;
  8. int Wasabi_Init()
  9. {
  10. syscb_factory.Register(WASABI2_API_SVC, WASABI2_API_SYSCB);
  11. return NErr_Success;
  12. }