~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_udf.h

  • Committer: Monty Taylor
  • Date: 2009-03-20 06:30:59 UTC
  • mfrom: (942.1.17 plugin-registration)
  • mto: This revision was merged to the branch mainline in revision 958.
  • Revision ID: mordred@inaugust.com-20090320063059-lr9hqvw15stxxgn3
Merged plugin registration branch.

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 */