~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: Brian Aker
  • Date: 2009-10-12 22:46:41 UTC
  • mfrom: (1130.2.27 plugin-base-class)
  • Revision ID: brian@gaz-20091012224641-gjo56i190y8c98xg
Merge Monty, default class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
extern char *opt_plugin_dir_ptr;
44
44
extern char opt_plugin_dir[FN_REFLEN];
45
45
 
 
46
namespace drizzled { namespace plugin { class StorageEngine; } }
 
47
 
46
48
/*
47
49
  Macros for beginning and ending plugin declarations. Between
48
50
  drizzle_declare_plugin and drizzle_declare_plugin_end there should
358
360
  (*(DRIZZLE_SYSVAR_NAME(name).resolve(session, DRIZZLE_SYSVAR_NAME(name).offset)))
359
361
 
360
362
 
361
 
namespace drizzled
362
 
{
363
 
namespace plugin
364
 
{
365
 
class StorageEngine;
366
 
}
367
 
}
368
 
 
369
 
 
370
 
class Plugin
371
 
{
372
 
private:
373
 
  std::string name;
374
 
  std::string version;
375
 
  std::string author;
376
 
  std::string description;
377
 
 
378
 
public:
379
 
  Plugin(std::string in_name, std::string in_version,
380
 
         std::string in_author, std::string in_description)
381
 
    : name(in_name), version(in_version),
382
 
    author(in_author), description(in_description)
383
 
  {}
384
 
 
385
 
  virtual ~Plugin() {}
386
 
 
387
 
  virtual void add_functions() {}
388
 
 
389
 
};
390
 
 
391
363
/*************************************************************************
392
364
  st_mysql_value struct for reading values from mysqld.
393
365
  Used by server variables framework to parse user-provided values.