/* General Purpose HU WinAmp 2.X Plugin Dmitry Borisov (C)2005 Dmitry Borisov This file contains only WinAmp plugin methods. This file is a good starting point for any type of General Purpose plugin - just change the body of the init(), config() and quit() routines ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Library General Public ## License as published by the Free Software Foundation; either ## version 2 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Library General Public License for more details. ## ## You should have received a copy of the GNU Library General Public ## License along with this library; if not, write to the Free ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ## ## Dmitry Borisov */ #include "stdafx.h" #include "plugin.h" #include "HUMp3.h" /* forward declarations */ void config(void); int init(void); void quit(void); /* plugin description */ #define VERSION 0x10 #define DESCRIPTION "HU -> Winamp Remote Control" /* global variables */ winampGeneralPurposePlugin plugin = { VERSION, DESCRIPTION, init, config, quit, }; /* local variables */ static CHUMp3 hump3; // // Called To Configure the Plugin when the user // clicks the 'Configure' button // void config(void) { hump3.Config(); } // // Called when WinAmp exits // void quit(void) { hump3.Stop(); } // // Called when WinAmp starts. Must return 0 // int init(void) { hump3.Start(); return 0; } // // This is the only function exported by this DLL. It must // have this prototype. It returns the structure containing // the pointers to the init, config, and quit functions. This // function should also be named in the DEF file. WinAmp will // fill in hwndParent with the HANDLE of the WinAmp window, // which is useful for sending messages, etc. // __declspec( dllexport ) winampGeneralPurposePlugin * winampGetGeneralPurposePlugin() { return &plugin; }