32
32
plugin::Create_function<Item_func_gman_do_low_background>
33
33
*gman_do_low_background= NULL;
35
static int gearman_udf_plugin_init(drizzled::plugin::Registry ®istry)
35
static int gearman_udf_plugin_init(drizzled::plugin::Context &context)
37
37
gman_servers_set= new plugin::Create_function<Item_func_gman_servers_set>("gman_servers_set");
38
38
gman_do= new plugin::Create_function<Item_func_gman_do>("gman_do");
41
41
gman_do_background= new plugin::Create_function<Item_func_gman_do_background>("gman_do_background");
42
42
gman_do_high_background= new plugin::Create_function<Item_func_gman_do_high_background>("gman_do_high_background");
43
43
gman_do_low_background= new plugin::Create_function<Item_func_gman_do_low_background>("gman_do_low_background");
44
registry.add(gman_servers_set);
45
registry.add(gman_do);
46
registry.add(gman_do_high);
47
registry.add(gman_do_low);
48
registry.add(gman_do_background);
49
registry.add(gman_do_high_background);
50
registry.add(gman_do_low_background);
54
static int gearman_udf_plugin_deinit(drizzled::plugin::Registry ®istry)
56
registry.remove(gman_do_low_background);
57
registry.remove(gman_do_high_background);
58
registry.remove(gman_do_background);
59
registry.remove(gman_do_low);
60
registry.remove(gman_do_high);
61
registry.remove(gman_do);
62
registry.remove(gman_servers_set);
63
delete gman_do_low_background;
64
delete gman_do_high_background;
65
delete gman_do_background;
69
delete gman_servers_set;
44
context.add(gman_servers_set);
46
context.add(gman_do_high);
47
context.add(gman_do_low);
48
context.add(gman_do_background);
49
context.add(gman_do_high_background);
50
context.add(gman_do_low_background);
79
60
"Gearman Client UDFs",
80
61
PLUGIN_LICENSE_BSD,
81
62
gearman_udf_plugin_init, /* Plugin Init */
82
gearman_udf_plugin_deinit, /* Plugin Deinit */
83
63
NULL, /* system variables */
84
64
NULL /* config options */