~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/manifest.h

Fixed a style variance.

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
 
#ifndef DRIZZLED_MODULE_MANIFEST_H
21
 
#define DRIZZLED_MODULE_MANIFEST_H
22
 
 
23
 
/**
24
 
 * @file Defines a Plugin Manifest
25
 
 *
26
 
 * A module::Manifest is the struct contained in every Plugin Library.
27
 
 */
28
 
 
29
 
#include "drizzled/module/context.h"
30
 
#include "drizzled/module/option_context.h"
 
20
#ifndef DRIZZLED_PLUGIN_MANIFEST_H
 
21
#define DRIZZLED_PLUGIN_MANIFEST_H
 
22
 
 
23
#include <drizzled/plugin/registry.h>
31
24
 
32
25
namespace drizzled
33
26
{
45
38
};
46
39
 
47
40
 
48
 
namespace module
 
41
namespace plugin
49
42
{
50
43
 
51
 
typedef int (*initialize_func_t)(::drizzled::module::Context &);
52
 
typedef void (*options_func_t)(::drizzled::module::option_context &);
 
44
typedef int (*initialize_func_t)(Registry &);
53
45
 
54
46
/**
55
47
 * Plugin Manfiest
68
60
  const char *descr;         /* general descriptive text (for SHOW PLUGINS ) */
69
61
  plugin_license_type license; /* plugin license (PLUGIN_LICENSE_XXX)          */
70
62
  initialize_func_t init;     /* function to invoke when plugin is loaded     */
 
63
  initialize_func_t deinit;   /* function to invoke when plugin is unloaded   */
 
64
  drizzle_show_var *status_vars;
71
65
  drizzle_sys_var **system_vars;
72
 
  options_func_t init_options; /* register command line options              */
 
66
  void *reserved1;           /* reserved for dependency checking             */
73
67
};
74
68
 
75
 
} /* namespace module */
 
69
} /* namespace plugin */
76
70
} /* namespace drizzled */
77
71
 
78
 
#endif /* DRIZZLED_MODULE_MANIFEST_H */
 
72
#endif /* DRIZZLED_PLUGIN_MANIFEST_H */