From c6ceb73febc0f5afcd01341a16dca768d5c627cd Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 17 Mar 2011 21:39:28 +0200 Subject: modified: api/ec_pluginapi.h modified: core/events.cpp modified: core/events.h modified: core/globals.h modified: core/modules.cpp modified: core/modules.h --- core/modules.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'core/modules.cpp') diff --git a/core/modules.cpp b/core/modules.cpp index 6eaf038..bcdcbe6 100644 --- a/core/modules.cpp +++ b/core/modules.cpp @@ -17,7 +17,7 @@ #include "commonheaders.h" -extern std::list plugins; + extern PLUGINLINK pluglink; @@ -150,3 +150,15 @@ const int plugin::get_plugin_id() { return pluginid; } + +const std::list plugin::get_event_list() +{ + return events; +} + + +int plugin::register_event(int type) +{ + events.push_back(type); + return 0; +} \ No newline at end of file -- cgit v1.2.3