~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/length/length.cc

Remove PLUGIN and MODULES.

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 <drizzled/server_includes.h>
 
20
#include "config.h"
21
21
#include <drizzled/function/math/int.h>
22
22
#include <drizzled/plugin/function.h>
23
23
 
63
63
}
64
64
 
65
65
plugin::Create_function<LengthFunction> *lengthudf= NULL;
 
66
plugin::Create_function<LengthFunction> *octet_lengthudf= NULL;
66
67
 
67
68
static int initialize(drizzled::plugin::Registry &registry)
68
69
{
69
70
  lengthudf= new plugin::Create_function<LengthFunction>("length");
70
 
  lengthudf->addAlias("octet_length");
 
71
  octet_lengthudf= new plugin::Create_function<LengthFunction>("octet_length");
71
72
  registry.add(lengthudf);
 
73
  registry.add(octet_lengthudf);
72
74
  return 0;
73
75
}
74
76
 
75
77
static int finalize(drizzled::plugin::Registry &registry)
76
78
{
77
79
   registry.remove(lengthudf);
 
80
   registry.remove(octet_lengthudf);
78
81
   delete lengthudf;
 
82
   delete octet_lengthudf;
79
83
   return 0;
80
84
}
81
85
 
82
 
drizzle_declare_plugin
 
86
DRIZZLE_DECLARE_PLUGIN
83
87
{
 
88
  DRIZZLE_VERSION_ID,
84
89
  "length",
85
90
  "1.0",
86
91
  "Devananda van der Veen",
92
97
  NULL,   /* system variables */
93
98
  NULL    /* config options */
94
99
}
95
 
drizzle_declare_plugin_end;
 
100
DRIZZLE_DECLARE_PLUGIN_END;