~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/utility_functions/functions.cc

  • Committer: lbieber
  • Date: 2010-10-06 16:34:16 UTC
  • mfrom: (1816.1.3 build)
  • Revision ID: lbieber@orisndriz08-20101006163416-ea0sl59qgpglk21y
Merge Monty - Change the requirement from either libinnodb to libhaildb. Also, tied it to version 2.2
Merge Andrew - fix bug 650935: remove --compress from all clients
Merge Andrew - fix bug 653471: Add -A to drizzle client
Merge Travis - 621861 = To change C structs to C++ classes in Drizzle

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
 *
4
 
 *  Copyright (C) 2010 Brian Aker
5
 
 *  Copyright (C) 2010 Stewart Smith
6
 
 *
7
 
 *  This program is free software; you can redistribute it and/or modify
8
 
 *  it under the terms of the GNU General Public License as published by
9
 
 *  the Free Software Foundation; either version 2 of the License, or
10
 
 *  (at your option) any later version.
11
 
 *
12
 
 *  This program is distributed in the hope that it will be useful,
13
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
 *  GNU General Public License for more details.
16
 
 *
17
 
 *  You should have received a copy of the GNU General Public License
18
 
 *  along with this program; if not, write to the Free Software
19
 
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20
 
 */
21
 
 
22
 
#include "config.h"
23
 
 
24
 
#include <drizzled/plugin.h>
25
 
#include "plugin/utility_functions/functions.h"
26
 
 
27
 
using namespace drizzled;
28
 
 
29
 
static int init(drizzled::module::Context &context)
30
 
{
31
 
  context.add(new plugin::Create_function<utility_functions::Assert>("assert"));
32
 
  context.add(new plugin::Create_function<utility_functions::Catalog>("catalog"));
33
 
  context.add(new plugin::Create_function<utility_functions::Execute>("execute"));
34
 
  context.add(new plugin::Create_function<utility_functions::GlobalReadLock>("global_read_lock"));
35
 
  context.add(new plugin::Create_function<utility_functions::ResultType>("result_type"));
36
 
  context.add(new plugin::Create_function<utility_functions::Kill>("kill"));
37
 
  context.add(new plugin::Create_function<utility_functions::Schema>("database"));
38
 
  context.add(new plugin::Create_function<utility_functions::Typeof>("typeof"));
39
 
  context.add(new plugin::Create_function<utility_functions::User>("user"));
40
 
 
41
 
  return 0;
42
 
}
43
 
 
44
 
DRIZZLE_DECLARE_PLUGIN
45
 
{
46
 
  DRIZZLE_VERSION_ID,
47
 
  "Utility Functions",
48
 
  "1.4",
49
 
  "Brian Aker, Stewart Smith",
50
 
  "Utility Functions.",
51
 
  PLUGIN_LICENSE_GPL,
52
 
  init,
53
 
  NULL,
54
 
  NULL
55
 
}
56
 
DRIZZLE_DECLARE_PLUGIN_END;