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

@@ -157,7 +157,7 @@ api_register_timed(const char *const plugin_name, void *callback, int interval_s
timed_function->interval_seconds = interval_seconds;
timed_function->timer = g_timer_new();
callbacks_add_timed(timed_function);
callbacks_add_timed(plugin_name, timed_function);
}
void