mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 21:42:35 +01:00
d946b64dce
into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge mysql-test/r/im_daemon_life_cycle.result: Auto merged mysql-test/r/ps.result: Auto merged mysql-test/r/rpl_insert_id.result: Auto merged mysql-test/r/sp-vars.result: Auto merged mysql-test/r/trigger.result: Auto merged mysql-test/r/view.result: Auto merged mysql-test/t/func_gconcat.test: Auto merged mysql-test/t/im_daemon_life_cycle.imtest: Auto merged mysql-test/t/ps.test: Auto merged mysql-test/t/rpl_insert_id.test: Auto merged mysql-test/t/sp.test: Auto merged mysql-test/t/trigger.test: Auto merged server-tools/instance-manager/guardian.cc: Auto merged server-tools/instance-manager/guardian.h: Auto merged server-tools/instance-manager/instance_map.cc: Auto merged server-tools/instance-manager/listener.cc: Auto merged sql/item_func.cc: Auto merged sql/item_func.h: Auto merged sql/item_sum.cc: Auto merged sql/item_sum.h: Auto merged sql/sp_head.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_trigger.cc: Auto merged sql/sql_view.cc: Auto merged sql/sql_yacc.yy: Auto merged tests/mysql_client_test.c: Auto merged mysql-test/r/sp-error.result: Use local mysql-test/r/sp.result: Use local (will overwrite) mysql-test/t/view.test: Use local. mysql-test/mysql-test-run.pl: Manual merge. mysql-test/t/sp-error.test: Manual merge. server-tools/instance-manager/instance.cc: Manual merge. server-tools/instance-manager/manager.cc: Manual merge. server-tools/instance-manager/options.cc: Manual merge. server-tools/instance-manager/options.h: Manual merge. sql/log_event.cc: Manual merge. sql/set_var.cc: Manual merge. sql/sql_class.h: Manual merge. sql/sql_insert.cc: Manual merge. sql/sql_load.cc: Manual merge. sql/sql_select.cc: Manual merge. sql/sql_update.cc: Manual merge.
105 lines
2.6 KiB
C++
105 lines
2.6 KiB
C++
#ifndef INCLUDES_MYSQL_INSTANCE_MANAGER_OPTIONS_H
|
|
#define INCLUDES_MYSQL_INSTANCE_MANAGER_OPTIONS_H
|
|
/* Copyright (C) 2003 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
/*
|
|
Options - all possible command-line options for the Instance Manager grouped
|
|
in one struct.
|
|
*/
|
|
|
|
#include <my_global.h>
|
|
|
|
#if defined(__GNUC__) && defined(USE_PRAGMA_INTERFACE)
|
|
#pragma interface
|
|
#endif
|
|
|
|
class User_management_cmd;
|
|
|
|
struct Options
|
|
{
|
|
/*
|
|
NOTE: handle_options() expects value of my_bool type for GET_BOOL
|
|
accessor (i.e. bool must not be used).
|
|
*/
|
|
|
|
struct User_management
|
|
{
|
|
static User_management_cmd *cmd;
|
|
|
|
static char *user_name;
|
|
static char *password;
|
|
};
|
|
|
|
struct Main
|
|
{
|
|
/* this is not an option parsed by handle_options(). */
|
|
static bool is_forced_default_file;
|
|
|
|
static const char *pid_file_name;
|
|
#ifndef __WIN__
|
|
static const char *socket_file_name;
|
|
#endif
|
|
static const char *password_file_name;
|
|
static const char *default_mysqld_path;
|
|
static uint monitoring_interval;
|
|
static uint port_number;
|
|
static const char *bind_address;
|
|
static const char *config_file;
|
|
static my_bool mysqld_safe_compatible;
|
|
};
|
|
|
|
#ifndef DBUG_OFF
|
|
struct Debug
|
|
{
|
|
static const char *config_str;
|
|
};
|
|
#endif
|
|
|
|
#ifndef __WIN__
|
|
|
|
struct Daemon
|
|
{
|
|
static my_bool run_as_service;
|
|
static const char *log_file_name;
|
|
static const char *user;
|
|
static const char *angel_pid_file_name;
|
|
};
|
|
|
|
#else
|
|
|
|
struct Service
|
|
{
|
|
static my_bool install_as_service;
|
|
static my_bool remove_service;
|
|
static my_bool stand_alone;
|
|
};
|
|
|
|
#endif
|
|
|
|
public:
|
|
static int load(int argc, char **argv);
|
|
static void cleanup();
|
|
|
|
private:
|
|
Options(); /* Deny instantiation of this class. */
|
|
|
|
private:
|
|
/* argv pointer returned by load_defaults() to be used by free_defaults() */
|
|
static char **saved_argv;
|
|
};
|
|
|
|
#endif // INCLUDES_MYSQL_INSTANCE_MANAGER_OPTIONS_H
|