~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_udf.h

  • Committer: Monty Taylor
  • Date: 2009-03-03 08:08:10 UTC
  • mto: This revision was merged to the branch mainline in revision 910.
  • Revision ID: mordred@inaugust.com-20090303080810-gwtc2ppv93od4knp
Hardcoding /opt/csw/include in was doing some bad things with gettext.

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 <stdint.h>
25
26
#include <drizzled/function/func.h>
26
 
#include <drizzled/function/create.h>
27
 
 
28
 
#include <stdint.h>
29
27
 
30
28
enum Item_udftype {UDFTYPE_FUNCTION=1,UDFTYPE_AGGREGATE};
31
29
 
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);
35
 
void add_udf(Function_builder *udf);
36
 
void remove_udf(Function_builder *udf);
 
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);
37
42
 
38
43
#endif /* DRIZZLED_SQL_UDF_H */