Move modules.h to core/maxscale

Also remove some unnecessary includes + cleanup
This commit is contained in:
Esa Korhonen 2017-01-19 14:20:19 +02:00
parent 53c5b475ad
commit eff34b91fb
22 changed files with 29 additions and 30 deletions

View File

@ -12,9 +12,10 @@
*/
#define MXS_MODULE_NAME "qc_sqlite"
#include <maxscale/modules.h>
#include <maxscale/query_classifier.h>
#include "../../server/core/maxscale/config.h"
int32_t qc_dummy_parse(GWBUF* querybuf, int32_t* pResult)
{
*pResult = QC_QUERY_INVALID;

View File

@ -13,9 +13,9 @@
#include <maxscale/gw_authenticator.h>
#include <maxscale/modutil.h>
#include <maxscale/modules.h>
#include <maxscale/alloc.h>
#include "maxscale/modules.h"
/**
* @file authenticator.c - Authenticator module functions
*/

View File

@ -58,7 +58,6 @@
#include <maxscale/housekeeper.h>
#include <maxscale/limits.h>
#include <maxscale/log_manager.h>
#include <maxscale/modules.h>
#include <maxscale/notification.h>
#include <maxscale/pcre2.h>
#include <maxscale/spinlock.h>
@ -69,6 +68,7 @@
#include "maxscale/filter.h"
#include "maxscale/service.h"
#include "maxscale/monitor.h"
#include "maxscale/modules.h"
typedef struct duplicate_context
{

View File

@ -16,11 +16,11 @@
#include <maxscale/config_runtime.h>
#include <maxscale/gwdirs.h>
#include <maxscale/spinlock.h>
#include <maxscale/modules.h>
#include "maxscale/config.h"
#include "maxscale/service.h"
#include "maxscale/monitor.h"
#include "maxscale/modules.h"
static SPINLOCK crt_lock = SPINLOCK_INIT;

View File

@ -76,7 +76,6 @@
#include <maxscale/spinlock.h>
#include <maxscale/server.h>
#include <maxscale/service.h>
#include <maxscale/modules.h>
#include <maxscale/router.h>
#include <maxscale/poll.h>
#include <maxscale/atomic.h>
@ -95,6 +94,7 @@
#include <maxscale/platform.h>
#include "maxscale/session.h"
#include "maxscale/modules.h"
/* A DCB with null values, used for initialization */
static DCB dcb_initialized = DCB_INIT;

View File

@ -29,12 +29,12 @@
#include <errno.h>
#include <maxscale/alloc.h>
#include <maxscale/log_manager.h>
#include <maxscale/modules.h>
#include <maxscale/session.h>
#include <maxscale/spinlock.h>
#include "maxscale/filter.h"
#include "maxscale/config.h"
#include "maxscale/modules.h"
static SPINLOCK filter_spin = SPINLOCK_INIT; /**< Protects the list of all filters */
static MXS_FILTER_DEF *allFilters = NULL; /**< The list of all filters */

View File

@ -60,7 +60,6 @@
#include <maxscale/log_manager.h>
#include <maxscale/maxscale.h>
#include <maxscale/memlog.h>
#include <maxscale/modules.h>
#include <maxscale/poll.h>
#include <maxscale/query_classifier.h>
#include <maxscale/server.h>
@ -73,6 +72,7 @@
#include "maxscale/service.h"
#include "maxscale/statistics.h"
#include "maxscale/monitor.h"
#include "maxscale/modules.h"
#define STRING_BUFFER_SIZE 1024
#define PIDFD_CLOSED -1

View File

@ -38,7 +38,6 @@
#include <maxscale/log_manager.h>
#include <maxscale/alloc.h>
#include <maxscale/users.h>
#include <maxscale/modules.h>
#include <maxscale/service.h>
static RSA *rsa_512 = NULL;

View File

@ -34,7 +34,6 @@
#include <unistd.h>
#include <string.h>
#include <dlfcn.h>
#include <maxscale/modules.h>
#include <maxscale/modinfo.h>
#include <maxscale/log_manager.h>
#include <maxscale/version.h>
@ -45,6 +44,8 @@
#include <maxscale/gwdirs.h>
#include <maxscale/alloc.h>
#include "maxscale/modules.h"
typedef struct loaded_module
{
char *module; /**< The name of the module */

View File

@ -38,7 +38,6 @@
#include <maxscale/externcmd.h>
#include <maxscale/gwdirs.h>
#include <maxscale/log_manager.h>
#include <maxscale/modules.h>
#include <maxscale/mysql_utils.h>
#include <maxscale/pcre2.h>
#include <maxscale/secrets.h>
@ -46,6 +45,7 @@
#include "maxscale/config.h"
#include "maxscale/monitor.h"
#include "maxscale/modules.h"
static MXS_MONITOR *allMonitors = NULL;
static SPINLOCK monLock = SPINLOCK_INIT;

View File

@ -13,11 +13,12 @@
#include <maxscale/query_classifier.h>
#include <maxscale/log_manager.h>
#include <maxscale/modules.h>
#include <maxscale/modutil.h>
#include <maxscale/alloc.h>
#include <maxscale/utils.h>
#include "../core/maxscale/modules.h"
//#define QC_TRACE_ENABLED
#undef QC_TRACE_ENABLED

View File

@ -47,7 +47,6 @@
#include <maxscale/log_manager.h>
#include <maxscale/gw_ssl.h>
#include <maxscale/alloc.h>
#include <maxscale/modules.h>
#include <maxscale/gwdirs.h>
#include "maxscale/monitor.h"

View File

@ -54,7 +54,6 @@
#include <maxscale/housekeeper.h>
#include <maxscale/listener.h>
#include <maxscale/log_manager.h>
#include <maxscale/modules.h>
#include <maxscale/poll.h>
#include <maxscale/protocol.h>
#include <maxscale/queuemanager.h>
@ -70,6 +69,7 @@
#include "maxscale/config.h"
#include "maxscale/filter.h"
#include "maxscale/service.h"
#include "maxscale/modules.h"
/** Base value for server weights */
#define SERVICE_BASE_SERVER_WEIGHT 1000

View File

@ -43,8 +43,8 @@
#include <maxscale/housekeeper.h>
#include <maxscale/buffer.h>
#include <regex.h>
#include <maxscale/modules.h>
#include <maxscale/maxscale_test.h>
#include "../load_utils.c"
static char* server_options[] =

View File

@ -33,7 +33,6 @@
#include <maxscale/service.h>
#include <maxscale/session.h>
#include <maxscale/router.h>
#include <maxscale/modules.h>
#include <maxscale/modinfo.h>
#include <maxscale/atomic.h>
#include <maxscale/spinlock.h>

View File

@ -32,7 +32,6 @@
#include <maxscale/service.h>
#include <maxscale/session.h>
#include <maxscale/router.h>
#include <maxscale/modules.h>
#include <maxscale/modinfo.h>
#include <maxscale/atomic.h>
#include <maxscale/spinlock.h>

View File

@ -58,7 +58,6 @@
#include <maxscale/service.h>
#include <maxscale/router.h>
#include <maxscale/filter.h>
#include <maxscale/modules.h>
#include <maxscale/modulecmd.h>
#include <maxscale/atomic.h>
#include <maxscale/server.h>
@ -81,6 +80,8 @@
#include "../../../core/maxscale/session.h"
#include "../../../core/maxscale/modules.h"
#define MAXARGS 12
#define ARG_TYPE_NONE 0

View File

@ -36,7 +36,6 @@
#include <maxscale/service.h>
#include <maxscale/server.h>
#include <maxscale/router.h>
#include <maxscale/modules.h>
#include <maxscale/modinfo.h>
#include <maxscale/modutil.h>
#include <maxscale/monitor.h>
@ -52,6 +51,7 @@
#include <maxscale/secrets.h>
#include <maxscale/users.h>
#include "../../../core/maxscale/modules.h"
#include "../../../core/maxscale/session.h"
#include "../../../core/maxscale/monitor.h"

View File

@ -32,7 +32,6 @@
#include <maxscale/service.h>
#include <maxscale/session.h>
#include <maxscale/router.h>
#include <maxscale/modules.h>
#include <maxscale/modinfo.h>
#include <maxscale/modutil.h>
#include <maxscale/atomic.h>

View File

@ -29,23 +29,24 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <maxscale/alloc.h>
#include <maxscale/service.h>
#include <maxscale/router.h>
#include <maxscale/modules.h>
#include <maxscale/version.h>
#include <maxscale/atomic.h>
#include <maxscale/config.h>
#include <maxscale/dcb.h>
#include <maxscale/log_manager.h>
#include <maxscale/maxscale.h>
#include <maxscale/modinfo.h>
#include <maxscale/modutil.h>
#include <maxscale/atomic.h>
#include <maxscale/spinlock.h>
#include <maxscale/dcb.h>
#include <maxscale/maxscale.h>
#include <maxscale/poll.h>
#include <maxscale/log_manager.h>
#include <maxscale/resultset.h>
#include <maxscale/config.h>
#include <maxscale/router.h>
#include <maxscale/service.h>
#include <maxscale/spinlock.h>
#include <maxscale/version.h>
#include "../../../core/maxscale/session.h"
#include "../../../core/maxscale/modules.h"
#include "../../../core/maxscale/monitor.h"
static void exec_show(DCB *dcb, MAXINFO_TREE *tree);

View File

@ -34,7 +34,6 @@
#include <maxscale/service.h>
#include <maxscale/session.h>
#include <maxscale/router.h>
#include <maxscale/modules.h>
#include <maxscale/modinfo.h>
#include <maxscale/modutil.h>
#include <maxscale/atomic.h>