~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/manifest.h

  • Committer: Brian Aker
  • Date: 2010-09-11 01:35:47 UTC
  • mto: (1759.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1762.
  • Revision ID: brian@tangent.org-20100911013547-b04k7f1qddr3ml4t
Shuffle native functions over to hash such that we have a specific container
for them.

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