diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-30 19:13:35 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-30 19:13:35 +0300 |
commit | 95fa1951781f7fea87830ae78983956d2b288331 (patch) | |
tree | fb6cb4f6b50ed89fcfa7949adee2100c76d4bf51 | |
parent | 7c8423594d9601ce6bf78838a36d896ab94e728e (diff) |
new file: core/basic-services.cpp
modified: core/commonheaders.h
new file: core/constants.h
modified: core/main.cpp
modified: core/services.h
-rw-r--r-- | core/basic-services.cpp | 12 | ||||
-rw-r--r-- | core/commonheaders.h | 4 | ||||
-rw-r--r-- | core/constants.h | 1 | ||||
-rw-r--r-- | core/main.cpp | 3 | ||||
-rw-r--r-- | core/services.h | 5 |
5 files changed, 21 insertions, 4 deletions
diff --git a/core/basic-services.cpp b/core/basic-services.cpp new file mode 100644 index 0000000..3774007 --- /dev/null +++ b/core/basic-services.cpp @@ -0,0 +1,12 @@ +#include "commonheaders.h" + +SERVICE get_version(void*) +{ + return 0; +} + + +void register_core_services() +{ + CreateServiceFunction("EC/GetVersionInt", (SERVICE)get_version); +} diff --git a/core/commonheaders.h b/core/commonheaders.h index 6528473..7815095 100644 --- a/core/commonheaders.h +++ b/core/commonheaders.h @@ -17,7 +17,9 @@ #include <ace/Log_Msg.h>
//utf8cpp
#include "include/utf8cpp/utf8.h" - +
+//ec
+#include "constants.h" #include "../api/ec_pluginapi.h" #include "services.h" #include "modules.h"
diff --git a/core/constants.h b/core/constants.h new file mode 100644 index 0000000..edce9aa --- /dev/null +++ b/core/constants.h @@ -0,0 +1 @@ +const unsigned long ec_version = 0x00000001;
\ No newline at end of file diff --git a/core/main.cpp b/core/main.cpp index 5a27e20..36b6f92 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -5,9 +5,6 @@ std::list<plugin*> plugins; boost::mutex plugin_list_mutex; std::list<service*> services; boost::mutex service_list_mutex; -void CreateServiceFunction(const char* name, SERVICE svc); -void* CallService(const char *,void*); -int ServiceExists(const char *); ACE_Log_Msg logger; diff --git a/core/services.h b/core/services.h index a915294..c498fc4 100644 --- a/core/services.h +++ b/core/services.h @@ -13,4 +13,9 @@ private: SERVICE pService; };
+void CreateServiceFunction(const char* name, SERVICE svc); +void* CallService(const char *,void*); +int ServiceExists(const char *); +
+
#endif // SERVICES_H_INCLUDED
|