~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/reverse_function/reverse_function.cc

  • Committer: Monty Taylor
  • Date: 2010-03-25 22:03:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1408.
  • Revision ID: mordred@inaugust.com-20100325220321-bf5vs8tryb4a8ssh
Updated the search for libmemcached.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *  Copyright (C) 2010 Stewart Smith
6
6
 *
7
7
 *  This program is free software; you can redistribute it and/or modify
22
22
 
23
23
#include <drizzled/plugin/function.h>
24
24
#include <drizzled/function/str/strfunc.h>
25
 
#include <drizzled/charset_info.h>
26
25
 
27
26
using namespace drizzled;
28
27
 
94
93
 
95
94
plugin::Create_function<ReverseFunction> *reverse_function= NULL;
96
95
 
97
 
static int initialize(drizzled::module::Context &context)
 
96
static int initialize(drizzled::plugin::Context &context)
98
97
{
99
98
  reverse_function= new plugin::Create_function<ReverseFunction>("reverse");
100
99
  context.add(reverse_function);
110
109
  "reverses a string",
111
110
  PLUGIN_LICENSE_GPL,
112
111
  initialize, /* Plugin Init */
113
 
  NULL,   /* depends */
 
112
  NULL,   /* system variables */
114
113
  NULL    /* config options */
115
114
}
116
115
DRIZZLE_DECLARE_PLUGIN_END;