Use hash table for plugin timed functions

This commit is contained in:
James Booth
2016-07-04 21:48:04 +01:00
parent 3fe1d76a05
commit a779ad0764
3 changed files with 52 additions and 24 deletions

View File

@@ -66,8 +66,8 @@ typedef struct p_window_input_callback {
void callbacks_init(void);
void callbacks_close(void);
void callbacks_add_command(const char *const plugin, PluginCommand *command);
void callbacks_add_timed(PluginTimedFunction *timed_function);
void callbacks_add_command(const char *const plugin_name, PluginCommand *command);
void callbacks_add_timed(const char *const plugin_name, PluginTimedFunction *timed_function);
void callbacks_add_window_handler(const char *tag, PluginWindowCallback *window_callback);
void * callbacks_get_window_handler(const char *tag);