MXS-862: Create common MySQL library
The MySQLCommon library contains functions used by both the protocol and authenticator modules. The contents of the modutil.c file could also be moved to this file if the functions in that file are only used by modules and not the core.
This commit is contained in:
7
server/modules/protocol/MySQL/CMakeLists.txt
Normal file
7
server/modules/protocol/MySQL/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
add_library(MySQLCommon SHARED mysql_common.c)
|
||||
target_link_libraries(MySQLCommon maxscale-common)
|
||||
set_target_properties(MySQLCommon PROPERTIES VERSION "2.0.0")
|
||||
install_module(MySQLCommon core)
|
||||
|
||||
add_subdirectory(MySQLBackend)
|
||||
add_subdirectory(MySQLClient)
|
@ -0,0 +1,7 @@
|
||||
add_library(MySQLBackend SHARED mysql_backend.c)
|
||||
# TODO: Refactor MySQLBackend so that COM_CHANGE_USER processing is
|
||||
# transparent to the protocol module. After this change, we don't need to
|
||||
# link against MySQLAuth.
|
||||
target_link_libraries(MySQLBackend maxscale-common MySQLCommon MySQLAuth)
|
||||
set_target_properties(MySQLBackend PROPERTIES VERSION "2.0.0")
|
||||
install_module(MySQLBackend core)
|
1965
server/modules/protocol/MySQL/MySQLBackend/mysql_backend.c
Normal file
1965
server/modules/protocol/MySQL/MySQLBackend/mysql_backend.c
Normal file
File diff suppressed because it is too large
Load Diff
4
server/modules/protocol/MySQL/MySQLClient/CMakeLists.txt
Normal file
4
server/modules/protocol/MySQL/MySQLClient/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
add_library(MySQLClient SHARED mysql_client.c)
|
||||
target_link_libraries(MySQLClient maxscale-common MySQLCommon)
|
||||
set_target_properties(MySQLClient PROPERTIES VERSION "1.0.0")
|
||||
install_module(MySQLClient core)
|
1382
server/modules/protocol/MySQL/MySQLClient/mysql_client.c
Normal file
1382
server/modules/protocol/MySQL/MySQLClient/mysql_client.c
Normal file
File diff suppressed because it is too large
Load Diff
1542
server/modules/protocol/MySQL/mysql_common.c
Normal file
1542
server/modules/protocol/MySQL/mysql_common.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user