~drizzle-trunk/drizzle/development

1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
5
 *  Copyright (C) 2010 Monty Taylor
6
 *
7
 *  This program is free software; you can redistribute it and/or modify
8
 *  it under the terms of the GNU General Public License as published by
9
 *  the Free Software Foundation; version 2 of the License.
10
 *
11
 *  This program is distributed in the hope that it will be useful,
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 *  GNU General Public License for more details.
15
 *
16
 *  You should have received a copy of the GNU General Public License
17
 *  along with this program; if not, write to the Free Software
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 */
20
21
#ifndef DRIZZLED_DRIZZLED_H
22
#define DRIZZLED_DRIZZLED_H
23
24
#include <bitset>
1635.1.1 by Monty Taylor
Moved actual parsing of plugin program_options to drizzled.cc so that we do
25
#include <boost/program_options.hpp>
1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
26
2039.3.5 by Brian Aker
Switched connection_count to use boost atomic.
27
#include <boost/detail/atomic_count.hpp>
28
1796.4.1 by Andrew Hutchings
Add initial template work and test
29
#include "drizzled/global_buffer.h"
30
#include "drizzled/definitions.h"
2039.3.5 by Brian Aker
Switched connection_count to use boost atomic.
31
1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
32
struct passwd;
33
34
namespace drizzled
35
{
36
1530.2.5 by Monty Taylor
Renamed classes that were in drizzled::plugin but which were not meant
37
namespace module
1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
38
{
39
class Registry;
40
}
41
42
extern std::bitset<12> test_flags;
2039.3.5 by Brian Aker
Switched connection_count to use boost atomic.
43
extern boost::detail::atomic_count connection_count;
1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
44
extern const char *load_default_groups[];
45
extern bool volatile select_thread_in_use;
46
extern bool volatile abort_loop;
47
extern bool volatile ready_to_exit;
48
extern bool opt_help;
49
extern bool opt_help_extended;
50
extern passwd *user_info;
51
extern char *drizzled_user;
52
1796.4.1 by Andrew Hutchings
Add initial template work and test
53
extern global_buffer_constraint<uint64_t> global_sort_buffer;
1796.4.9 by Andrew Hutchings
Add join cache global constraint
54
extern global_buffer_constraint<uint64_t> global_join_buffer;
1796.4.10 by Andrew Hutchings
Add global constraint for --read-rnd-buffer-size
55
extern global_buffer_constraint<uint64_t> global_read_rnd_buffer;
1796.4.11 by Andrew Hutchings
Add global constraint on read buffer
56
extern global_buffer_constraint<uint64_t> global_read_buffer;
1796.4.1 by Andrew Hutchings
Add initial template work and test
57
1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
58
extern const char * const DRIZZLE_CONFIG_NAME;
59
1635.1.1 by Monty Taylor
Moved actual parsing of plugin program_options to drizzled.cc so that we do
60
boost::program_options::variables_map &getVariablesMap();
61
1623 by Monty Taylor
Fixed a non-initialized issue on OSX.
62
int init_thread_environment();
1757.2.6 by Monty Taylor
We've gotten further. Now things sometimes work, but some things aren't
63
int init_server_components(module::Registry &modules);
1794.3.1 by Monty Taylor
Rearranged option processing.
64
int init_common_variables(int argc, char **argv, module::Registry &modules);
1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
65
66
passwd *check_user(const char *user);
67
void set_user(const char *user, passwd *user_info_arg);
68
void clean_up(bool print_message);
69
bool drizzle_rm_tmp_tables();
70
71
} /* namespace drizzled */
72
73
#endif /* DRIZZLED_DRIZZLED_H */