rtoss - Blame information for rev 182

Subversion Repositories:
Rev:
Rev Author Line No. Line
182 roytam 1 #ifndef NULLSOFT_WINAMP_GEN_H
2 #define NULLSOFT_WINAMP_GEN_H
3  
4 #include <windows.h>
5  
6 #define GEN_INIT_SUCCESS 0
7  
8 // return values from the winampUninstallPlugin(HINSTANCE hdll, HWND parent, int param)
9 // which determine if we can uninstall the plugin immediately or on winamp restart
10 //
11 // uninstall support was added from 5.0+ and uninstall now support from 5.5+
12 // it is down to you to ensure that if uninstall now is returned that it will not cause a crash
13 // (ie don't use if you've been subclassing the main window)
14 #define GEN_PLUGIN_UNINSTALL_NOW 0x1
15 #define GEN_PLUGIN_UNINSTALL_REBOOT 0x0
16  
181 roytam 17 typedef struct {
18 int version;
19 char *description;
20 int (*init)();
21 void (*config)();
22 void (*quit)();
23 HWND hwndParent;
24 HINSTANCE hDllInstance;
25 } winampGeneralPurposePlugin;
26  
27 #define GPPHDR_VER 0x10
182 roytam 28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 //extern winampGeneralPurposePlugin *gen_plugins[256];
32 typedef winampGeneralPurposePlugin * (*winampGeneralPurposePluginGetter)();
33 #ifdef __cplusplus
34 }
35 #endif
181 roytam 36  
182 roytam 37 #endif