~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg.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:
42
42
                                all_errmsg_handler.end(), handler));
43
43
}
44
44
 
45
 
int errmsg_finalizer(st_plugin_int *plugin)
46
 
{
47
 
  Error_message_handler *p= static_cast<Error_message_handler *>(plugin->data);
48
 
 
49
 
  remove_errmsg_handler(p);
50
 
  if (plugin->plugin->deinit)
51
 
  {
52
 
    if (plugin->plugin->deinit(p))
53
 
    {
54
 
      /* we're doing the errmsg plugin api,
55
 
         so we can't trust the errmsg api to emit our error messages
56
 
         so we will emit error messages to stderr */
57
 
      /* TRANSLATORS: The leading word "errmsg" is the name
58
 
         of the plugin api, and so should not be translated. */
59
 
      fprintf(stderr,
60
 
              _("errmsg plugin '%s' deinit() failed."),
61
 
              plugin->name.str);
62
 
    }
63
 
  }
64
 
 
65
 
  return 0;
66
 
}
67
 
 
68
45
 
69
46
class ErrorMessagePrint : public unary_function<Error_message_handler *, bool>
70
47
{