MXS-1929: Make core ResultSet functions private
The functions in the core that generate a ResultSet are now private.
This commit is contained in:
@ -19,7 +19,6 @@
|
||||
#include <maxscale/cdefs.h>
|
||||
#include <maxscale/dcb.h>
|
||||
#include <maxscale/modinfo.h>
|
||||
#include <maxscale/resultset.h>
|
||||
#include <maxscale/debug.h>
|
||||
|
||||
MXS_BEGIN_DECLS
|
||||
@ -85,13 +84,6 @@ void printModules();
|
||||
*/
|
||||
void dprintAllModules(DCB *);
|
||||
|
||||
/**
|
||||
* @brief Return a resultset that has the current set of modules in it
|
||||
*
|
||||
* @return A Result set
|
||||
*/
|
||||
RESULTSET *moduleGetList();
|
||||
|
||||
typedef struct mxs_module_iterator
|
||||
{
|
||||
const char* type;
|
||||
|
||||
24
server/core/internal/modules.hh
Normal file
24
server/core/internal/modules.hh
Normal file
@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
/*
|
||||
* 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/bsl11.
|
||||
*
|
||||
* Change Date: 2022-01-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 "modules.h"
|
||||
|
||||
#include <maxscale/resultset.hh>
|
||||
|
||||
/**
|
||||
* @brief Return a resultset that has the current set of modules in it
|
||||
*
|
||||
* @return A Result set
|
||||
*/
|
||||
ResultSet *moduleGetList();
|
||||
@ -81,7 +81,6 @@ void monitor_show(DCB *, MXS_MONITOR *);
|
||||
void monitor_show_all(DCB *);
|
||||
|
||||
void monitor_list(DCB *);
|
||||
RESULTSET *monitor_get_list();
|
||||
|
||||
bool monitor_add_server(MXS_MONITOR *mon, SERVER *server);
|
||||
void monitor_remove_server(MXS_MONITOR *mon, SERVER *server);
|
||||
|
||||
23
server/core/internal/monitor.hh
Normal file
23
server/core/internal/monitor.hh
Normal file
@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
/*
|
||||
* 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/bsl11.
|
||||
*
|
||||
* Change Date: 2022-01-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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Internal header for the monitor type
|
||||
*/
|
||||
|
||||
#include "monitor.h"
|
||||
|
||||
#include <maxscale/resultset.hh>
|
||||
|
||||
ResultSet *monitor_get_list();
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
#include <maxscale/poll.h>
|
||||
|
||||
#include <maxscale/resultset.h>
|
||||
#include <maxscale/resultset.hh>
|
||||
|
||||
MXS_BEGIN_DECLS
|
||||
|
||||
@ -42,6 +42,6 @@ void dShowThreads(DCB *dcb);
|
||||
void dShowEventQ(DCB *dcb);
|
||||
void dShowEventStats(DCB *dcb);
|
||||
|
||||
RESULTSET *eventTimesGetList();
|
||||
ResultSet *eventTimesGetList();
|
||||
|
||||
MXS_END_DECLS
|
||||
|
||||
21
server/core/internal/server.hh
Normal file
21
server/core/internal/server.hh
Normal file
@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
/*
|
||||
* 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/bsl11.
|
||||
*
|
||||
* Change Date: 2022-01-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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Internal header for the server type
|
||||
*/
|
||||
|
||||
#include <maxscale/resultset.hh>
|
||||
|
||||
ResultSet* serverGetList();
|
||||
@ -13,6 +13,7 @@
|
||||
*/
|
||||
|
||||
#include <maxscale/service.h>
|
||||
#include <maxscale/resultset.hh>
|
||||
|
||||
/**
|
||||
* @file service.h - MaxScale internal service functions
|
||||
@ -351,3 +352,6 @@ json_t* service_relations_to_server(const SERVER* server, const char* host);
|
||||
* @return Array of service links
|
||||
*/
|
||||
json_t* service_relations_to_filter(const MXS_FILTER_DEF* filter, const char* host);
|
||||
|
||||
ResultSet* serviceGetList(void);
|
||||
ResultSet* serviceGetListenerList(void);
|
||||
|
||||
@ -59,8 +59,6 @@ void session_link_backend_dcb(MXS_SESSION *session, struct dcb *dcb);
|
||||
*/
|
||||
void session_unlink_backend_dcb(MXS_SESSION *session, struct dcb *dcb);
|
||||
|
||||
RESULTSET *sessionGetList(SESSIONLISTFILTER);
|
||||
|
||||
void printAllSessions();
|
||||
void printSession(MXS_SESSION *);
|
||||
|
||||
|
||||
@ -14,6 +14,8 @@
|
||||
|
||||
#include <maxscale/cppdefs.hh>
|
||||
#include <maxscale/session.h>
|
||||
#include <maxscale/resultset.hh>
|
||||
#include <maxscale/utils.hh>
|
||||
|
||||
namespace maxscale
|
||||
{
|
||||
@ -37,3 +39,5 @@ struct RegistryTraits<MXS_SESSION>
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
ResultSet *sessionGetList();
|
||||
|
||||
Reference in New Issue
Block a user