amg.h 980 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include <bfc/dispatch.h>
  3. #include <api/service/services.h>
  4. class api_amgsucks : public Dispatchable
  5. {
  6. protected:
  7. api_amgsucks() {}
  8. ~api_amgsucks() {}
  9. public:
  10. int WriteAlbumArt(const void *data, size_t data_len, void **out, int *out_len);
  11. DISPATCH_CODES
  12. {
  13. WRITEALBUMART = 0,
  14. };
  15. };
  16. inline int api_amgsucks::WriteAlbumArt(const void *data, size_t data_len, void **out, int *out_len)
  17. {
  18. return _call(WRITEALBUMART, (int)2, data, data_len, out, out_len);
  19. }
  20. // {E93907C8-8CFD-47dc-87FC-80B5B03716CB}
  21. static const GUID amgSucksGUID =
  22. { 0xe93907c8, 0x8cfd, 0x47dc, { 0x87, 0xfc, 0x80, 0xb5, 0xb0, 0x37, 0x16, 0xcb } };
  23. class AMGSucks : public api_amgsucks
  24. {
  25. public:
  26. static FOURCC getServiceType() { return WaSvc::UNIQUE; }
  27. static const char *getServiceName() { return "AMG Sucks"; }
  28. static GUID getServiceGuid() { return amgSucksGUID; }
  29. private:
  30. int WriteAlbumArt(const void *data, size_t data_len, void **out, int *out_len);
  31. protected:
  32. RECVS_DISPATCH;
  33. };