summaryrefslogtreecommitdiff
path: root/core/services.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2011-03-16 14:06:26 +0200
committerGluzskiy Alexandr <sss123next@list.ru>2011-03-16 14:06:26 +0200
commit7041ab5d41644bc3310b5c16b9c0aa3818a03d10 (patch)
treee3cab3306b88a72cd32e13bb4baa192f7d775e65 /core/services.cpp
parent01212a19ce05aaa27ff33dae06bed646e7a65535 (diff)
skeleton for events handler
functions return type correction
Diffstat (limited to 'core/services.cpp')
-rw-r--r--core/services.cpp8
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)