~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.h

  • Committer: Stewart Smith
  • Date: 2010-08-05 16:41:55 UTC
  • mfrom: (1638.9.13)
  • mto: (1720.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1721.
  • Revision ID: stewart@flamingspork.com-20100805164155-7olu6iv6rwoxfsne
Merged store-foreign-key-in-table-proto into show-create-table-using-table-message.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 *  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>
 
25
#include <boost/program_options.hpp>
 
26
 
 
27
#include "drizzled/atomics.h"
 
28
 
 
29
struct passwd;
 
30
 
 
31
namespace drizzled
 
32
{
 
33
 
 
34
namespace module
 
35
{
 
36
class Registry;
 
37
}
 
38
 
 
39
extern std::bitset<12> test_flags;
 
40
extern atomic<uint32_t> connection_count;
 
41
extern bool calling_initgroups;
 
42
extern const char *load_default_groups[];
 
43
extern bool volatile select_thread_in_use;
 
44
extern bool volatile abort_loop;
 
45
extern bool volatile ready_to_exit;
 
46
extern bool opt_help;
 
47
extern bool opt_help_extended;
 
48
extern passwd *user_info;
 
49
extern char *drizzled_user;
 
50
 
 
51
extern const char * const DRIZZLE_CONFIG_NAME;
 
52
 
 
53
boost::program_options::variables_map &getVariablesMap();
 
54
 
 
55
int init_thread_environment();
 
56
int init_server_components(module::Registry &modules);
 
57
int init_common_variables(const char *conf_file_name, int argc,
 
58
                          char **argv, const char **groups);
 
59
 
 
60
passwd *check_user(const char *user);
 
61
void set_user(const char *user, passwd *user_info_arg);
 
62
void clean_up(bool print_message);
 
63
void clean_up_mutexes(void);
 
64
bool drizzle_rm_tmp_tables();
 
65
 
 
66
} /* namespace drizzled */
 
67
 
 
68
#endif /* DRIZZLED_DRIZZLED_H */