~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_udf.h

  • Committer: Brian Aker
  • Date: 2009-03-20 18:52:05 UTC
  • mfrom: (950.1.1 mordred)
  • Revision ID: brian@tangent.org-20090320185205-g7o6kq17r25b6odf
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
/* This file defines structures needed by udf functions */
24
24
 
 
25
#include <drizzled/function/func.h>
 
26
#include <drizzled/function/create.h>
 
27
 
25
28
#include <stdint.h>
26
 
#include <drizzled/function/func.h>
27
29
 
28
30
enum Item_udftype {UDFTYPE_FUNCTION=1,UDFTYPE_AGGREGATE};
29
31
 
30
 
typedef Item_func* (*create_func_item)(MEM_ROOT*);
31
 
 
32
 
struct udf_func
33
 
{
34
 
  LEX_STRING name;
35
 
  create_func_item create_func;
36
 
};
37
 
 
38
 
void udf_init(void),udf_free(void);
39
 
udf_func *find_udf(const char *name, uint32_t len=0);
40
 
void free_udf(udf_func *udf);
41
 
int mysql_create_function(Session *session,udf_func *udf);
 
32
Function_builder *find_udf(const char *name, uint32_t len=0);
 
33
void free_udf(Function_builder *udf);
 
34
int mysql_create_function(Session *session,Function_builder *udf);
42
35
 
43
36
#endif /* DRIZZLED_SQL_UDF_H */