wasabi.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef NULLSOFT_WEBDEV_PLUGIN_WASABI_HEADER
  2. #define NULLSOFT_WEBDEV_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 "../Agave/ExplorerFindFile/api_explorerfindfile.h"
  11. #include "../Winamp/JSAPI2_api_security.h"
  12. extern JSAPI2::api_security *jsapi2_securityApi;
  13. #define AGAVE_API_JSAPI2_SECURITY jsapi2_securityApi
  14. #include <obj_ombrowser.h>
  15. extern obj_ombrowser *browserManager;
  16. #define OMBROWSERMNGR browserManager
  17. #include <ifc_omservicemanager.h>
  18. extern ifc_omservicemanager *serviceManager;
  19. #define OMSERVICEMNGR serviceManager
  20. #include <ifc_omutility.h>
  21. extern ifc_omutility *omUtility;
  22. #define OMUTILITY omUtility
  23. BOOL WasabiApi_Initialize(HINSTANCE hInstance);
  24. ULONG WasabiApi_AddRef(void);
  25. ULONG WasabiApi_Release(void);
  26. void *Wasabi_QueryInterface(REFGUID interfaceGuid);
  27. void Wasabi_ReleaseInterface(REFGUID interfaceGuid, void *pInstance);
  28. #define QueryWasabiInterface(__interfaceType, __interfaceGuid) ((##__interfaceType*)Wasabi_QueryInterface(__interfaceGuid))
  29. #define ReleaseWasabiInterface(__interfaceGuid, __interfaceInstance) (Wasabi_ReleaseInterface((__interfaceGuid), (__interfaceInstance)))
  30. void Wasabi_SafeRelease(Dispatchable *pDisp);
  31. #endif // NULLSOFT_WEBDEV_PLUGIN_WASABI_HEADER