~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/manifest.h

  • Committer: Stewart Smith
  • Date: 2010-03-02 06:41:59 UTC
  • mto: (1309.2.13 build)
  • mto: This revision was merged to the branch mainline in revision 1318.
  • Revision ID: stewart@flamingspork.com-20100302064159-gktw6hcbs3u0fflm
move Item_result out to its own header file and out of common.h

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   */
71
64
  drizzle_sys_var **system_vars;
72
 
  options_func_t init_options; /* register command line options              */
 
65
  void *reserved1;           /* reserved for dependency checking             */
73
66
};
74
67
 
75
 
} /* namespace module */
 
68
} /* namespace plugin */
76
69
} /* namespace drizzled */
77
70
 
78
 
#endif /* DRIZZLED_MODULE_MANIFEST_H */
 
71
#endif /* DRIZZLED_PLUGIN_MANIFEST_H */