~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • 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:
28
28
#include "drizzled/definitions.h"
29
29
 
30
30
 
 
31
namespace drizzled
 
32
{
 
33
 
31
34
class Session;
32
35
class Item;
33
36
struct charset_info_st;
46
49
extern char *opt_plugin_dir_ptr;
47
50
extern char opt_plugin_dir[FN_REFLEN];
48
51
 
49
 
namespace drizzled { namespace plugin { class StorageEngine; } }
 
52
namespace plugin { class StorageEngine; }
50
53
 
51
54
/*
52
55
  Macros for beginning and ending plugin declarations. Between
53
56
  DRIZZLE_DECLARE_PLUGIN and DRIZZLE_DECLARE_PLUGIN_END there should
54
 
  be a drizzled::plugin::Manifest for each plugin to be declared.
 
57
  be a plugin::Manifest for each plugin to be declared.
55
58
*/
56
59
 
57
60
 
58
61
#define PANDORA_CPP_NAME(x) _drizzled_ ## x ## _plugin_
59
62
#define PANDORA_PLUGIN_NAME(x) PANDORA_CPP_NAME(x)
60
63
#define DRIZZLE_DECLARE_PLUGIN \
61
 
           drizzled::plugin::Manifest PANDORA_PLUGIN_NAME(PANDORA_MODULE_NAME)= 
 
64
  ::drizzled::plugin::Manifest PANDORA_PLUGIN_NAME(PANDORA_MODULE_NAME)= 
62
65
 
63
66
 
64
67
#define DRIZZLE_DECLARE_PLUGIN_END
371
374
extern "C" {
372
375
#endif
373
376
 
374
 
extern bool plugin_init(drizzled::plugin::Registry &registry,
 
377
extern bool plugin_init(plugin::Registry &registry,
375
378
                        int *argc, char **argv,
376
379
                        bool skip_init);
377
 
extern void plugin_shutdown(drizzled::plugin::Registry &plugins);
 
380
extern void plugin_shutdown(plugin::Registry &plugins);
378
381
extern void my_print_help_inc_plugins(my_option *options);
379
382
extern bool plugin_is_ready(const LEX_STRING *name, int type);
380
383
extern void plugin_sessionvar_init(Session *session);
401
404
 
402
405
  @param prefix  prefix for temporary file name
403
406
  @retval -1    error
404
 
  @retval >= 0  a file handle that can be passed to dup or my_close
 
407
  @retval >= 0  a file handle that can be passed to dup or internal::my_close
405
408
*/
406
409
int mysql_tmpfile(const char *prefix);
407
410
 
490
493
}
491
494
#endif
492
495
 
 
496
} /* namespace drizzled */
 
497
 
493
498
#endif /* DRIZZLED_PLUGIN_H */
494
499