~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/uuid_function/uuid_function.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:
63
63
 
64
64
plugin::Create_function<UuidFunction> *uuid_function= NULL;
65
65
 
66
 
static int initialize(drizzled::plugin::Registry &registry)
 
66
static int initialize(drizzled::plugin::Context &context)
67
67
{
68
68
  uuid_function= new plugin::Create_function<UuidFunction>("uuid");
69
 
  registry.add(uuid_function);
 
69
  context.add(uuid_function);
70
70
  return 0;
71
71
}
72
72
 
73
 
static int finalize(drizzled::plugin::Registry &registry)
74
 
{
75
 
   registry.remove(uuid_function);
76
 
   delete uuid_function;
77
 
   return 0;
78
 
}
79
 
 
80
73
DRIZZLE_DECLARE_PLUGIN
81
74
{
82
75
  DRIZZLE_VERSION_ID,
86
79
  "UUID() function using libuuid",
87
80
  PLUGIN_LICENSE_GPL,
88
81
  initialize, /* Plugin Init */
89
 
  finalize,   /* Plugin Deinit */
90
82
  NULL,   /* system variables */
91
83
  NULL    /* config options */
92
84
}