Drizzled Public API Documentation

drizzled.h
00001 /* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
00002  *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
00003  *
00004  *  Copyright (C) 2008 Sun Microsystems, Inc.
00005  *  Copyright (C) 2010 Monty Taylor
00006  *
00007  *  This program is free software; you can redistribute it and/or modify
00008  *  it under the terms of the GNU General Public License as published by
00009  *  the Free Software Foundation; version 2 of the License.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 #pragma once
00022 
00023 #include <bitset>
00024 #include <boost/program_options.hpp>
00025 #include <boost/detail/atomic_count.hpp>
00026 #include <drizzled/common_fwd.h>
00027 #include <drizzled/global_buffer.h>
00028 #include <drizzled/definitions.h>
00029 
00030 struct passwd;
00031 
00032 namespace drizzled {
00033 
00034 extern boost::detail::atomic_count connection_count;
00035 extern const char *load_default_groups[];
00036 extern bool volatile select_thread_in_use;
00037 extern bool volatile abort_loop;
00038 extern bool volatile ready_to_exit;
00039 extern passwd *user_info;
00040 
00041 extern global_buffer_constraint<uint64_t> global_sort_buffer;
00042 extern global_buffer_constraint<uint64_t> global_join_buffer;
00043 extern global_buffer_constraint<uint64_t> global_read_rnd_buffer;
00044 extern global_buffer_constraint<uint64_t> global_read_buffer;
00045 
00046 extern size_t transaction_message_threshold;
00047 
00048 extern const char * const DRIZZLE_CONFIG_NAME;
00049 
00050 boost::program_options::variables_map &getVariablesMap();
00051 
00052 int init_thread_environment();
00053 void init_server_components(module::Registry&);
00054 bool init_variables_before_daemonizing(int argc, char **argv);
00055 bool init_variables_after_daemonizing(module::Registry&);
00056 
00057 passwd *check_user(const char *user);
00058 void set_user(const char *user, passwd *user_info_arg);
00059 void clean_up(bool print_message);
00060 bool was_help_requested();
00061 
00062 } /* namespace drizzled */
00063