diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/jpeg/amg.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/jpeg/amg.h')
-rw-r--r-- | Src/jpeg/amg.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Src/jpeg/amg.h b/Src/jpeg/amg.h new file mode 100644 index 00000000..f332cc55 --- /dev/null +++ b/Src/jpeg/amg.h @@ -0,0 +1,39 @@ +#pragma once + +#include <bfc/dispatch.h> +#include <api/service/services.h> +class api_amgsucks : public Dispatchable +{ +protected: + api_amgsucks() {} + ~api_amgsucks() {} +public: + int WriteAlbumArt(const void *data, size_t data_len, void **out, int *out_len); + + DISPATCH_CODES + { + WRITEALBUMART = 0, + }; +}; + +inline int api_amgsucks::WriteAlbumArt(const void *data, size_t data_len, void **out, int *out_len) +{ + return _call(WRITEALBUMART, (int)2, data, data_len, out, out_len); +} + +// {E93907C8-8CFD-47dc-87FC-80B5B03716CB} +static const GUID amgSucksGUID = +{ 0xe93907c8, 0x8cfd, 0x47dc, { 0x87, 0xfc, 0x80, 0xb5, 0xb0, 0x37, 0x16, 0xcb } }; + + +class AMGSucks : public api_amgsucks +{ +public: + static FOURCC getServiceType() { return WaSvc::UNIQUE; } + static const char *getServiceName() { return "AMG Sucks"; } + static GUID getServiceGuid() { return amgSucksGUID; } +private: + int WriteAlbumArt(const void *data, size_t data_len, void **out, int *out_len); +protected: + RECVS_DISPATCH; +};
\ No newline at end of file |