~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/plugin.cc

Added code necessary for building plugins dynamically.
Merged in changes from lifeless to allow autoreconf to work.
Touching plugin.ini files now triggers a rebuid - so config/autorun.sh is no
longer required to be run after touching those.
Removed the duplicate plugin names - also removed the issue that getting them
different would silently fail weirdly later.

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 */