diff options
Diffstat (limited to 'plugins/VersionInfo/src/services.cpp')
-rw-r--r-- | plugins/VersionInfo/src/services.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/plugins/VersionInfo/src/services.cpp b/plugins/VersionInfo/src/services.cpp index 0efdb387f4..d78810637a 100644 --- a/plugins/VersionInfo/src/services.cpp +++ b/plugins/VersionInfo/src/services.cpp @@ -21,25 +21,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "common.h"
#include "services.h"
-HANDLE hsMenuCommand;
-HANDLE hsGetInfo;
-HANDLE hsServiceMode;
-
int bServiceMode = 0; //true only if plugin is running in service mode
int InitServices()
{
- hsMenuCommand = CreateServiceFunction(MS_VERSIONINFO_MENU_COMMAND, PluginMenuCommand);
- hsGetInfo = CreateServiceFunction(MS_VERSIONINFO_GETINFO, GetInfoService);
- hsServiceMode = CreateServiceFunction(MS_SERVICEMODE_LAUNCH, ServiceModeService);
- return 0;
-}
-
-int DestroyServices()
-{
- DestroyServiceFunction(hsMenuCommand);
- DestroyServiceFunction(hsGetInfo);
- DestroyServiceFunction(hsServiceMode);
+ CreateServiceFunction(MS_VERSIONINFO_MENU_COMMAND, PluginMenuCommand);
+ CreateServiceFunction(MS_VERSIONINFO_GETINFO, GetInfoService);
+ CreateServiceFunction(MS_SERVICEMODE_LAUNCH, ServiceModeService);
return 0;
}
|