0
|
1 #ifndef __main_h
|
|
2 #define __main_h
|
10
|
3
|
|
4 #include <windef.h>
|
0
|
5
|
|
6 typedef struct {
|
|
7 int version; // version of the plugin structure
|
|
8 char *description; // name/title of the plugin
|
|
9 int(*init)(); // function which will be executed on init event
|
1
|
10 void(*conf)(); // function which will be executed on config event
|
0
|
11 void(*quit)(); // function which will be executed on quit event
|
|
12 HWND hwndParent; // hwnd of the Winamp client main window (stored by Winamp when dll is loaded)
|
|
13 HINSTANCE hDllInstance; // hinstance of this plugin DLL. (stored by Winamp when dll is loaded)
|
|
14 } winamp_general_purpose_plugin;
|
|
15
|
|
16 struct app_t {
|
|
17 struct IDiscordCore* core;
|
|
18 struct IDiscordUsers* users;
|
|
19 struct IDiscordActivityManager* activities;
|
|
20 };
|
|
21
|
|
22 void CALLBACK TimerProc(HWND, UINT, UINT_PTR, DWORD);
|
|
23 int init();
|
1
|
24 void conf();
|
0
|
25 void quit();
|
1
|
26 void update_rich_presence_details(void);
|
10
|
27
|
0
|
28 #endif |