~drizzle-trunk/drizzle/development

390.1.2 by Monty Taylor
Fixed copyright headers in drizzled/
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
4
 *  Copyright (C) 2008 Sun Microsystems
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; version 2 of the License.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU General Public License
16
 *  along with this program; if not, write to the Free Software
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 */
1 by brian
clean slate
19
575.1.6 by Monty Taylor
Cleaned up some headers for PCH.
20
#ifndef DRIZZLED_SQL_UDF_H
21
#define DRIZZLED_SQL_UDF_H
22
1 by brian
clean slate
23
/* This file defines structures needed by udf functions */
24
942.1.12 by Monty Taylor
Converted udf_func into a factory.
25
#include <drizzled/function/func.h>
26
#include <drizzled/function/create.h>
27
575.4.7 by Monty Taylor
More header cleanup.
28
#include <stdint.h>
139.1.8 by Stewart Smith
UDFs are now normal Item_func objects. Simplifies handling them a lot.
29
1 by brian
clean slate
30
enum Item_udftype {UDFTYPE_FUNCTION=1,UDFTYPE_AGGREGATE};
31
942.1.12 by Monty Taylor
Converted udf_func into a factory.
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);
971.1.46 by Monty Taylor
Made plugin registration go through Plugin_registry.
35
void add_udf(Function_builder *udf);
971.1.52 by Monty Taylor
Did the finalizers. Renamed plugin_registry.
36
void remove_udf(Function_builder *udf);
575.1.6 by Monty Taylor
Cleaned up some headers for PCH.
37
38
#endif /* DRIZZLED_SQL_UDF_H */