~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/md5/md5.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:
15
15
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
16
16
 
17
17
#include <drizzled/server_includes.h>
18
 
#include <drizzled/slot/function.h>
 
18
#include <drizzled/plugin/function.h>
19
19
#include <drizzled/item/func.h>
20
20
#include <drizzled/function/str/strfunc.h>
21
21
 
93
93
static int initialize(plugin::Registry &registry)
94
94
{
95
95
  md5udf= new plugin::Create_function<Md5Function>("md5");
96
 
  registry.function.add(md5udf);
 
96
  registry.add(md5udf);
97
97
  return 0;
98
98
}
99
99
 
100
100
static int finalize(plugin::Registry &registry)
101
101
{
102
 
  registry.function.remove(md5udf);
 
102
  registry.remove(md5udf);
103
103
  delete md5udf;
104
104
  return 0;
105
105
}