~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/registry_dictionary/modules.cc

  • Committer: Olaf van der Spek
  • Date: 2011-02-12 18:24:24 UTC
  • mto: (2167.1.2 build) (2172.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2168.
  • Revision ID: olafvdspek@gmail.com-20110212182424-kgnm9osi7qo97at2
casts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems
 
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
21
21
#include "config.h"
22
22
 
23
23
#include "plugin/registry_dictionary/dictionary.h"
24
 
#include "drizzled/plugin/library.h"
 
24
#include "drizzled/module/library.h"
25
25
 
26
26
using namespace std;
27
27
using namespace drizzled;
41
41
  add_field("MODULE_NAME");
42
42
  add_field("MODULE_VERSION", 20);
43
43
  add_field("MODULE_AUTHOR");
44
 
  add_field("IS_BUILTIN", plugin::TableFunction::BOOLEAN);
 
44
  add_field("IS_BUILTIN", plugin::TableFunction::BOOLEAN, 0, false);
45
45
  add_field("MODULE_LIBRARY", 254);
46
46
  add_field("MODULE_DESCRIPTION", 254);
47
47
  add_field("MODULE_LICENSE", 80);
50
50
ModulesTool::Generator::Generator(Field **arg) :
51
51
  plugin::TableFunction::Generator(arg)
52
52
{
53
 
  plugin::Registry &registry= plugin::Registry::singleton();
54
 
  modules= registry.getList(true);
 
53
  module::Registry &registry= module::Registry::singleton();
 
54
  modules= registry.getList();
55
55
  it= modules.begin();
56
56
}
57
57
 
61
61
    return false;
62
62
 
63
63
  {
64
 
    plugin::Module *module= *it;
65
 
    const plugin::Manifest &manifest= module->getManifest();
 
64
    module::Module *module= *it;
 
65
    const module::Manifest &manifest= module->getManifest();
66
66
 
67
67
    /* MODULE_NAME */
68
68
    push(module->getName());