~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: Monty Taylor
  • Date: 2010-05-15 18:23:34 UTC
  • mto: (1530.6.1)
  • mto: This revision was merged to the branch mainline in revision 1556.
  • Revision ID: mordred@inaugust.com-20100515182334-bgbmwij0mioklajx
Renamed classes that were in drizzled::plugin but which were not meant
for consumption by plugin authors to drizzled::module - since they
really have to do with plugin module loading. This way when we
look in drizzled/plugin, we see nothing but plugin interfaces. Win.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_PLUGIN_H
21
21
#define DRIZZLED_PLUGIN_H
22
22
 
23
 
#include <drizzled/lex_string.h>
24
 
#include <drizzled/xid.h>
25
 
#include <drizzled/plugin/manifest.h>
26
 
#include <drizzled/plugin/module.h>
 
23
#include "drizzled/module/manifest.h"
 
24
#include "drizzled/module/module.h"
27
25
#include "drizzled/plugin/version.h"
 
26
#include "drizzled/plugin/context.h"
28
27
#include "drizzled/definitions.h"
29
 
#include "drizzled/plugin/context.h"
30
28
 
 
29
#include "drizzled/lex_string.h"
 
30
#include "drizzled/xid.h"
31
31
 
32
32
namespace drizzled
33
33
{
56
56
/*
57
57
  Macros for beginning and ending plugin declarations. Between
58
58
  DRIZZLE_DECLARE_PLUGIN and DRIZZLE_DECLARE_PLUGIN_END there should
59
 
  be a plugin::Manifest for each plugin to be declared.
 
59
  be a module::Manifest for each plugin to be declared.
60
60
*/
61
61
 
62
62
 
63
63
#define PANDORA_CPP_NAME(x) _drizzled_ ## x ## _plugin_
64
64
#define PANDORA_PLUGIN_NAME(x) PANDORA_CPP_NAME(x)
65
65
#define DRIZZLE_DECLARE_PLUGIN \
66
 
  ::drizzled::plugin::Manifest PANDORA_PLUGIN_NAME(PANDORA_MODULE_NAME)= 
 
66
  ::drizzled::module::Manifest PANDORA_PLUGIN_NAME(PANDORA_MODULE_NAME)= 
67
67
 
68
68
 
69
69
#define DRIZZLE_DECLARE_PLUGIN_END
371
371
  Miscellaneous functions for plugin implementors
372
372
*/
373
373
 
374
 
extern bool plugin_init(plugin::Registry &registry,
 
374
extern bool plugin_init(module::Registry &registry,
375
375
                        int *argc, char **argv,
376
376
                        bool skip_init);
377
 
extern void plugin_shutdown(plugin::Registry &plugins);
378
377
extern void my_print_help_inc_plugins(option *options);
379
378
extern bool plugin_is_ready(const LEX_STRING *name, int type);
380
379
extern void plugin_sessionvar_init(Session *session);
423
422
 
424
423
 
425
424
const charset_info_st *session_charset(Session *session);
426
 
void session_mark_transaction_to_rollback(Session *session, bool all);
427
425
 
428
426
/**
429
427
  Invalidate the query cache for a given table.