main.h 828 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "../../Library/ml_pmp/pmp.h"
  3. #include "../Winamp/wa_ipc.h"
  4. #include <bfc/platform/types.h>
  5. #include "modelInfo.h"
  6. extern PMPDevicePlugin plugin;
  7. extern int winampVersion;
  8. extern GUID winamp_id;
  9. extern char winamp_id_str[40];
  10. extern char winamp_name[260];
  11. extern wchar_t inifile[MAX_PATH];
  12. void StopListenServer();
  13. BOOL FormatResProtocol(const wchar_t *resourceName, const wchar_t *resourceType, wchar_t *buffer, size_t bufferMax);
  14. // result from <device> XML data structure
  15. struct DeviceInfo
  16. {
  17. uint64_t total_space, used_space;
  18. uint64_t id;
  19. wchar_t manufacturer[128];
  20. wchar_t model[128];
  21. wchar_t name[128];
  22. wchar_t product[128];
  23. const ModelInfo *modelInfo;
  24. };
  25. extern "C" void DeviceInfo_Init(DeviceInfo *device_info);
  26. extern "C" void DeviceInfo_Copy(DeviceInfo *dest, const DeviceInfo *source);