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

« back to all changes in this revision

Viewing changes to plugin/rot13/rot13.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:
80
80
};
81
81
 
82
82
using plugin::Create_function;
83
 
using plugin::Registry;
 
83
using module::Context;
84
84
typedef Create_function<Function> PluginFunction;
85
85
PluginFunction *rot13_func= NULL;
86
86
 
87
 
static int init(Registry &registry)
 
87
static int init(Context &context)
88
88
{
89
89
  rot13_func= new PluginFunction(rot13::name);
90
 
  registry.add(rot13_func);
91
 
  return 0;
92
 
}
93
 
 
94
 
static int deinit(Registry &registry)
95
 
{
96
 
  registry.remove(rot13_func);
97
 
  delete rot13_func;
 
90
  context.add(rot13_func);
98
91
  return 0;
99
92
}
100
93
 
101
94
} /* namespace rot13 */
102
95
 
103
 
DRIZZLE_PLUGIN(rot13::init, rot13::deinit, NULL);
 
96
DRIZZLE_PLUGIN(rot13::init, NULL, NULL);