~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/manifest.h

  • Committer: Brian Aker
  • Date: 2010-03-31 05:53:34 UTC
  • Revision ID: brian@gaz-20100331055334-yqqmzlgqb2xq1p5b
Mass overhaul to use schema_identifier.

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