~drizzle-trunk/drizzle/development

390.1.2 by Monty Taylor
Fixed copyright headers in drizzled/
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
4
 *  Copyright (C) 2008 Sun Microsystems
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; version 2 of the License.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU General Public License
16
 *  along with this program; if not, write to the Free Software
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 */
1 by brian
clean slate
19
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
20
/**
21
 * @TODO There is plugin.h and also sql_plugin.h.  Ostensibly,
243.1.11 by Jay Pipes
* Added include guards in a couple places, and removed unecessary
22
 * it seems that the two files exist so that plugin.h can provide an
23
 * external API for plugin developers and sql_plugin.h will provide
24
 * and internal server API for dealing with those plugins.
25
 *
26
 * However, there are parts of plugin.h marked "INTERNAL USE ONLY" which
27
 * seems to contradict the above...
28
 *
29
 * Let's figure out a better way of dividing the public and internal API
30
 * and name the files more appropriately.
31
 *
32
 * Also, less #defines, more enums and bitmaps...
33
 *
34
 */
35
36
#ifndef DRIZZLE_SERVER_PLUGIN_H
37
#define DRIZZLE_SERVER_PLUGIN_H
1 by brian
clean slate
38
971.1.61 by Monty Taylor
Moved a few things around in headers.
39
#include <drizzled/plugin.h>
1093.3.2 by Monty Taylor
Split drizzle::plugin::Manifest into its own file.
40
#include <drizzled/plugin/manifest.h>
1093.3.3 by Monty Taylor
Split out handle and library.
41
#include <drizzled/plugin/library.h>
42
#include <drizzled/plugin/handle.h>
575.1.6 by Monty Taylor
Cleaned up some headers for PCH.
43
1093.3.3 by Monty Taylor
Split out handle and library.
44
class Session;
1 by brian
clean slate
45
class sys_var;
1093.3.3 by Monty Taylor
Split out handle and library.
46
typedef struct st_mysql_lex_string LEX_STRING;
1093.3.5 by Monty Taylor
Removed a dynamic array.
47
struct my_option;
1 by brian
clean slate
48
49
extern char *opt_plugin_load;
50
extern char *opt_plugin_dir_ptr;
51
extern char opt_plugin_dir[FN_REFLEN];
52
53
extern int plugin_init(int *argc, char **argv, int init_flags);
54
extern void plugin_shutdown(void);
1093.3.5 by Monty Taylor
Removed a dynamic array.
55
extern void my_print_help_inc_plugins(my_option *options);
1 by brian
clean slate
56
extern bool plugin_is_ready(const LEX_STRING *name, int type);
520.1.22 by Brian Aker
Second pass of thd cleanup
57
extern bool mysql_install_plugin(Session *session, const LEX_STRING *name,
1 by brian
clean slate
58
                                 const LEX_STRING *dl);
520.1.22 by Brian Aker
Second pass of thd cleanup
59
extern bool mysql_uninstall_plugin(Session *session, const LEX_STRING *name);
1093.3.1 by Monty Taylor
Rename of plugin classes.
60
extern bool plugin_register_builtin(drizzled::plugin::Manifest *plugin);
520.1.22 by Brian Aker
Second pass of thd cleanup
61
extern void plugin_sessionvar_init(Session *session);
62
extern void plugin_sessionvar_cleanup(Session *session);
1085.1.2 by Monty Taylor
Fixed -Wmissing-declarations
63
extern sys_var *intern_find_sys_var(const char *str, uint32_t, bool no_error);
1 by brian
clean slate
64
243.1.11 by Jay Pipes
* Added include guards in a couple places, and removed unecessary
65
#endif /* DRIZZLE_SERVER_PLUGIN_H */