summaryrefslogtreecommitdiff
path: root/core/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/main.cpp')
-rw-r--r--core/main.cpp10
1 files changed, 5 insertions, 5 deletions
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<service*> 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));
}