~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/database_function/database_function.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
plugin::Create_function<DatabaseFunction> *database_function= NULL;
57
57
 
58
 
static int initialize(drizzled::plugin::Registry &registry)
 
58
static int initialize(drizzled::module::Context &context)
59
59
{
60
60
  database_function= new plugin::Create_function<DatabaseFunction>("database");
61
 
  registry.add(database_function);
 
61
  context.add(database_function);
62
62
  return 0;
63
63
}
64
64
 
65
 
static int finalize(drizzled::plugin::Registry &registry)
66
 
{
67
 
   registry.remove(database_function);
68
 
   delete database_function;
69
 
   return 0;
70
 
}
71
 
 
72
65
DRIZZLE_DECLARE_PLUGIN
73
66
{
74
67
  DRIZZLE_VERSION_ID,
78
71
  "returns the current database",
79
72
  PLUGIN_LICENSE_GPL,
80
73
  initialize, /* Plugin Init */
81
 
  finalize,   /* Plugin Deinit */
82
74
  NULL,   /* system variables */
83
75
  NULL    /* config options */
84
76
}