~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_engine/plugin.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-23 11:44:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: olafvdspek@gmail.com-20110623114430-no355yypk4y3icqb
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include "config.h"
 
21
#include <config.h>
22
22
 
23
23
#include <plugin/schema_engine/schema.h>
24
24
 
31
31
 
32
32
static int init(drizzled::module::Context &context)
33
33
{
34
 
  schema_plugin= new(std::nothrow) Schema();
35
 
 
36
 
  if (not schema_plugin)
37
 
  {
38
 
    return 1;
39
 
  }
40
 
 
 
34
  schema_plugin= new Schema;
41
35
  context.add(schema_plugin);
42
 
 
43
36
  return 0;
44
37
}
45
38
 
52
45
  "This implements the default file based Schema engine.",
53
46
  PLUGIN_LICENSE_GPL,
54
47
  init,     /* Plugin Init */
55
 
  NULL,               /* system variables */
 
48
  "signal_handler",               /* depends */
56
49
  NULL                /* config options   */
57
50
}
58
51
DRIZZLE_DECLARE_PLUGIN_END;