~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/hello_world/hello_world.cc

  • Committer: Brian Aker
  • Date: 2009-10-02 19:38:12 UTC
  • mfrom: (1152.1.7 merge)
  • Revision ID: brian@gaz-20091002193812-mpd61oecep74t6gd
Merge Monty + Brian for plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
#include <drizzled/server_includes.h>
21
 
#include <drizzled/slot/function.h>
 
21
#include <drizzled/plugin/function.h>
22
22
#include <drizzled/item/func.h>
23
23
#include <drizzled/function/str/strfunc.h>
24
24
 
47
47
{
48
48
  hello_world_udf=
49
49
    new plugin::Create_function<Item_func_hello_world>("hello_world");
50
 
  registry.function.add(hello_world_udf);
 
50
  registry.add(hello_world_udf);
51
51
 
52
52
  return 0;
53
53
}
54
54
 
55
55
static int hello_world_plugin_deinit(drizzled::plugin::Registry &registry)
56
56
{
57
 
  registry.function.remove(hello_world_udf);
 
57
  registry.remove(hello_world_udf);
58
58
  delete hello_world_udf;
59
59
  return 0;
60
60
}