~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/module.h

* Renames Ha_trx_info to drizzled::ResourceContext
* Renames Sesssion_TRANS to drizzled::TransactionContext
* Replaces homegrown linked-lists of Ha_trx_info pointers
  with vector<drizzled::ResourceContext> operations
* Renames Session::getEngineInfo() to Session::getResourceContext()

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_PLUGIN_MODULE_H
21
21
#define DRIZZLED_PLUGIN_MODULE_H
22
22
 
23
 
/**
24
 
 * @file Defines a Plugin Module
25
 
 *
26
 
 * A plugin::Module is the fundamental functional element of the plugin system.
27
 
 * Plugins are inited and deinited by module. A module init can register one
28
 
 * or more plugin::Plugin objects. 
29
 
 */
30
 
 
31
 
#include <cassert>
32
 
 
 
23
#include "drizzled/lex_string.h"
33
24
#include "drizzled/plugin/manifest.h"
34
25
 
 
26
class sys_var;
 
27
 
35
28
namespace drizzled
36
29
{
37
 
class sys_var;
38
 
 
39
30
namespace plugin
40
31
{
41
32
 
53
44
  Module(const Manifest *manifest_arg, Library *library_arg)
54
45
    : name(manifest_arg->name), manifest(manifest_arg), plugin_dl(library_arg),
55
46
      isInited(false),
56
 
      system_vars(NULL)
57
 
  {
58
 
    assert(manifest != NULL);
59
 
  }
 
47
      system_vars(NULL) {}
60
48
      
61
49
  Module(const Manifest *manifest_arg)
62
50
    : name(manifest_arg->name), manifest(manifest_arg), plugin_dl(NULL),
63
51
      isInited(false),
64
 
      system_vars(NULL)
65
 
  {
66
 
    assert(manifest != NULL);
67
 
  }
 
52
      system_vars(NULL) {}
68
53
      
69
54
  const std::string& getName() const
70
55
  {