~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/module.h

  • Committer: Stewart Smith
  • Date: 2010-08-05 16:41:55 UTC
  • mfrom: (1638.9.13)
  • mto: (1720.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1721.
  • Revision ID: stewart@flamingspork.com-20100805164155-7olu6iv6rwoxfsne
Merged store-foreign-key-in-table-proto into show-create-table-using-table-message.

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_MODULE_H
21
 
#define DRIZZLED_PLUGIN_MODULE_H
 
20
#ifndef DRIZZLED_MODULE_MODULE_H
 
21
#define DRIZZLED_MODULE_MODULE_H
22
22
 
23
23
/**
24
24
 * @file Defines a Plugin Module
29
29
 */
30
30
 
31
31
#include <cassert>
32
 
 
33
 
#include "drizzled/plugin/manifest.h"
 
32
#include <boost/program_options.hpp>
 
33
 
 
34
#include "drizzled/module/manifest.h"
 
35
#include "drizzled/module/registry.h"
 
36
 
34
37
 
35
38
namespace drizzled
36
39
{
37
40
class sys_var;
38
41
 
39
 
namespace plugin
 
42
void module_shutdown(module::Registry &registry);
 
43
 
 
44
namespace module
40
45
{
41
46
 
42
47
class Library;
46
51
{
47
52
  const std::string name;
48
53
  const Manifest *manifest;
 
54
 
49
55
public:
50
56
  Library *plugin_dl;
51
57
  bool isInited;
52
58
  sys_var *system_vars;         /* server variables for this plugin */
53
 
  Module(const Manifest *manifest_arg, Library *library_arg)
54
 
    : name(manifest_arg->name), manifest(manifest_arg), plugin_dl(library_arg),
55
 
      isInited(false),
56
 
      system_vars(NULL)
57
 
  {
58
 
    assert(manifest != NULL);
59
 
  }
60
 
      
61
 
  Module(const Manifest *manifest_arg)
62
 
    : name(manifest_arg->name), manifest(manifest_arg), plugin_dl(NULL),
63
 
      isInited(false),
64
 
      system_vars(NULL)
 
59
  Module(const Manifest *manifest_arg,
 
60
         Library *library_arg) :
 
61
    name(manifest_arg->name),
 
62
    manifest(manifest_arg),
 
63
    plugin_dl(library_arg),
 
64
    isInited(false),
 
65
    system_vars(NULL)
65
66
  {
66
67
    assert(manifest != NULL);
67
68
  }
75
76
  {
76
77
    return *manifest;
77
78
  }
 
79
 
78
80
};
79
81
 
80
 
} /* namespace plugin */
 
82
} /* namespace module */
81
83
} /* namespace drizzled */
82
84
 
83
 
#endif /* DRIZZLED_PLUGIN_MODULE_H */
 
85
#endif /* DRIZZLED_MODULE_MODULE_H */