mirror of https://github.com/sysown/proxysql
parent
32b412f87f
commit
a6c53d0d12
@ -0,0 +1,25 @@
|
||||
#include "gen_utils.h"
|
||||
#include "MySQL_Thread.h"
|
||||
#include "MySQL_Session.h"
|
||||
#include "mysql_backend.h"
|
||||
#include "MySQL_Data_Stream.h"
|
||||
#include "query_cache.hpp"
|
||||
#include "mysql_connection.h"
|
||||
#include "sqlite3db.h"
|
||||
#include "StatCounters.h"
|
||||
#include "MySQL_Monitor.hpp"
|
||||
#include "MySQL_Protocol.h"
|
||||
#include "MySQL_Authentication.hpp"
|
||||
#include "fileutils.hpp"
|
||||
#include "configfile.hpp"
|
||||
#include "query_processor.h"
|
||||
#include "proxysql_admin.h"
|
||||
#include "MySQL_HostGroups_Manager.h"
|
||||
#include "MySQL_Logger.hpp"
|
||||
#include "MySQL_PreparedStatement.h"
|
||||
#undef swap
|
||||
#undef min
|
||||
#undef max
|
||||
#include <stdio.h>
|
||||
#include <map>
|
||||
#include <unordered_map>
|
||||
@ -1,8 +0,0 @@
|
||||
#ifndef PROXYSQL_MYSQL_CLIENT_H__
|
||||
#define PROXYSQL_MYSQL_CLIENT_H__
|
||||
|
||||
#define HAVE_BOOL
|
||||
#include "mysql.h"
|
||||
#undef max_allowed_packet
|
||||
|
||||
#endif // PROXYSQL_MYSQL_CLIENT_H__
|
||||
@ -1,10 +0,0 @@
|
||||
#ifndef PROXYSQL_NETWORK_H__
|
||||
#define PROXYSQL_NETWORK_H__
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
int listen_on_port(char *ip, uint16_t port, int backlog, bool reuseport=false);
|
||||
int listen_on_unix(char *, int);
|
||||
int connect_socket(char *, int);
|
||||
|
||||
#endif // PROXYSQL_NETWORK_H__
|
||||
@ -0,0 +1,32 @@
|
||||
/*
|
||||
Use of generic memory structure
|
||||
set/get function defined by the user
|
||||
|
||||
Ex:
|
||||
*/
|
||||
|
||||
|
||||
|
||||
typedef _hte_ext_t hte_ext_t;
|
||||
|
||||
union _hte_ext_t {
|
||||
void *ptr;
|
||||
int i;
|
||||
uint32_t u32;
|
||||
uint64_t u64;
|
||||
};
|
||||
|
||||
struct __leo_hash_entry_t {
|
||||
unsigned char *key;
|
||||
void *self;
|
||||
hte_ext_t ext0;
|
||||
hte_ext_t ext1;
|
||||
hte_ext_t ext2;
|
||||
hte_ext_t ext3;
|
||||
hte_ext_t ext4;
|
||||
hte_ext_t ext5;
|
||||
hte_ext_t ext6;
|
||||
hte_ext_t ext7;
|
||||
hte_ext_t ext8;
|
||||
hte_ext_t ext9;
|
||||
};
|
||||
@ -1,2 +1,5 @@
|
||||
#define PROXYSQL_EXTERN
|
||||
#include "proxysql.h"
|
||||
//#include "proxysql_glovars.hpp"
|
||||
#include "cpp.h"
|
||||
//ProxySQL_GlobalVariables GloVars;
|
||||
|
||||
Loading…
Reference in new issue