2006-12-31 01:02:27 +01:00
|
|
|
/* Copyright (C) 2003-2006 MySQL AB
|
2003-08-16 21:44:24 +04:00
|
|
|
|
|
|
|
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
|
2006-12-23 20:17:15 +01:00
|
|
|
the Free Software Foundation; version 2 of the License.
|
2003-08-16 21:44:24 +04:00
|
|
|
|
|
|
|
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 */
|
|
|
|
|
2006-12-31 01:02:27 +01:00
|
|
|
#ifndef INCLUDES_MYSQL_INSTANCE_MANAGER_OPTIONS_H
|
|
|
|
#define INCLUDES_MYSQL_INSTANCE_MANAGER_OPTIONS_H
|
|
|
|
|
2003-08-16 21:44:24 +04:00
|
|
|
/*
|
|
|
|
Options - all possible options for the instance manager grouped in one
|
|
|
|
struct.
|
|
|
|
*/
|
2004-10-23 11:32:52 +04:00
|
|
|
#include <my_global.h>
|
2003-08-16 21:44:24 +04:00
|
|
|
|
2005-10-19 00:31:00 +04:00
|
|
|
#if defined(__GNUC__) && defined(USE_PRAGMA_INTERFACE)
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2004-10-23 11:32:52 +04:00
|
|
|
struct Options
|
2003-08-16 21:44:24 +04:00
|
|
|
{
|
2005-07-20 10:55:40 -05:00
|
|
|
#ifdef __WIN__
|
|
|
|
static char install_as_service;
|
|
|
|
static char remove_service;
|
2005-09-13 14:53:19 -05:00
|
|
|
static char stand_alone;
|
2005-07-20 10:55:40 -05:00
|
|
|
#else
|
2003-08-16 21:44:24 +04:00
|
|
|
static char run_as_service; /* handle_options doesn't support bool */
|
2005-07-20 10:55:40 -05:00
|
|
|
static const char *user;
|
2006-05-06 13:57:56 +04:00
|
|
|
static const char *angel_pid_file_name;
|
2006-10-05 01:24:53 +04:00
|
|
|
static const char *socket_file_name;
|
2005-07-20 10:55:40 -05:00
|
|
|
#endif
|
2006-02-10 02:15:55 +03:00
|
|
|
static bool is_forced_default_file;
|
2003-08-16 21:44:24 +04:00
|
|
|
static const char *log_file_name;
|
|
|
|
static const char *pid_file_name;
|
2004-10-23 11:32:52 +04:00
|
|
|
static const char *password_file_name;
|
|
|
|
static const char *default_mysqld_path;
|
2005-02-18 14:58:30 +03:00
|
|
|
/* the option which should be passed to process_default_option_files */
|
2004-10-23 11:32:52 +04:00
|
|
|
static uint monitoring_interval;
|
|
|
|
static uint port_number;
|
|
|
|
static const char *bind_address;
|
2005-07-21 22:40:53 +04:00
|
|
|
static const char *config_file;
|
2003-08-16 21:44:24 +04:00
|
|
|
|
2005-07-21 14:21:23 +04:00
|
|
|
/* argv pointer returned by load_defaults() to be used by free_defaults() */
|
2005-02-03 20:48:58 +03:00
|
|
|
static char **saved_argv;
|
|
|
|
|
2005-07-20 10:55:40 -05:00
|
|
|
int load(int argc, char **argv);
|
2005-02-03 20:48:58 +03:00
|
|
|
void cleanup();
|
2005-07-20 10:55:40 -05:00
|
|
|
#ifdef __WIN__
|
2005-09-13 14:53:19 -05:00
|
|
|
int setup_windows_defaults();
|
2005-07-20 10:55:40 -05:00
|
|
|
#endif
|
2003-08-16 21:44:24 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INCLUDES_MYSQL_INSTANCE_MANAGER_OPTIONS_H
|