~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_gearman/logging_gearman.cc

  • Committer: Monty Taylor
  • Date: 2010-02-04 08:14:46 UTC
  • mfrom: (1277.2.1 build) (1280.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1283.
  • Revision ID: mordred@inaugust.com-20100204081446-ldh9m486va30uap6
Put everything in drizzled into drizzled namespace.
Put internal stuff into drizzled::internal namespace.
Removed some cruft.
Now every symbol that is shipped in a header is in the drizzled namespace
and everything in the server that's not shipped is labeled internal. woot. 
Removed a lot of the extra extern "C" stuff that was in there. Less ugliness for
internal callbacks now for Sun Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
  return dst;
170
170
}
171
171
 
172
 
class LoggingGearman : public drizzled::plugin::Logging
 
172
class LoggingGearman : public plugin::Logging
173
173
{
174
174
 
175
175
  int gearman_client_ok;
178
178
public:
179
179
 
180
180
  LoggingGearman()
181
 
    : drizzled::plugin::Logging("LoggingGearman"),
 
181
    : plugin::Logging("LoggingGearman"),
182
182
      gearman_client_ok(0)
183
183
  {
184
184
    gearman_return_t ret;
290
290
 
291
291
static LoggingGearman *handler= NULL;
292
292
 
293
 
static int logging_gearman_plugin_init(drizzled::plugin::Registry &registry)
 
293
static int logging_gearman_plugin_init(plugin::Registry &registry)
294
294
{
295
295
  handler= new LoggingGearman();
296
296
  registry.add(handler);
298
298
  return 0;
299
299
}
300
300
 
301
 
static int logging_gearman_plugin_deinit(drizzled::plugin::Registry &registry)
 
301
static int logging_gearman_plugin_deinit(plugin::Registry &registry)
302
302
{
303
303
  registry.remove(handler);
304
304
  delete handler;