~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#pragma once
 
20
#ifndef DRIZZLED_PLUGIN_H
 
21
#define DRIZZLED_PLUGIN_H
21
22
 
22
23
#include <boost/program_options.hpp>
23
24
#include <boost/filesystem.hpp>
24
25
 
25
 
#include <drizzled/module/manifest.h>
26
 
#include <drizzled/module/module.h>
27
 
#include <drizzled/plugin/version.h>
28
 
#include <drizzled/module/context.h>
29
 
#include <drizzled/definitions.h>
30
 
 
31
 
#include <drizzled/lex_string.h>
32
 
#include <drizzled/sys_var.h>
33
 
 
34
 
#include <drizzled/visibility.h>
35
 
 
36
 
namespace drizzled {
 
26
#include "drizzled/module/manifest.h"
 
27
#include "drizzled/module/module.h"
 
28
#include "drizzled/plugin/version.h"
 
29
#include "drizzled/module/context.h"
 
30
#include "drizzled/definitions.h"
 
31
 
 
32
#include "drizzled/lex_string.h"
 
33
#include "drizzled/sys_var.h"
 
34
#include "drizzled/xid.h"
 
35
 
 
36
#include "drizzled/visibility.h"
 
37
 
 
38
namespace drizzled
 
39
{
 
40
 
 
41
class Session;
 
42
class Item;
 
43
struct charset_info_st;
37
44
 
38
45
/*************************************************************************
39
46
  Plugin API. Common for all plugin types.
40
47
*/
41
48
 
 
49
 
 
50
class sys_var;
 
51
struct option;
 
52
 
42
53
extern boost::filesystem::path plugin_dir;
43
54
 
 
55
namespace plugin { class StorageEngine; }
 
56
 
44
57
/*
45
58
  Macros for beginning and ending plugin declarations. Between
46
59
  DRIZZLE_DECLARE_PLUGIN and DRIZZLE_DECLARE_PLUGIN_END there should
75
88
*/
76
89
 
77
90
 
 
91
#define PLUGIN_VAR_BOOL         0x0001
 
92
#define PLUGIN_VAR_INT          0x0002
 
93
#define PLUGIN_VAR_LONG         0x0003
 
94
#define PLUGIN_VAR_LONGLONG     0x0004
 
95
#define PLUGIN_VAR_STR          0x0005
 
96
#define PLUGIN_VAR_UNSIGNED     0x0080
 
97
#define PLUGIN_VAR_SessionLOCAL     0x0100 /* Variable is per-connection */
78
98
#define PLUGIN_VAR_READONLY     0x0200 /* Server variable is read only */
 
99
#define PLUGIN_VAR_NOSYSVAR     0x0400 /* Not a server variable */
 
100
#define PLUGIN_VAR_NOCMDOPT     0x0800 /* Not a command line option */
 
101
#define PLUGIN_VAR_NOCMDARG     0x1000 /* No argument for cmd line */
 
102
#define PLUGIN_VAR_RQCMDARG     0x0000 /* Argument required for cmd line */
79
103
#define PLUGIN_VAR_OPCMDARG     0x2000 /* Argument optional for cmd line */
80
104
#define PLUGIN_VAR_MEMALLOC     0x8000 /* String needs memory allocated */
81
105
 
179
203
 
180
204
} /* namespace drizzled */
181
205
 
 
206
#endif /* DRIZZLED_PLUGIN_H */
182
207