#include <db-util.h>
#include <tcore.h>
+#include <server.h>
#include <plugin.h>
#include <storage.h>
static void on_unload(TcorePlugin *p)
{
+ Storage *strg;
+
+ if (!p)
+ return;
+
dbg("i'm unload!");
+
+ strg = tcore_server_find_storage(tcore_plugin_ref_server(p), "database");
+ if (!strg)
+ return;
+
+ tcore_storage_free(strg);
return;
+
}
EXPORT_API struct tcore_plugin_define_desc plugin_define_desc = {