~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/compress/compressudf.cc

  • Committer: Brian Aker
  • Date: 2009-04-07 20:09:30 UTC
  • mfrom: (971.1.17 mordred)
  • Revision ID: brian@gaz-20090407200930-27jkul7lkwkjs2to
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
 
105
105
static int compressudf_plugin_init(void *p)
106
106
{
107
 
  Function_builder **f = (Function_builder**) p;
 
107
  Function_builder **f = static_cast<Function_builder**>(p);
108
108
 
109
109
  *f= &compressudf;
110
110
 
111
111
  return 0;
112
112
}
113
113
 
114
 
static int compressudf_plugin_deinit(void *p)
115
 
{
116
 
  Function_builder *udff = (Function_builder *) p;
117
 
  (void)udff;
118
 
  return 0;
119
 
}
120
 
 
121
114
drizzle_declare_plugin(compress)
122
115
{
123
116
  DRIZZLE_UDF_PLUGIN,
127
120
  "UDF for compress()",
128
121
  PLUGIN_LICENSE_GPL,
129
122
  compressudf_plugin_init, /* Plugin Init */
130
 
  compressudf_plugin_deinit, /* Plugin Deinit */
 
123
  NULL, /* Plugin Deinit */
131
124
  NULL,   /* status variables */
132
125
  NULL,   /* system variables */
133
126
  NULL    /* config options */