diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-02 10:20:28 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-02 10:20:28 +0300 |
commit | f2fd1ea7fd8b51a1792b463fb0406e3c9262eb48 (patch) | |
tree | 593bdfe45b26dc483b5eca6b0913ea891fc40e29 /core | |
parent | 0dae041269e8abcd25f5155f4e33a5198e498147 (diff) |
modified: ../api/pluginapi.h
modified: main.cpp
modified: service.h
Diffstat (limited to 'core')
-rw-r--r-- | core/main.cpp | 10 | ||||
-rw-r--r-- | core/service.h | 2 |
2 files changed, 6 insertions, 6 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)); } diff --git a/core/service.h b/core/service.h index dba551b..5c90929 100644 --- a/core/service.h +++ b/core/service.h @@ -5,7 +5,7 @@ class service public: const char *getName(); const SERVICE *getService(); - service(const char *name, const SERVICE &service); + service(const char *name, SERVICE *service); ~service(); private: char *szName; |