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

@@ -193,12 +193,12 @@ struct plugin_handle
* @param config A configuration string
* @return 0 on success, -1 on error.
*/
extern int plugin_register(struct plugin_handle* handle, const char* config);
PLUGIN_API int plugin_register(struct plugin_handle* handle, const char* config);
/**
* @return 0 on success, -1 on error.
*/
extern int plugin_unregister(struct plugin_handle*);
PLUGIN_API int plugin_unregister(struct plugin_handle*);
typedef int (*plugin_register_f)(struct plugin_handle* handle, const char* config);
typedef int (*plugin_unregister_f)(struct plugin_handle*);