summaryrefslogtreecommitdiff
path: root/core/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-08-02 10:20:28 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-08-02 10:20:28 +0300
commitf2fd1ea7fd8b51a1792b463fb0406e3c9262eb48 (patch)
tree593bdfe45b26dc483b5eca6b0913ea891fc40e29 /core/main.cpp
parent0dae041269e8abcd25f5155f4e33a5198e498147 (diff)
modified: ../api/pluginapi.h
modified: main.cpp modified: service.h
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));
}