Made plugin loading work properly on Windows.

This commit is contained in:
Jan Vidar Krey
2011-09-08 01:00:32 +02:00
parent 0d8283930f
commit 39572c3684
4 changed files with 10 additions and 5 deletions

View File

@@ -203,7 +203,7 @@ static plugin_st delete_user(struct plugin_handle* plugin, struct auth_info* use
return st_default;
}
int plugin_register(struct plugin_handle* plugin, const char* config)
PLUGIN_API int plugin_register(struct plugin_handle* plugin, const char* config)
{
PLUGIN_INITIALIZE(plugin, "File authentication plugin", "0.1", "Authenticate users based on a read-only text file.");
@@ -219,7 +219,7 @@ int plugin_register(struct plugin_handle* plugin, const char* config)
return -1;
}
int plugin_unregister(struct plugin_handle* plugin)
PLUGIN_API int plugin_unregister(struct plugin_handle* plugin)
{
set_error_message(plugin, 0);
unload_acl(plugin->ptr);