~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/errmsg_stderr/errmsg_stderr.cc

Merged in plugin-slot-reorg patches.

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/plugin/error_message_handler.h>
 
21
#include <drizzled/plugin/error_message.h>
22
22
#include <drizzled/gettext.h>
23
23
 
24
24
#include <stdio.h>  /* for vsnprintf */
28
28
/* todo, make this dynamic as needed */
29
29
#define MAX_MSG_LEN 8192
30
30
 
31
 
class Error_message_stderr : public Error_message_handler
 
31
class Error_message_stderr : public drizzled::plugin::ErrorMessage
32
32
{
33
33
public:
34
34
  Error_message_stderr() : Error_message_handler("Error_message_stderr") {}
54
54
static int errmsg_stderr_plugin_init(drizzled::plugin::Registry &registry)
55
55
{
56
56
  handler= new Error_message_stderr();
57
 
  registry.add(handler);
 
57
  registry.error_message.add(handler);
58
58
 
59
59
  return 0;
60
60
}
64
64
 
65
65
  if (handler)
66
66
  {
67
 
    registry.remove(handler);
 
67
    registry.error_message.remove(handler);
68
68
    delete handler;
69
69
  }
70
70
  return 0;