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 
00026 #include <boost/detail/atomic_count.hpp>
00027 
00028 #include <drizzled/global_buffer.h>
00029 #include <drizzled/definitions.h>
00030 
00031 struct passwd;
00032 
00033 namespace drizzled
00034 {
00035 
00036 namespace module
00037 {
00038 class Registry;
00039 }
00040 
00041 extern boost::detail::atomic_count connection_count;
00042 extern const char *load_default_groups[];
00043 extern bool volatile select_thread_in_use;
00044 extern bool volatile abort_loop;
00045 extern bool volatile ready_to_exit;
00046 extern bool opt_help;
00047 extern bool opt_help_extended;
00048 extern passwd *user_info;
00049 extern char *drizzled_user;
00050 
00051 extern global_buffer_constraint<uint64_t> global_sort_buffer;
00052 extern global_buffer_constraint<uint64_t> global_join_buffer;
00053 extern global_buffer_constraint<uint64_t> global_read_rnd_buffer;
00054 extern global_buffer_constraint<uint64_t> global_read_buffer;
00055 
00056 extern size_t transaction_message_threshold;
00057 
00058 extern const char * const DRIZZLE_CONFIG_NAME;
00059 
00060 boost::program_options::variables_map &getVariablesMap();
00061 
00062 int init_thread_environment();
00063 int init_server_components(module::Registry &modules);
00064 int init_basic_variables(int argc, char **argv);
00065 int init_remaining_variables(module::Registry &modules);
00066 
00067 passwd *check_user(const char *user);
00068 void set_user(const char *user, passwd *user_info_arg);
00069 void clean_up(bool print_message);
00070 
00071 } /* namespace drizzled */
00072