From 4bcc86b7413f5ce76a1ceac92aa566a9bf13d685 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 18 Mar 2011 00:12:17 +0200 Subject: service usage example in plugin example modified: api/ec_pluginapi.h modified: core/services.cpp modified: core/services.h modified: plugins/example/main.cpp --- api/ec_pluginapi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/ec_pluginapi.h') 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 -- cgit v1.2.3