~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/logging.h

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 *  Definitions required for Query Logging plugin
5
5
 *
6
 
 *  Copyright (C) 2008 Sun Microsystems
 
6
 *  Copyright (C) 2008 Sun Microsystems, Inc.
7
7
 *
8
8
 *  This program is free software; you can redistribute it and/or modify
9
9
 *  it under the terms of the GNU General Public License as published by
22
22
#ifndef DRIZZLED_PLUGIN_LOGGING_H
23
23
#define DRIZZLED_PLUGIN_LOGGING_H
24
24
 
25
 
#include "drizzled/plugin/plugin.h"
 
25
#include <drizzled/plugin/plugin.h>
26
26
 
27
27
#include <string>
28
28
 
 
29
#include <drizzled/visibility.h>
 
30
 
29
31
namespace drizzled
30
32
{
31
33
class Session;
33
35
namespace plugin
34
36
{
35
37
 
36
 
class Logging : public Plugin
 
38
class DRIZZLED_API Logging : public Plugin
37
39
{
38
40
  Logging();
39
41
  Logging(const Logging &);
51
53
  virtual bool pre(Session *) {return false;}
52
54
  virtual bool post(Session *) {return false;}
53
55
  virtual bool postEnd(Session*) {return false;}
 
56
  virtual bool resetGlobalScoreboard() {return false;}
54
57
 
55
58
  static bool addPlugin(Logging *handler);
56
59
  static void removePlugin(Logging *handler);
57
60
  static bool preDo(Session *session);
58
61
  static bool postDo(Session *session);
59
62
  static bool postEndDo(Session *session);
 
63
  static bool resetStats(Session *session);
60
64
};
61
65
 
62
66
} /* namespace plugin */