~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_udf.cc

  • Committer: Monty Taylor
  • Date: 2009-04-10 22:18:10 UTC
  • mto: (992.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: mordred@inaugust.com-20090410221810-06j7dfgl1iso0dab
Did the finalizers. Renamed plugin_registry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  udf_registry.add(udf);
40
40
}
41
41
 
42
 
static void remove_udf(Function_builder *udf)
 
42
void remove_udf(Function_builder *udf)
43
43
{
44
44
  udf_registry.remove(udf);
45
45
}
46
46
 
47
47
 
48
 
int finalize_udf(st_plugin_int *plugin)
49
 
{
50
 
  Function_builder *udf = static_cast<Function_builder *>(plugin->data);
51
 
 
52
 
  if (udf != NULL)
53
 
  {
54
 
    remove_udf(udf);
55
 
  
56
 
    if (plugin->plugin->deinit)
57
 
    {
58
 
      if (plugin->plugin->deinit((void *)udf))
59
 
      {
60
 
        /* TRANSLATORS: The leading word "udf" is the name
61
 
           of the plugin api, and so should not be translated. */
62
 
        errmsg_printf(ERRMSG_LVL_ERROR, _("udf plugin '%s' deinit() failed"),
63
 
                      plugin->name.str);
64
 
      }
65
 
    }
66
 
 
67
 
  }
68
 
 
69
 
  return 0;
70
 
}
71