~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/slot/function.cc

  • Committer: Brian Aker
  • Date: 2009-08-21 06:18:23 UTC
  • mfrom: (1115.3.12 captain)
  • Revision ID: brian@gaz-20090821061823-ljcpbpvun22lsvem
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
/* This implements 'user defined functions' */
17
17
#include <drizzled/server_includes.h>
18
18
#include <drizzled/gettext.h>
19
 
#include <drizzled/sql_udf.h>
20
19
#include <drizzled/registry.h>
21
 
#include "drizzled/plugin/registry.h"
22
 
 
23
 
#include <string>
 
20
#include "drizzled/slot/function.h"
24
21
 
25
22
using namespace std;
26
 
 
27
 
static drizzled::Registry<Function_builder *> udf_registry;
28
 
 
29
 
Function_builder *find_udf(const char *name, uint32_t length)
 
23
using namespace drizzled;
 
24
 
 
25
 
 
26
const plugin::Function *slot::Function::get(const char *name, size_t length) const
30
27
{
31
28
  return udf_registry.find(name, length);
32
29
}
33
30
 
34
 
void add_udf(Function_builder *udf)
 
31
void slot::Function::add(const plugin::Function *udf)
35
32
{
36
33
  udf_registry.add(udf);
37
34
}
38
35
 
39
 
void remove_udf(Function_builder *udf)
 
36
void slot::Function::remove(const plugin::Function *udf)
40
37
{
41
38
  udf_registry.remove(udf);
42
39
}