~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/plugin.cc

  • Committer: Brian Aker
  • Date: 2009-11-02 19:25:39 UTC
  • mfrom: (1192.2.8 bug435444)
  • Revision ID: brian@gaz-20091102192539-sbknzvfitz80c1ku
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include "drizzled/global.h"
21
21
#include "drizzled/plugin/plugin.h"
 
22
#include "drizzled/plugin/module.h"
22
23
 
23
24
namespace drizzled
24
25
{
25
26
 
26
 
plugin::Plugin::Plugin(std::string in_name)
 
27
plugin::Plugin::Plugin(std::string in_name, std::string in_type_name)
27
28
  : name(in_name),
28
29
    aliases(),
29
30
    is_active(true),
30
 
    handle(NULL)
 
31
    module(NULL),
 
32
    type_name(in_type_name)
31
33
{ }
32
34
 
 
35
const std::string& plugin::Plugin::getModuleName() const
 
36
{
 
37
  return module->getName();
 
38
}
 
39
 
33
40
} /* namespace drizzled */