summaryrefslogtreecommitdiff
path: root/plugin/fulltext
diff options
context:
space:
mode:
authoristruewing@chilla.local <>2007-04-24 11:23:12 +0200
committeristruewing@chilla.local <>2007-04-24 11:23:12 +0200
commita90109dd2b79882a94f2122ec2d8acec2ff2c78b (patch)
treebc6385166c3aa5ff88d45808ed6737a1f4a0e108 /plugin/fulltext
parent3e87e65b0a37859e226fb59d267c368b6640183a (diff)
parent98ff6f0a9571131784f3f53434e031eae29b3f3f (diff)
downloadmariadb-git-a90109dd2b79882a94f2122ec2d8acec2ff2c78b.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-wl2936
into chilla.local:/home/mydev/mysql-5.1-wl2936-two
Diffstat (limited to 'plugin/fulltext')
-rw-r--r--plugin/fulltext/plugin_example.c27
1 files changed, 25 insertions, 2 deletions
diff --git a/plugin/fulltext/plugin_example.c b/plugin/fulltext/plugin_example.c
index c38498fb9e8..67c16a91268 100644
--- a/plugin/fulltext/plugin_example.c
+++ b/plugin/fulltext/plugin_example.c
@@ -216,6 +216,29 @@ static struct st_mysql_show_var simple_status[]=
};
/*
+ Plugin system variables.
+*/
+
+static long sysvar_one_value;
+static char *sysvar_two_value;
+
+static MYSQL_SYSVAR_LONG(simple_sysvar_one, sysvar_one_value,
+ PLUGIN_VAR_RQCMDARG,
+ "Simple fulltext parser example system variable number one. Give a number.",
+ NULL, NULL, 100L, 10L, ~0L, 0);
+
+static MYSQL_SYSVAR_STR(simple_sysvar_two, sysvar_two_value,
+ PLUGIN_VAR_RQCMDARG | PLUGIN_VAR_MEMALLOC,
+ "Simple fulltext parser example system variable number two. Give a string.",
+ NULL, NULL, NULL);
+
+static struct st_mysql_sys_var* simple_system_variables[]= {
+ MYSQL_SYSVAR(simple_sysvar_one),
+ MYSQL_SYSVAR(simple_sysvar_two),
+ NULL
+};
+
+/*
Plugin library descriptor
*/
@@ -231,8 +254,8 @@ mysql_declare_plugin(ftexample)
simple_parser_plugin_deinit,/* deinit function (when unloaded) */
0x0001, /* version */
simple_status, /* status variables */
- NULL, /* system variables */
- NULL /* config options */
+ simple_system_variables, /* system variables */
+ NULL
}
mysql_declare_plugin_end;