]> granicus.if.org Git - php/commitdiff
Don't use the specific translated name but use the macro for this
authorAndrey Hristov <andrey@php.net>
Tue, 17 Nov 2015 16:47:50 +0000 (17:47 +0100)
committerAndrey Hristov <andrey@php.net>
Tue, 17 Nov 2015 16:48:27 +0000 (17:48 +0100)
ext/mysqlnd/mysqlnd.h
ext/mysqlnd/mysqlnd_connection.c
ext/mysqlnd/mysqlnd_driver.c
ext/mysqlnd/mysqlnd_structs.h

index 5f794664e75a5df7fec0405980e6a5c108337bc3..c2585b1d00a8f6104b803c9ebe05b45f0de98958 100644 (file)
@@ -88,7 +88,7 @@ PHPAPI const MYSQLND_CHARSET * mysqlnd_find_charset_name(const char * const char
 #define mysqlnd_connect(conn, host, user, pass, pass_len, db, db_len, port, socket, mysql_flags, client_api_flags) \
                        mysqlnd_connection_connect((conn), (host), (user), (pass), (pass_len), (db), (db_len), (port), (socket), (mysql_flags), (client_api_flags))
 
-PHPAPI MYSQLND * mysqlnd_connection_init(const size_t client_flags, const zend_bool persistent, struct st_mysqlnd_object_factory_methods * object_factory);
+PHPAPI MYSQLND * mysqlnd_connection_init(const size_t client_flags, const zend_bool persistent, MYSQLND_CLASS_METHODS_TYPE(mysqlnd_object_factory) *object_factory);
 PHPAPI MYSQLND * mysqlnd_connection_connect(MYSQLND * conn,
                                                                                        const char * const host,
                                                                                        const char * const user,
index d68d346f983613318569572fee47a00f8261a0c3..0520b76f12c55b3b8f7aa3752b5381dfbb696a0c 100644 (file)
@@ -2726,9 +2726,9 @@ PHPAPI MYSQLND * mysqlnd_connection_connect(MYSQLND * conn_handle,
 
 /* {{{ mysqlnd_connection_init */
 PHPAPI MYSQLND *
-mysqlnd_connection_init(const size_t client_flags, const zend_bool persistent, struct st_mysqlnd_object_factory_methods * object_factory)
+mysqlnd_connection_init(const size_t client_flags, const zend_bool persistent, MYSQLND_CLASS_METHODS_TYPE(mysqlnd_object_factory) *object_factory)
 {
-       struct st_mysqlnd_object_factory_methods * factory = object_factory? object_factory : &MYSQLND_CLASS_METHOD_TABLE_NAME(mysqlnd_object_factory);
+       MYSQLND_CLASS_METHODS_TYPE(mysqlnd_object_factory) *factory = object_factory? object_factory : &MYSQLND_CLASS_METHOD_TABLE_NAME(mysqlnd_object_factory);
        MYSQLND * ret;
        DBG_ENTER("mysqlnd_connection_init");
        ret = factory->get_connection(factory, persistent);
index 5f93d765b32cc5a16b98d14a4d470fbc080dc7e1..fe7d3f1d85d2589f3b04fd065ce64af736132a30 100644 (file)
@@ -96,7 +96,7 @@ PHPAPI void mysqlnd_library_init(void)
 
 /* {{{ mysqlnd_object_factory::get_connection */
 static MYSQLND *
-MYSQLND_METHOD(mysqlnd_object_factory, get_connection)(struct st_mysqlnd_object_factory_methods * factory, const zend_bool persistent)
+MYSQLND_METHOD(mysqlnd_object_factory, get_connection)(MYSQLND_CLASS_METHODS_TYPE(mysqlnd_object_factory) *factory, const zend_bool persistent)
 {
        size_t alloc_size_ret = sizeof(MYSQLND) + mysqlnd_plugin_count() * sizeof(void *);
        size_t alloc_size_ret_data = sizeof(MYSQLND_CONN_DATA) + mysqlnd_plugin_count() * sizeof(void *);
index 6aced2c29e0614c3d3ad799d87e8e262876ab8ac..0402339a5bbc9c4437ca0bf8591e1c371cfe246a 100644 (file)
@@ -365,7 +365,7 @@ MYSQLND_CLASS_METHODS_TYPE(mysqlnd_vio)
 
 MYSQLND_CLASS_METHODS_TYPE(mysqlnd_object_factory);
 
-typedef MYSQLND * (*func_mysqlnd_object_factory__get_connection)(struct st_mysqlnd_object_factory_methods * factory, const zend_bool persistent);
+typedef MYSQLND * (*func_mysqlnd_object_factory__get_connection)(MYSQLND_CLASS_METHODS_TYPE(mysqlnd_object_factory) * factory, const zend_bool persistent);
 typedef MYSQLND * (*func_mysqlnd_object_factory__clone_connection_object)(MYSQLND * conn);
 typedef MYSQLND_STMT * (*func_mysqlnd_object_factory__get_prepared_statement)(MYSQLND_CONN_DATA * conn, const zend_bool persistent);
 typedef MYSQLND_PFC * (*func_mysqlnd_object_factory__get_pfc)(const zend_bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info);
@@ -534,8 +534,6 @@ MYSQLND_CLASS_METHODS_TYPE(mysqlnd_conn_data)
        func_mysqlnd_conn_data__get_reference get_reference;
        func_mysqlnd_conn_data__free_reference free_reference;
 
-//     func_mysqlnd_conn_data__send_command_handle_response send_command_handle_response;
-
        func_mysqlnd_conn_data__restart_psession restart_psession;
        func_mysqlnd_conn_data__end_psession end_psession;
        func_mysqlnd_conn_data__send_close send_close;