diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2011-03-16 14:06:26 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2011-03-16 14:06:26 +0200 |
commit | 7041ab5d41644bc3310b5c16b9c0aa3818a03d10 (patch) | |
tree | e3cab3306b88a72cd32e13bb4baa192f7d775e65 /core/services.cpp | |
parent | 01212a19ce05aaa27ff33dae06bed646e7a65535 (diff) |
skeleton for events handler
functions return type correction
Diffstat (limited to 'core/services.cpp')
-rw-r--r-- | core/services.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/services.cpp b/core/services.cpp index 06e060c..42f8fb8 100644 --- a/core/services.cpp +++ b/core/services.cpp @@ -20,7 +20,7 @@ extern std::list<service*> services; extern boost::mutex service_list_mutex; -int ServiceExists(const char *name); +bool ServiceExists(const char *name); void CreateServiceFunction(const char* name, SERVICE svc) { if(!ServiceExists(name)) @@ -42,7 +42,7 @@ void* CallService(const char *name,void* data) } return 0; } -int ServiceExists(const char *name) +bool ServiceExists(const char *name) { service_list_mutex.lock(); if(!services.empty()) @@ -50,10 +50,10 @@ int ServiceExists(const char *name) std::list<service*>::iterator end = services.end(); for(std::list<service*>::iterator i = services.begin(); i != end; ++i) if(!ACE_OS::strcmp((*i)->getName(), name)) - return 1; + return true; } service_list_mutex.unlock(); - return 0; + return false; } service::service(const char* name, SERVICE svc) |