summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite/src/main.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-09-23 00:17:09 +0300
committeraunsane <aunsane@gmail.com>2018-09-23 00:17:09 +0300
commit96fb67177a90fb3ce4e18cad0ef1a3c7409e4f2d (patch)
tree8217dfeb2fe25a1f43e19e0290b3feb90c7e61b3 /plugins/Dbx_sqlite/src/main.cpp
parentdafbc9f884d3c696ecaadb9e32b90e831b04427a (diff)
dbx_sqlite: initial commit (not for use)
Diffstat (limited to 'plugins/Dbx_sqlite/src/main.cpp')
-rw-r--r--plugins/Dbx_sqlite/src/main.cpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/plugins/Dbx_sqlite/src/main.cpp b/plugins/Dbx_sqlite/src/main.cpp
new file mode 100644
index 0000000000..a7ed57bfee
--- /dev/null
+++ b/plugins/Dbx_sqlite/src/main.cpp
@@ -0,0 +1,44 @@
+#include "stdafx.h"
+
+CMPlugin g_plugin;
+
+extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_DATABASE, MIID_LAST };
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
+static PLUGININFOEX pluginInfoEx =
+{
+ sizeof(PLUGININFOEX),
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __COPYRIGHT,
+ __AUTHORWEB,
+ UNICODE_AWARE | STATIC_PLUGIN,
+ // {7C3D0A33-2646-4001-9107-F35EA299D292}
+ { 0x7c3d0a33, 0x2646, 0x4001, { 0x91, 0x7, 0xf3, 0x5e, 0xa2, 0x99, 0xd2, 0x92 } }
+};
+
+CMPlugin::CMPlugin() :
+ PLUGIN<CMPlugin>(nullptr, pluginInfoEx)
+{
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
+static DATABASELINK dblink =
+{
+ MDB_CAPS_CREATE | MDB_CAPS_COMPACT,
+ "dbx_sqlite",
+ L"SQLite database driver",
+ &CDbxSQLite::Create,
+ &CDbxSQLite::Check,
+ &CDbxSQLite::Load,
+};
+
+int CMPlugin::Load()
+{
+ RegisterDatabasePlugin(&dblink);
+ return 0;
+}