Mercurial > wgsdk
comparison src/include/main.h @ 1:7abb5d8b20ea v1.0
Initial commit: part 2
I added a config GUI, and actual stuff to the README.
The GUI was 'made' in Visual Studio, but I trimmed down the
resource file because it had weird VS2010 skid marks all over it.
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 07 Aug 2022 10:23:10 -0400 |
parents | d91dfd53b8b4 |
children | 42ac054c0231 |
comparison
equal
deleted
inserted
replaced
0:d91dfd53b8b4 | 1:7abb5d8b20ea |
---|---|
7 | 7 |
8 typedef struct { | 8 typedef struct { |
9 int version; // version of the plugin structure | 9 int version; // version of the plugin structure |
10 char *description; // name/title of the plugin | 10 char *description; // name/title of the plugin |
11 int(*init)(); // function which will be executed on init event | 11 int(*init)(); // function which will be executed on init event |
12 void(*config)(); // function which will be executed on config event | 12 void(*conf)(); // function which will be executed on config event |
13 void(*quit)(); // function which will be executed on quit event | 13 void(*quit)(); // function which will be executed on quit event |
14 HWND hwndParent; // hwnd of the Winamp client main window (stored by Winamp when dll is loaded) | 14 HWND hwndParent; // hwnd of the Winamp client main window (stored by Winamp when dll is loaded) |
15 HINSTANCE hDllInstance; // hinstance of this plugin DLL. (stored by Winamp when dll is loaded) | 15 HINSTANCE hDllInstance; // hinstance of this plugin DLL. (stored by Winamp when dll is loaded) |
16 } winamp_general_purpose_plugin; | 16 } winamp_general_purpose_plugin; |
17 | 17 |
21 struct IDiscordActivityManager* activities; | 21 struct IDiscordActivityManager* activities; |
22 }; | 22 }; |
23 | 23 |
24 void CALLBACK TimerProc(HWND, UINT, UINT_PTR, DWORD); | 24 void CALLBACK TimerProc(HWND, UINT, UINT_PTR, DWORD); |
25 int init(); | 25 int init(); |
26 void conf(); | |
26 void quit(); | 27 void quit(); |
28 void update_rich_presence_details(void); | |
27 #endif | 29 #endif |