drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled.h
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, Inc.
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#pragma once
22
23#include <bitset>
24#include <boost/program_options.hpp>
25#include <boost/smart_ptr/detail/atomic_count.hpp>
26#include <drizzled/common_fwd.h>
27#include <drizzled/global_buffer.h>
29
30struct passwd;
31
32namespace drizzled {
33
34extern boost::detail::atomic_count connection_count;
35extern const char *load_default_groups[];
36extern bool volatile select_thread_in_use;
37extern bool volatile abort_loop;
38extern bool volatile ready_to_exit;
39extern passwd *user_info;
40
41extern global_buffer_constraint<uint64_t> global_sort_buffer;
42extern global_buffer_constraint<uint64_t> global_join_buffer;
43extern global_buffer_constraint<uint64_t> global_read_rnd_buffer;
44extern global_buffer_constraint<uint64_t> global_read_buffer;
45
46extern size_t transaction_message_threshold;
47
48extern const char * const DRIZZLE_CONFIG_NAME;
49
50boost::program_options::variables_map &getVariablesMap();
51
52int init_thread_environment();
53void init_server_components(module::Registry&);
54bool init_variables_before_daemonizing(int argc, char **argv);
55bool init_variables_after_daemonizing(module::Registry&);
56
57passwd *check_user(const char *user);
58void set_user(const char *user, passwd *user_info_arg);
59void clean_up(bool print_message);
60bool was_help_requested();
61
62} /* namespace drizzled */
63
TODO: Rename this file - func.h is stupid.