~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/gearman_udf/gman_do.h

  • Committer: Brian Aker
  • Date: 2009-08-18 07:20:29 UTC
  • mfrom: (1117.1.9 merge)
  • Revision ID: brian@gaz-20090818072029-s9ch5lcmltxwidn7
Merge of Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2009 Sun Microsystems, Inc.
 
1
/* Copyright (C) 2009 Sun Microsystems
2
2
 
3
3
   This program is free software; you can redistribute it and/or modify
4
4
   it under the terms of the GNU General Public License as published by
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
 
#ifndef PLUGIN_GEARMAN_UDF_GMAN_DO_H
17
 
#define PLUGIN_GEARMAN_UDF_GMAN_DO_H
18
 
 
 
16
#include <drizzled/server_includes.h>
19
17
#include <drizzled/item/func.h>
20
18
#include <drizzled/function/str/strfunc.h>
21
19
 
22
20
#include <libgearman/gearman.h>
23
21
 
24
 
class Item_func_gman_do :public drizzled::Item_str_func
 
22
class Item_func_gman_do :public Item_str_func
25
23
{
26
24
protected:
27
25
  typedef enum
36
34
private:
37
35
  gman_do_options_t options;
38
36
  gearman_client_st client;
39
 
  drizzled::String buffer;
 
37
  String buffer;
40
38
 
41
39
public:
42
40
  Item_func_gman_do():
48
46
  ~Item_func_gman_do();
49
47
  void fix_length_and_dec() { max_length=10; }
50
48
  virtual const char *func_name() const{ return "gman_do"; }
51
 
  drizzled::String *val_str(drizzled::String *);
 
49
  String *val_str(String *);
52
50
  void *realloc(size_t size);
53
51
};
54
52
 
93
91
                                         GMAN_DO_OPTIONS_BACKGROUND)) {}
94
92
  const char *func_name() const{ return "gman_do_low_background"; }
95
93
};
96
 
 
97
 
#endif /* PLUGIN_GEARMAN_UDF_GMAN_DO_H */