diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2011-03-17 21:39:28 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2011-03-17 21:39:28 +0200 |
commit | c6ceb73febc0f5afcd01341a16dca768d5c627cd (patch) | |
tree | 98af5a8032b8d5e9dfa75f78ba92476f26c74bc3 /core/modules.cpp | |
parent | 4c917f2e2a43ea50cd287dd322dda9d08b213b7d (diff) |
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
Diffstat (limited to 'core/modules.cpp')
-rw-r--r-- | core/modules.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
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<plugin*> plugins; + extern PLUGINLINK pluglink; @@ -150,3 +150,15 @@ const int plugin::get_plugin_id() { return pluginid; } + +const std::list<int> plugin::get_event_list() +{ + return events; +} + + +int plugin::register_event(int type) +{ + events.push_back(type); + return 0; +}
\ No newline at end of file |