1
0

application.h 792 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <application/api_application.h>
  3. #include <nx/nxstring.h>
  4. #include <nswasabi/ApplicationBase.h>
  5. #include <nswasabi/ServiceName.h>
  6. class Application : public ApplicationBase
  7. {
  8. public:
  9. enum
  10. {
  11. INIT_ERROR_STRING_HEAP=1,
  12. };
  13. WASABI_SERVICE_NAME("Replicant/Winamp5 Application API");
  14. Application();
  15. ~Application();
  16. int Init();
  17. /* api_application implementation */
  18. //HANDLE WASABICALL Application_GetStringHeap();
  19. const char * Application_GetUserAgent();
  20. unsigned int Application_GetBuildNumber();
  21. int Application_GetVersionString(nx_string_t *version);
  22. int Application_GetProductShortName(nx_string_t *name);
  23. private:
  24. //HANDLE string_heap;
  25. char user_agent[256];
  26. nx_string_t version_string;
  27. unsigned int build_number;
  28. };
  29. extern Application application;