wasabi.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef NULLSOFT_NOWPLAYING_PLUGIN_WASABI_HEADER
  2. #define NULLSOFT_NOWPLAYING_PLUGIN_WASABI_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. #include <api/application/api_application.h>
  8. #define WASABI_API_APP applicationApi
  9. #include "../Agave/Language/api_language.h"
  10. #include "../Winamp/JSAPI2_api_security.h"
  11. extern JSAPI2::api_security *jsapi2_securityApi;
  12. #define AGAVE_API_JSAPI2_SECURITY jsapi2_securityApi
  13. #include <obj_ombrowser.h>
  14. extern obj_ombrowser *browserManager;
  15. #define OMBROWSERMNGR browserManager
  16. #include <api/syscb/api_syscb.h>
  17. #define WASABI_API_SYSCB sysCallbackApi
  18. #include <ifc_omutility.h>
  19. extern ifc_omutility *omUtility;
  20. #define OMUTILITY omUtility
  21. BOOL WasabiApi_Initialize(HINSTANCE hInstance);
  22. ULONG WasabiApi_AddRef(void);
  23. ULONG WasabiApi_Release(void);
  24. void *Wasabi_QueryInterface(REFGUID interfaceGuid);
  25. void Wasabi_ReleaseInterface(REFGUID interfaceGuid, void *pInstance);
  26. #define QueryWasabiInterface(__interfaceType, __interfaceGuid) ((##__interfaceType*)Wasabi_QueryInterface(__interfaceGuid))
  27. #define ReleaseWasabiInterface(__interfaceGuid, __interfaceInstance) (Wasabi_ReleaseInterface((__interfaceGuid), (__interfaceInstance)))
  28. void Wasabi_SafeRelease(Dispatchable *pDisp);
  29. #endif // NULLSOFT_NOWPLAYING_PLUGIN_WASABI_HEADER