uhub/src/plugins/mod_example.c

19 lines
352 B
C
Raw Normal View History

2010-06-06 14:15:15 +00:00
/**
* This is a minimal example plugin for uhub.
*/
#include "plugin_api/handle.h"
int plugin_register(struct plugin_handle* plugin, const char* config)
2010-06-06 14:15:15 +00:00
{
PLUGIN_INITIALIZE(plugin, "Example plugin", "1.0", "A simple example plugin");
2010-06-06 14:15:15 +00:00
return 0;
}
int plugin_unregister(struct plugin_handle* plugin)
2010-06-06 14:15:15 +00:00
{
/* No need to do anything! */
return 0;
2010-06-06 14:15:15 +00:00
}