1
0

api.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef NULLSOFT_API_H
  2. #define NULLSOFT_API_H
  3. #include <windows.h>
  4. int LoadWasabi();
  5. void UnloadWasabi();
  6. #include "../playlist/api_playlistmanager.h"
  7. extern api_playlistmanager *playlistManager;
  8. #define AGAVE_API_PLAYLISTMANAGER playlistManager
  9. #include "../Agave/Config/api_config.h"
  10. extern api_config *config;
  11. #define AGAVE_API_CONFIG config
  12. #include <api/application/api_application.h>
  13. extern api_application *applicationApi;
  14. #define WASABI_API_APP applicationApi
  15. #include <api/memmgr/api_memmgr.h>
  16. extern api_memmgr *memmgr;
  17. #define WASABI_API_MEMMGR memmgr
  18. #include "../Agave/Language/api_language.h"
  19. // these are custom defines for the out_wave and out_ds embedded implementations
  20. extern HINSTANCE WASABI_API_LNG_HINST_WAV, WASABI_API_LNG_HINST_WAV_ORIG;
  21. extern HINSTANCE WASABI_API_LNG_HINST_DS, WASABI_API_LNG_HINST_DS_ORIG;
  22. #define WASABI_API_LNGSTRING_WAV(uID) WASABI_API_LNGSTR(WASABI_API_LNG_HINST_WAV,WASABI_API_LNG_HINST_WAV_ORIG,uID)
  23. #define WASABI_API_LNGSTRING_BUF_WAV(uID,buf,len) WASABI_API_LNGSTR(WASABI_API_LNG_HINST_WAV,WASABI_API_LNG_HINST_WAV_ORIG,uID,buf,len)
  24. #define WASABI_API_LNGSTRINGW_WAV(uID) WASABI_API_LNGSTRW(WASABI_API_LNG_HINST_WAV,WASABI_API_LNG_HINST_WAV_ORIG,uID)
  25. #define WASABI_API_LNGSTRINGW_BUF_WAV(uID,buf,len) WASABI_API_LNGSTRW(WASABI_API_LNG_HINST_WAV,WASABI_API_LNG_HINST_WAV_ORIG,uID,buf,len)
  26. #define WASABI_API_LNGSTRING_DS(uID) WASABI_API_LNGSTR(WASABI_API_LNG_HINST_DS,WASABI_API_LNG_HINST_DS_ORIG,uID)
  27. #define WASABI_API_LNGSTRING_BUF_DS(uID,buf,len) WASABI_API_LNGSTR(WASABI_API_LNG_HINST_DS,WASABI_API_LNG_HINST_DS_ORIG,uID,buf,len)
  28. #define WASABI_API_LNGSTRINGW_DS(uID) WASABI_API_LNGSTRW(WASABI_API_LNG_HINST_DS,WASABI_API_LNG_HINST_DS_ORIG,uID)
  29. #define WASABI_API_LNGSTRINGW_BUF_DS(uID,buf,len) WASABI_API_LNGSTRW(WASABI_API_LNG_HINST_DS,WASABI_API_LNG_HINST_DS_ORIG,uID,buf,len)
  30. #endif