api.h 944 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef NULLSOFT_API_H
  2. #define NULLSOFT_API_H
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. #include <api/service/api_service.h>
  8. extern api_service *serviceManager;
  9. #define WASABI_API_SVC serviceManager
  10. #include <api/application/api_application.h>
  11. #define WASABI_API_APP applicationApi
  12. #include <api/service/waServiceFactory.h>
  13. #include "../Agave/Config/api_config.h"
  14. extern api_config *configApi;
  15. #define AGAVE_API_CONFIG configApi
  16. #include "../Agave/Language/api_language.h"
  17. #include "../Winamp/api_stats.h"
  18. extern api_stats *statsApi;
  19. #define AGAVE_API_STATS statsApi
  20. #include "../playlist/api_playlistmanager.h"
  21. extern api_playlistmanager *playlistManagerApi;
  22. #define AGAVE_API_PLAYLISTMANAGER playlistManagerApi
  23. HRESULT WasabiApi_Initialize(HINSTANCE hInstance, api_service *serviceApi);
  24. HRESULT WasabiApi_LoadDefaults();
  25. ULONG WasabiApi_AddRef(void);
  26. ULONG WasabiApi_Release(void);
  27. #endif