~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/hello_world/hello_world.cc

  • Committer: Siddharth Prakash Singh
  • Date: 2010-03-26 19:25:23 UTC
  • mfrom: (1410 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1425.
  • Revision ID: spsneo@spsneo-laptop-20100326192523-ibjlbt1p692vobtj
merging with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
plugin::Create_function<Item_func_hello_world> *hello_world_udf= NULL;
45
45
 
46
 
static int hello_world_plugin_init(drizzled::plugin::Registry &registry)
 
46
static int hello_world_plugin_init(drizzled::plugin::Context &context)
47
47
{
48
48
  hello_world_udf=
49
49
    new plugin::Create_function<Item_func_hello_world>("hello_world");
50
 
  registry.add(hello_world_udf);
51
 
 
52
 
  return 0;
53
 
}
54
 
 
55
 
static int hello_world_plugin_deinit(drizzled::plugin::Registry &registry)
56
 
{
57
 
  registry.remove(hello_world_udf);
58
 
  delete hello_world_udf;
59
 
  return 0;
60
 
}
61
 
 
 
50
  context.add(hello_world_udf);
 
51
 
 
52
  return 0;
 
53
}
62
54
 
63
55
DRIZZLE_DECLARE_PLUGIN
64
56
{
69
61
  "Hello, world!",
70
62
  PLUGIN_LICENSE_GPL,
71
63
  hello_world_plugin_init, /* Plugin Init */
72
 
  hello_world_plugin_deinit, /* Plugin Deinit */
73
64
  NULL,   /* system variables */
74
65
  NULL    /* config options */
75
66
}