~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_gearman/logging_gearman.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/logging_handler.h>
 
21
#include <drizzled/plugin/logging.h>
22
22
#include <drizzled/gettext.h>
23
23
#include <drizzled/session.h>
24
24
 
162
162
  return dst;
163
163
}
164
164
 
165
 
class LoggingGearman : public Logging_handler
 
165
class LoggingGearman : public drizzled::plugin::Logging
166
166
{
167
167
 
168
168
  int gearman_client_ok;
170
170
 
171
171
public:
172
172
 
173
 
  LoggingGearman() : Logging_handler("LoggingGearman"), gearman_client_ok(0)
 
173
  LoggingGearman()
 
174
    : drizzled::plugin::Logging("LoggingGearman"),
 
175
      gearman_client_ok(0)
174
176
  {
175
177
    gearman_return_t ret;
176
178
 
285
287
  }
286
288
};
287
289
 
288
 
static Logging_handler *handler= NULL;
 
290
static LoggingGearman *handler= NULL;
289
291
 
290
292
static int logging_gearman_plugin_init(drizzled::plugin::Registry &registry)
291
293
{
292
294
  handler= new LoggingGearman();
293
 
  registry.add(handler);
 
295
  registry.logging.add(handler);
294
296
 
295
297
  return 0;
296
298
}
297
299
 
298
300
static int logging_gearman_plugin_deinit(drizzled::plugin::Registry &registry)
299
301
{
300
 
  registry.remove(handler);
301
 
  delete(handler);
 
302
  registry.logging.remove(handler);
 
303
  delete handler;
302
304
 
303
305
  return 0;
304
306
}