~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/ascii/ascii.cc

Blackhole, CSV, Pool of Threads,Single Thread, Multi Thread.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <drizzled/server_includes.h>
21
21
#include <drizzled/function/math/int.h>
22
22
#include <drizzled/plugin/function.h>
23
23
 
68
68
 
69
69
plugin::Create_function<AsciiFunction> *asciiudf= NULL;
70
70
 
71
 
static int initialize(module::Context &context)
 
71
static int initialize(plugin::Registry &registry)
72
72
{
73
73
  asciiudf= new plugin::Create_function<AsciiFunction>("ascii");
74
 
  context.add(asciiudf);
 
74
  registry.add(asciiudf);
 
75
  return 0;
 
76
}
 
77
 
 
78
static int finalize(plugin::Registry &registry)
 
79
{
 
80
  registry.remove(asciiudf);
 
81
  delete asciiudf;
75
82
  return 0;
76
83
}
77
84
 
78
85
DRIZZLE_DECLARE_PLUGIN
79
86
{
80
 
  DRIZZLE_VERSION_ID,
81
87
  "ascii",
82
88
  "1.0",
83
89
  "Devananda van der Veen",
84
90
  "Return the ASCII value of a character",
85
91
  PLUGIN_LICENSE_GPL,
86
92
  initialize, /* Plugin Init */
 
93
  finalize,   /* Plugin Deinit */
 
94
  NULL,   /* status variables */
87
95
  NULL,   /* system variables */
88
96
  NULL    /* config options */
89
97
}