summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2011-03-18 00:12:17 +0200
committerGluzskiy Alexandr <sss123next@list.ru>2011-03-18 00:12:17 +0200
commit4bcc86b7413f5ce76a1ceac92aa566a9bf13d685 (patch)
tree323cd03aaea1f5ff69cce4236b66f1130e9452b9 /api
parentf4a5bae0c010e3c20d6420c9de2bb74182b26b6e (diff)
service usage example in plugin example
modified: api/ec_pluginapi.h modified: core/services.cpp modified: core/services.h modified: plugins/example/main.cpp
Diffstat (limited to 'api')
-rw-r--r--api/ec_pluginapi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/ec_pluginapi.h b/api/ec_pluginapi.h
index 67b7c7d..6bcf5e7 100644
--- a/api/ec_pluginapi.h
+++ b/api/ec_pluginapi.h
@@ -34,7 +34,7 @@ typedef void* (*EVENT_HANDLER)(void*);
typedef struct
{
- void (*CreateServiceFunction)(const char *,SERVICE); //register new service "service name" in core (will be avaible for all modules)
+ int (*CreateServiceFunction)(const char *,SERVICE); //register new service "service name" in core (will be avaible for all modules)
void* (*CallService)(const char *,void*); //execute "service name" service with custom data (service dependent)
int (*ServiceExists)(const char *); //check if "service name" service exists
int (*RegisterEventHandler)(int, EVENT_HANDLER); //event type, handler function, return 0 on success