~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.h

  • Committer: Brian Aker
  • Date: 2009-01-24 09:43:35 UTC
  • Revision ID: brian@gir-3.local-20090124094335-6qdtvc35gl5fvivz
Adding in an example singe thread scheduler

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
/* Functions to create an item. Used by sql/sql_yacc.yy */
21
21
 
22
 
#ifndef DRIZZLED_ITEM_CREATE_H
23
 
#define DRIZZLED_ITEM_CREATE_H
 
22
#ifndef DRIZZLE_SERVER_ITEM_CREATE_H
 
23
#define DRIZZLE_SERVER_ITEM_CREATE_H
24
24
 
25
25
#include <drizzled/item/func.h>
26
 
#include <drizzled/plugin/function.h>
27
26
 
28
 
namespace drizzled
29
 
{
 
27
struct udf_func;
30
28
 
31
29
/**
32
30
  Public function builder interface.
113
111
 
114
112
/**
115
113
  Find the native function builder associated with a given function name.
 
114
  @param session The current thread
116
115
  @param name The native function name
117
116
  @return The native function builder associated with the name, or NULL
118
117
*/
119
 
extern Create_func * find_native_function_builder(LEX_STRING name);
 
118
extern Create_func * find_native_function_builder(Session *session, LEX_STRING name);
120
119
 
121
120
 
122
121
/**
143
142
    @param item_list The list of arguments to the function, can be NULL
144
143
    @return An item representing the parsed function call
145
144
  */
146
 
  Item *create(Session *session,
147
 
               const plugin::Function *fct,
148
 
               List<Item> *item_list);
 
145
  Item *create(Session *session, udf_func *fct, List<Item> *item_list);
149
146
 
150
147
  /** Singleton. */
151
148
  static Create_udf_func s_singleton;
177
174
int item_create_init();
178
175
void item_create_cleanup();
179
176
 
180
 
} /* namespace drizzled */
181
 
 
182
 
#endif /* DRIZZLED_ITEM_CREATE_H */
 
177
#endif /* DRIZZLE_SERVER_ITEM_CREATE_H */