winamp/Src/Wasabi2/application.h

33 lines
792 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#pragma once
#include <application/api_application.h>
#include <nx/nxstring.h>
#include <nswasabi/ApplicationBase.h>
#include <nswasabi/ServiceName.h>
class Application : public ApplicationBase
{
public:
enum
{
INIT_ERROR_STRING_HEAP=1,
};
WASABI_SERVICE_NAME("Replicant/Winamp5 Application API");
Application();
~Application();
int Init();
/* api_application implementation */
//HANDLE WASABICALL Application_GetStringHeap();
const char * Application_GetUserAgent();
unsigned int Application_GetBuildNumber();
int Application_GetVersionString(nx_string_t *version);
int Application_GetProductShortName(nx_string_t *name);
private:
//HANDLE string_heap;
char user_agent[256];
nx_string_t version_string;
unsigned int build_number;
};
extern Application application;