include/maxscale/gw.h removed.

In a subsequent change, the includes of server/core/*.c will be
cleaned up, and if there is a common set of include files, needed
by most, then a server/core/maxscale/core.h that includes those
will be introduced.
This commit is contained in:
Johan Wikman 2016-10-17 11:23:14 +03:00
parent 63b5c10f31
commit f0cf391c18
23 changed files with 10 additions and 67 deletions

View File

@ -1,43 +0,0 @@
#pragma once
#ifndef _MAXSCALE_GW_HG
#define _MAXSCALE_GW_HG
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl.
*
* Change Date: 2019-07-01
*
* On the date above, in accordance with the Business Source License, use
* of this software will be governed by version 2 or later of the General
* Public License.
*/
#include <maxscale/cdefs.h>
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include <netdb.h>
#include <fcntl.h>
#include <unistd.h>
#include <syslog.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <pwd.h>
#include <sys/types.h>
#include <sys/epoll.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdbool.h>
#include <maxscale/gwdirs.h>
MXS_BEGIN_DECLS
MXS_END_DECLS
#endif

View File

@ -63,7 +63,6 @@
#include <maxscale/version.h>
#include <maxscale/housekeeper.h>
#include <maxscale/utils.h>
#include <maxscale/gw.h>
#include <mysql.h>
MXS_BEGIN_DECLS

View File

@ -73,7 +73,6 @@
#include <string.h>
#include <sys/utsname.h>
#include <maxscale/dbusers.h>
#include <maxscale/gw.h>
#include <maxscale/alloc.h>
#include <maxscale/limits.h>
#define PCRE2_CODE_UNIT_WIDTH 8

View File

@ -78,7 +78,6 @@
#include <maxscale/modules.h>
#include <maxscale/router.h>
#include <errno.h>
#include <maxscale/gw.h>
#include <maxscale/poll.h>
#include <maxscale/atomic.h>
#include <maxscale/log_manager.h>
@ -86,6 +85,8 @@
#include <maxscale/listener.h>
#include <maxscale/hk_heartbeat.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>

View File

@ -48,10 +48,10 @@
#include <ftw.h>
#include <string.h>
#include <strings.h>
#include <maxscale/gw.h>
#include <unistd.h>
#include <time.h>
#include <getopt.h>
#include <pwd.h>
#include <maxscale/service.h>
#include <maxscale/server.h>
#include <maxscale/dcb.h>
@ -86,6 +86,7 @@
#include <sys/file.h>
#include <maxscale/statistics.h>
#include <maxscale/alloc.h>
#include <maxscale/gwdirs.h>
#define STRING_BUFFER_SIZE 1024
#define PIDFD_CLOSED -1

View File

@ -42,7 +42,6 @@
#include <curl/curl.h>
#include <sys/utsname.h>
#include <openssl/sha.h>
#include <maxscale/gw.h>
#include <maxscale/gwdirs.h>
#include <maxscale/alloc.h>

View File

@ -25,7 +25,6 @@
#include <maxscale/atomic.h>
#include <maxscale/gwbitmask.h>
#include <maxscale/log_manager.h>
#include <maxscale/gw.h>
#include <maxscale/housekeeper.h>
#include <maxscale/config.h>
#include <mysql.h>

View File

@ -20,8 +20,6 @@
#include <maxscale/random_jkiss.h>
#include <maxscale/alloc.h>
#include <maxscale/gw.h>
/**
* Generate a random printable character
*

View File

@ -60,7 +60,6 @@
#include <sys/types.h>
#include <maxscale/housekeeper.h>
#include <maxscale/resultset.h>
#include <maxscale/gw.h>
#include <maxscale/gwdirs.h>
#include <math.h>
#include <maxscale/version.h>

View File

@ -26,11 +26,12 @@
*/
#include <maxscale/gw_authenticator.h>
#include <sys/stat.h>
#include <cdc.h>
#include <maxscale/alloc.h>
#include <maxscale/gwdirs.h>
#include <maxscale/modutil.h>
#include <maxscale/users.h>
#include <sys/stat.h>
#include <maxscale/alloc.h>
/* Allowed time interval (in seconds) after last update*/
#define CDC_USERS_REFRESH_TIME 30

View File

@ -32,7 +32,6 @@
#include <maxscale/poll.h>
#include <maxscale/dbusers.h>
#include <maxscale/gwdirs.h>
#include <maxscale/gw.h>
#include <maxscale/secrets.h>
#include <maxscale/utils.h>

View File

@ -37,7 +37,6 @@
#include <maxscale/router.h>
#include <maxscale/poll.h>
#include <maxscale/atomic.h>
#include <maxscale/gw.h>
MXS_BEGIN_DECLS

View File

@ -32,7 +32,6 @@
#include <cdc.h>
#include <maxscale/alloc.h>
#include <maxscale/gw.h>
#include <maxscale/modinfo.h>
#include <maxscale/log_manager.h>
#include <maxscale/gw_protocol.h>

View File

@ -33,9 +33,9 @@
*/
#include "httpd.h"
#include <ctype.h>
#include <maxscale/alloc.h>
#include <maxscale/gw_protocol.h>
#include <maxscale/gw.h>
#include <maxscale/modinfo.h>
#include <maxscale/log_manager.h>
#include <maxscale/resultset.h>

View File

@ -37,7 +37,6 @@
#include <maxscale/router.h>
#include <maxscale/poll.h>
#include <maxscale/atomic.h>
#include <maxscale/gw.h>
MXS_BEGIN_DECLS

View File

@ -16,7 +16,6 @@
#include <maxscale/modutil.h>
#include <maxscale/utils.h>
#include <netinet/tcp.h>
#include <maxscale/gw.h>
#include <mysqld_error.h>
/*

View File

@ -52,7 +52,6 @@
#include <mysql_auth.h>
#include <maxscale/gw_ssl.h>
#include <maxscale/poll.h>
#include <maxscale/gw.h>
#include <maxscale/modinfo.h>
#include <sys/stat.h>
#include <maxscale/modutil.h>

View File

@ -42,7 +42,6 @@
*
*/
#include <maxscale/gw.h>
#include <maxscale/utils.h>
#include <maxscale/protocol/mysql.h>
#include <maxscale/alloc.h>

View File

@ -21,14 +21,15 @@
#include <maxscale/session.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <pwd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <maxscale/router.h>
#include <maxscale/poll.h>
#include <maxscale/atomic.h>
#include <maxscale/gw.h>
#include <maxscale/adminusers.h>
#include <maxscale/log_manager.h>
#include <maxscale/modinfo.h>

View File

@ -28,7 +28,6 @@
#include <maxscale/router.h>
#include <maxscale/poll.h>
#include <maxscale/atomic.h>
#include <maxscale/gw.h>
#include <telnetd.h>
#include <maxscale/adminusers.h>
#include <maxscale/log_manager.h>

View File

@ -22,7 +22,6 @@
#include <stdbool.h>
#include <stdint.h>
#include <blr_constants.h>
#include <maxscale/gw.h>
#include <maxscale/dcb.h>
#include <maxscale/service.h>
#include <maxscale/spinlock.h>

View File

@ -78,7 +78,6 @@
#include <sys/stat.h>
#include <uuid/uuid.h>
#include <maxscale/alloc.h>
#include <maxscale/gw.h>
static char *version_str = "V2.1.0";

View File

@ -83,7 +83,6 @@
#include <maxscale/version.h>
#include <zlib.h>
#include <maxscale/alloc.h>
#include <maxscale/gw.h>
extern int load_mysql_users(SERV_LISTENER *listener);
extern void blr_master_close(ROUTER_INSTANCE* router);