Reworked plugin APIs slightly, added full support for authentication from plugins.

This commit is contained in:
Jan Vidar Krey
2010-07-29 08:43:22 +02:00
parent c75090cdf2
commit 93be2c584e
12 changed files with 244 additions and 140 deletions

View File

@@ -26,7 +26,7 @@
struct hub_config;
struct linked_list;
struct uhub_plugin_handle;
struct plugin_handle;
struct uhub_plugin
{
@@ -42,10 +42,10 @@ struct uhub_plugins
};
// High level plugin loader ode
extern struct uhub_plugin_handle* plugin_load(const char* filename, const char* config);
extern void plugin_unload(struct uhub_plugin_handle* plugin);
extern struct plugin_handle* plugin_load(const char* filename, const char* config);
extern void plugin_unload(struct plugin_handle* plugin);
// extern void plugin_unload(struct uhub_plugin_handle*);
// extern void plugin_unload(struct plugin_handle*);
extern int plugin_initialize(struct hub_config* config, struct uhub_plugins* handle);
extern void plugin_shutdown(struct uhub_plugins* handle);