From f2fd1ea7fd8b51a1792b463fb0406e3c9262eb48 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 2 Aug 2010 10:20:28 +0300 Subject: modified: ../api/pluginapi.h modified: main.cpp modified: service.h --- core/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/main.cpp') diff --git a/core/main.cpp b/core/main.cpp index 7e7586d..32e066c 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -15,7 +15,7 @@ list services; int LoadModules(); INT_PTR CallService(const char *name, WPARAM w, LPARAM l); -HANDLE CreateServiceFunction(const char *name, SERVICE pService); +HANDLE CreateServiceFunction(const char *name, SERVICE *pService); int ServiceExists(const char *name); int GetPluginInfoList(WPARAM, LPARAM); @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) if((*p)->getFuncs().loaded) (*p)->getFuncs().loaded(); } -// CreateServiceFunction("GetPluginInfoList", GetPluginInfoList); + CreateServiceFunction("GetPluginInfoList", (INT_PTR (**)(WPARAM, LPARAM))&GetPluginInfoList); for(;;) Sleep(1000); return 0; @@ -115,11 +115,11 @@ plugin::~plugin() FreeLibrary(hModule); free(szPluginName); } -service::service(const char *name, const SERVICE &service) +service::service(const char *name, SERVICE *service) { szName = new char [strlen(name)+1]; strcpy(szName, name); - *pService = service; + pService = service; } const char *service::getName() { @@ -141,7 +141,7 @@ INT_PTR CallService(const char *name, WPARAM w, LPARAM l) } return 0; } -HANDLE CreateServiceFunction(const char *name, const SERVICE pService) +HANDLE CreateServiceFunction(const char *name, SERVICE *pService) { services.push_back(new service(name, pService)); } -- cgit v1.2.3