~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_PLUGIN_H
21
21
#define DRIZZLED_PLUGIN_H
22
22
 
 
23
#include <boost/program_options.hpp>
 
24
#include <boost/filesystem.hpp>
 
25
 
23
26
#include "drizzled/module/manifest.h"
24
27
#include "drizzled/module/module.h"
25
28
#include "drizzled/plugin/version.h"
27
30
#include "drizzled/definitions.h"
28
31
 
29
32
#include "drizzled/lex_string.h"
 
33
#include "drizzled/sys_var.h"
30
34
#include "drizzled/xid.h"
31
 
#include <boost/program_options.hpp>
32
 
#include <boost/filesystem.hpp>
33
35
 
34
36
namespace drizzled
35
37
{
79
81
 
80
82
 
81
83
/*
82
 
  declarations for SHOW STATUS support in plugins
83
 
*/
84
 
enum enum_mysql_show_type
85
 
{
86
 
  SHOW_UNDEF, SHOW_BOOL, SHOW_INT, SHOW_LONG,
87
 
  SHOW_LONGLONG, SHOW_CHAR, SHOW_CHAR_PTR,
88
 
  SHOW_FUNC,
89
 
  SHOW_LONG_STATUS, SHOW_DOUBLE_STATUS,
90
 
  SHOW_MY_BOOL, SHOW_HA_ROWS, SHOW_SYS, SHOW_INT_NOFLUSH,
91
 
  SHOW_LONGLONG_STATUS, SHOW_DOUBLE, SHOW_SIZE
92
 
};
93
 
 
94
 
struct drizzle_show_var {
95
 
  const char *name;
96
 
  char *value;
97
 
  enum enum_mysql_show_type type;
98
 
};
99
 
 
100
 
typedef enum enum_mysql_show_type SHOW_TYPE;
101
 
 
102
 
 
103
 
#define SHOW_VAR_FUNC_BUFF_SIZE 1024
104
 
typedef int (*mysql_show_var_func)(drizzle_show_var *, char *);
105
 
 
106
 
struct st_show_var_func_container {
107
 
  mysql_show_var_func func;
108
 
};
109
 
/*
110
84
  declarations for server variables and command line options
111
85
*/
112
86