1 /* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. 2 3 This program is free software; you can redistribute it and/or modify 4 it under the terms of the GNU General Public License, version 2.0, 5 as published by the Free Software Foundation. 6 7 This program is also distributed with certain software (including 8 but not limited to OpenSSL) that is licensed under separate terms, 9 as designated in a particular file or component or in included license 10 documentation. The authors of MySQL hereby grant you an additional 11 permission to link the program and your derivative works with the 12 separately licensed software that they have included with MySQL. 13 14 Without limiting anything contained in the foregoing, this file, 15 which is part of C Driver for MySQL (Connector/C), is also subject to the 16 Universal FOSS Exception, version 1.0, a copy of which can be found at 17 http://oss.oracle.com/licenses/universal-foss-exception. 18 19 This program is distributed in the hope that it will be useful, 20 but WITHOUT ANY WARRANTY; without even the implied warranty of 21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 GNU General Public License, version 2.0, for more details. 23 24 You should have received a copy of the GNU General Public License 25 along with this program; if not, write to the Free Software Foundation, 26 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */ 27 28 29 #ifndef CLIENT_SETTINGS_INCLUDED 30 #define CLIENT_SETTINGS_INCLUDED 31 #else 32 #error You have already included an client_settings.h and it should not be included twice 33 #endif /* CLIENT_SETTINGS_INCLUDED */ 34 35 #include <thr_alarm.h> 36 #include <sql_common.h> 37 38 /* 39 Note: CLIENT_CAPABILITIES is also defined in libmysql/client_settings.h. 40 When adding capabilities here, consider if they should be also added to 41 the libmysql version. 42 */ 43 #define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | \ 44 CLIENT_LONG_FLAG | \ 45 CLIENT_SECURE_CONNECTION | \ 46 CLIENT_TRANSACTIONS | \ 47 CLIENT_PROTOCOL_41 | \ 48 CLIENT_SECURE_CONNECTION | \ 49 CLIENT_PLUGIN_AUTH | \ 50 CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA | \ 51 CLIENT_CONNECT_ATTRS) 52 53 #define read_user_name(A) {} 54 #undef HAVE_SMEM 55 #undef _CUSTOMCONFIG_ 56 57 #define mysql_server_init(a,b,c) mysql_client_plugin_init() 58 #define mysql_server_end() mysql_client_plugin_deinit() 59 60 #ifdef HAVE_REPLICATION 61 C_MODE_START 62 void slave_io_thread_detach_vio(); 63 C_MODE_END 64 #else 65 #define slave_io_thread_detach_vio() 66 #endif 67 68