diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/JSAPI2_Creator.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Winamp/JSAPI2_Creator.h')
-rw-r--r-- | Src/Winamp/JSAPI2_Creator.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Src/Winamp/JSAPI2_Creator.h b/Src/Winamp/JSAPI2_Creator.h new file mode 100644 index 00000000..b7af84e1 --- /dev/null +++ b/Src/Winamp/JSAPI2_Creator.h @@ -0,0 +1,31 @@ +#pragma once +#include "../Winamp/JSAPI2_svc_apicreator.h" + +#include <api/service/waservicefactory.h> +#include <api/service/services.h> + + +class JSAPI2CreatorFactory : public waServiceFactory +{ +public: + FOURCC GetServiceType(); + const char *GetServiceName(); + GUID GetGUID(); + void *GetInterface(int global_lock); + int SupportNonLockingInterface(); + int ReleaseInterface(void *ifc); + const char *GetTestString(); + int ServiceNotify(int msg, int param1, int param2); + +protected: + RECVS_DISPATCH; +}; + + +class JSAPI2_Creator : public JSAPI2::svc_apicreator +{ + IDispatch *CreateAPI(const wchar_t *name, const wchar_t *key, JSAPI::ifc_info *info); + int PromptForAuthorization(HWND parent, const wchar_t *group, const wchar_t *action, const wchar_t *authorization_key, JSAPI2::api_security::AuthorizationData *data); +protected: + RECVS_DISPATCH; +}; |