api__ml_online.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #ifndef NULLOSFT_ONLINEMEDIA_WASABI_API_HEADER
  2. #define NULLOSFT_ONLINEMEDIA_WASABI_API_HEADER
  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 *wasabiManager;
  9. #define WASABI_API_SVC wasabiManager
  10. #include <api/application/api_application.h>
  11. #define WASABI_API_APP applicationApi
  12. #include "../Agave/Config/api_config.h"
  13. #include "../Agave/Language/api_language.h"
  14. #include <api/memmgr/api_memmgr.h>
  15. extern api_memmgr *memManagerApi;
  16. #define WASABI_API_MEMMNGR memManagerApi
  17. #include "../Agave/ExplorerFindFile/api_explorerfindfile.h"
  18. #include "../Winamp/JSAPI2_api_security.h"
  19. extern JSAPI2::api_security *jsapi2_securityApi;
  20. #define AGAVE_API_JSAPI2_SECURITY jsapi2_securityApi
  21. #include <api/service/svcs/svc_imgload.h>
  22. extern svc_imageLoader *pngLoaderApi;
  23. #define WASABI_API_PNGLOADER pngLoaderApi
  24. EXTERN_C const GUID pngLoaderGUID;
  25. #include "../auth/api_auth.h"
  26. extern api_auth *authApi;
  27. #define AGAVE_API_AUTH authApi
  28. #include <obj_ombrowser.h>
  29. extern obj_ombrowser *browserManager;
  30. #define OMBROWSERMNGR browserManager
  31. #include <ifc_omservicemanager.h>
  32. extern ifc_omservicemanager *serviceManager;
  33. #define OMSERVICEMNGR serviceManager
  34. #include <ifc_omutility.h>
  35. extern ifc_omutility *omUtility;
  36. #define OMUTILITY omUtility
  37. HRESULT WasabiApi_Initialize(HINSTANCE hInstance, api_service *serviceApi);
  38. HRESULT WasabiApi_LoadDefaults();
  39. ULONG WasabiApi_AddRef(void);
  40. ULONG WasabiApi_Release(void);
  41. void *Wasabi_QueryInterface(REFGUID interfaceGuid);
  42. void Wasabi_ReleaseInterface(REFGUID interfaceGuid, void *pInstance);
  43. #define QueryWasabiInterface(__interfaceType, __interfaceGuid) ((##__interfaceType*)Wasabi_QueryInterface(__interfaceGuid))
  44. #define ReleaseWasabiInterface(__interfaceGuid, __interfaceInstance) (Wasabi_ReleaseInterface((__interfaceGuid), (__interfaceInstance)))
  45. #endif // NULLOSFT_ONLINEMEDIA_WASABI_API_HEADER