summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorChuck Bell <chuck.bell@oracle.com>2011-07-19 10:17:58 -0400
committerChuck Bell <chuck.bell@oracle.com>2011-07-19 10:17:58 -0400
commit6119cc2bba0604de317d86fb9919dc2a86404843 (patch)
tree859be4265759eb648a697c9128aed95c39a62570 /plugin
parent3619ca59cbd954d1ec961ae6105954016934eed8 (diff)
downloadmariadb-git-6119cc2bba0604de317d86fb9919dc2a86404843.tar.gz
WL#5710 : mysql_plugin - enable or disable plugins
This patch adds a new client utility that enables or disables plugin features. The utility disables or enables a plugin using values (name, soname, and symbols) provided via a configuration file by the same name. For example, to ENABLE the daemon_example plugin, the utility will read the daemon_example.ini configuration file and use the values contained to enable or disable the plugin.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/daemon_example/CMakeLists.txt2
-rw-r--r--plugin/daemon_example/daemon_example.ini6
2 files changed, 8 insertions, 0 deletions
diff --git a/plugin/daemon_example/CMakeLists.txt b/plugin/daemon_example/CMakeLists.txt
index 60aa00687ba..1623c3025d7 100644
--- a/plugin/daemon_example/CMakeLists.txt
+++ b/plugin/daemon_example/CMakeLists.txt
@@ -15,3 +15,5 @@
MYSQL_ADD_PLUGIN(daemon_example daemon_example.cc
MODULE_ONLY MODULE_OUTPUT_NAME "libdaemon_example")
+
+INSTALL(FILES daemon_example.ini DESTINATION ${INSTALL_PLUGINDIR})
diff --git a/plugin/daemon_example/daemon_example.ini b/plugin/daemon_example/daemon_example.ini
new file mode 100644
index 00000000000..8d84456b635
--- /dev/null
+++ b/plugin/daemon_example/daemon_example.ini
@@ -0,0 +1,6 @@
+#
+# Plugin initialization file. Format using comma-separated values:
+# name, libname, symbol, [symbol, ]
+# Note: trailing comma is required.
+#
+daemon_example, libdaemon_example, daemon_example,