@@ -116,7 +116,7 @@ struct st_mysqlnd_upsert_status
116
116
uint64_t affected_rows ;
117
117
uint64_t last_insert_id ;
118
118
119
- struct st_mysqlnd_upsert_status_methods * m ;
119
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_upsert_status ) * m ;
120
120
};
121
121
122
122
@@ -316,7 +316,7 @@ typedef func_mysqlnd_net__open_stream (*func_mysqlnd_net__get_open_stream)(MYSQL
316
316
typedef void (* func_mysqlnd_net__post_connect_set_opt )(MYSQLND_NET * const net , const char * const scheme , const size_t scheme_len , MYSQLND_STATS * const conn_stats , MYSQLND_ERROR_INFO * const error_info );
317
317
typedef enum_func_status (* func_mysqlnd_net__read_compressed_packet_from_stream_and_fill_read_buffer )(MYSQLND_NET * net , size_t net_payload_size , MYSQLND_STATS * conn_stats , MYSQLND_ERROR_INFO * error_info );
318
318
319
- struct st_mysqlnd_net_methods
319
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_net )
320
320
{
321
321
func_mysqlnd_net__init init ;
322
322
func_mysqlnd_net__dtor dtor ;
@@ -387,7 +387,7 @@ typedef struct st_mysqlnd_packet_chg_user_resp*(*func_mysqlnd_protocol_payload_d
387
387
typedef struct st_mysqlnd_packet_sha256_pk_request * (* func_mysqlnd_protocol_payload_decoder_factory__get_sha256_pk_request_packet )(MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY * const factory , zend_bool persistent );
388
388
typedef struct st_mysqlnd_packet_sha256_pk_request_response * (* func_mysqlnd_protocol_payload_decoder_factory__get_sha256_pk_request_response_packet )(MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY * const factory , zend_bool persistent );
389
389
390
- struct st_mysqlnd_protocol_payload_decoder_factory_methods
390
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_protocol_payload_decoder_factory )
391
391
{
392
392
func_mysqlnd_protocol_payload_decoder_factory__get_mysqlnd_conn_data get_mysqlnd_conn_data ;
393
393
func_mysqlnd_protocol_payload_decoder_factory__get_greet_packet get_greet_packet ;
@@ -412,7 +412,7 @@ struct st_mysqlnd_protocol_payload_decoder_factory_methods
412
412
};
413
413
414
414
415
- struct st_mysqlnd_object_factory_methods ;
415
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_object_factory ) ;
416
416
417
417
typedef MYSQLND * (* func_mysqlnd_object_factory__get_connection )(struct st_mysqlnd_object_factory_methods * factory , zend_bool persistent );
418
418
typedef MYSQLND * (* func_mysqlnd_object_factory__clone_connection_object )(MYSQLND * conn );
@@ -421,7 +421,7 @@ typedef MYSQLND_NET * (*func_mysqlnd_object_factory__get_io_channel)(zend_bool p
421
421
typedef MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY * (* func_mysqlnd_object_factory__get_protocol_payload_decoder_factory )(MYSQLND_CONN_DATA * conn , zend_bool persistent );
422
422
423
423
424
- struct st_mysqlnd_object_factory_methods
424
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_object_factory )
425
425
{
426
426
func_mysqlnd_object_factory__get_connection get_connection ;
427
427
func_mysqlnd_object_factory__clone_connection_object clone_connection_object ;
@@ -523,7 +523,7 @@ typedef unsigned int (*func_mysqlnd_conn_data__negotiate_client_api_capabilitie
523
523
typedef unsigned int (* func_mysqlnd_conn_data__get_client_api_capabilities )(const MYSQLND_CONN_DATA * const conn );
524
524
525
525
526
- struct st_mysqlnd_conn_data_methods
526
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_conn_data )
527
527
{
528
528
func_mysqlnd_conn_data__connect connect ;
529
529
func_mysqlnd_conn_data__escape_string escape_string ;
@@ -623,7 +623,7 @@ typedef MYSQLND * (*func_mysqlnd_conn__clone_object)(MYSQLND * const conn);
623
623
typedef void (* func_mysqlnd_conn__dtor )(MYSQLND * conn );
624
624
typedef enum_func_status (* func_mysqlnd_conn__close )(MYSQLND * conn , enum_connection_close_type close_type );
625
625
626
- struct st_mysqlnd_conn_methods
626
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_conn )
627
627
{
628
628
func_mysqlnd_data__connect connect ;
629
629
func_mysqlnd_conn__clone_object clone_object ;
@@ -667,7 +667,7 @@ typedef void (*func_mysqlnd_res__unbuffered_free_last_data)(MYSQLND_RES *resu
667
667
668
668
typedef MYSQLND_RES_METADATA * (* func_mysqlnd_res__result_meta_init )(unsigned int field_count , zend_bool persistent );
669
669
670
- struct st_mysqlnd_res_methods
670
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_res )
671
671
{
672
672
mysqlnd_fetch_row_func fetch_row ;
673
673
@@ -709,7 +709,7 @@ typedef zend_ulong * (*func_mysqlnd_result_unbuffered__fetch_lengths)(MYSQLND_R
709
709
typedef void (* func_mysqlnd_result_unbuffered__free_last_data )(MYSQLND_RES_UNBUFFERED * result , MYSQLND_STATS * const global_stats );
710
710
typedef void (* func_mysqlnd_result_unbuffered__free_result )(MYSQLND_RES_UNBUFFERED * const result , MYSQLND_STATS * const global_stats );
711
711
712
- struct st_mysqlnd_result_unbuffered_methods
712
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_result_unbuffered )
713
713
{
714
714
mysqlnd_fetch_row_func fetch_row ;
715
715
func_mysqlnd_res__row_decoder row_decoder ;
@@ -726,7 +726,7 @@ typedef zend_ulong * (*func_mysqlnd_result_buffered__fetch_lengths)(MYSQLND_RES
726
726
typedef enum_func_status (* func_mysqlnd_result_buffered__data_seek )(MYSQLND_RES_BUFFERED * const result , const uint64_t row );
727
727
typedef void (* func_mysqlnd_result_buffered__free_result )(MYSQLND_RES_BUFFERED * const result );
728
728
729
- struct st_mysqlnd_result_buffered_methods
729
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_result_buffered )
730
730
{
731
731
mysqlnd_fetch_row_func fetch_row ;
732
732
func_mysqlnd_res__row_decoder row_decoder ;
@@ -747,7 +747,7 @@ typedef enum_func_status (*func_mysqlnd_res_meta__read_metadata)(MYSQLND_RES_ME
747
747
typedef MYSQLND_RES_METADATA * (* func_mysqlnd_res_meta__clone_metadata )(const MYSQLND_RES_METADATA * const meta , zend_bool persistent );
748
748
typedef void (* func_mysqlnd_res_meta__free_metadata )(MYSQLND_RES_METADATA * meta );
749
749
750
- struct st_mysqlnd_res_meta_methods
750
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_res_meta )
751
751
{
752
752
func_mysqlnd_res_meta__fetch_field fetch_field ;
753
753
func_mysqlnd_res_meta__fetch_field_direct fetch_field_direct ;
@@ -804,7 +804,7 @@ typedef void (*func_mysqlnd_stmt__free_stmt_content)(MYSQLND_STMT * const s)
804
804
typedef enum_func_status (* func_mysqlnd_stmt__flush )(MYSQLND_STMT * const stmt );
805
805
typedef void (* func_mysqlnd_stmt__free_stmt_result )(MYSQLND_STMT * const s );
806
806
807
- struct st_mysqlnd_stmt_methods
807
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_stmt )
808
808
{
809
809
func_mysqlnd_stmt__prepare prepare ;
810
810
func_mysqlnd_stmt__send_execute send_execute ;
@@ -880,7 +880,7 @@ struct st_mysqlnd_net_data
880
880
881
881
zend_bool persistent ;
882
882
883
- struct st_mysqlnd_net_methods m ;
883
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_net ) m ;
884
884
};
885
885
886
886
@@ -909,7 +909,7 @@ struct st_mysqlnd_protocol_payload_decoder_factory
909
909
{
910
910
MYSQLND_CONN_DATA * conn ;
911
911
zend_bool persistent ;
912
- struct st_mysqlnd_protocol_payload_decoder_factory_methods m ;
912
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_protocol_payload_decoder_factory ) m ;
913
913
};
914
914
915
915
@@ -999,10 +999,10 @@ struct st_mysqlnd_connection_data
999
999
zend_bool in_async_read_cb ;
1000
1000
zend_bool in_async_err_cb ;
1001
1001
1002
- struct st_mysqlnd_object_factory_methods object_factory ;
1002
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_object_factory ) object_factory ;
1003
1003
func_mysqlnd__command_factory command_factory ;
1004
1004
1005
- struct st_mysqlnd_conn_data_methods * m ;
1005
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_conn_data ) * m ;
1006
1006
1007
1007
/* persistent connection */
1008
1008
zend_bool persistent ;
@@ -1013,7 +1013,7 @@ struct st_mysqlnd_connection
1013
1013
{
1014
1014
MYSQLND_CONN_DATA * data ;
1015
1015
zend_bool persistent ;
1016
- struct st_mysqlnd_conn_methods * m ;
1016
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_conn ) * m ;
1017
1017
};
1018
1018
1019
1019
@@ -1029,7 +1029,7 @@ struct st_mysqlnd_result_metadata
1029
1029
MYSQLND_FIELD * fields ;
1030
1030
struct mysqlnd_field_hash_key * zend_hash_keys ;
1031
1031
1032
- struct st_mysqlnd_res_meta_methods * m ;
1032
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_res_meta ) * m ;
1033
1033
1034
1034
size_t bit_fields_total_len ; /* trailing \0 not counted */
1035
1035
/* We need this to make fast allocs in rowp_read */
@@ -1059,7 +1059,7 @@ struct st_mysqlnd_result_metadata
1059
1059
unsigned int field_count ; \
1060
1060
zend_bool ps ; \
1061
1061
zend_bool persistent ; \
1062
- struct st_mysqlnd_result_buffered_methods m ; \
1062
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_result_buffered ) m ; \
1063
1063
enum mysqlnd_buffered_type type ; \
1064
1064
void * unused1 ; \
1065
1065
void * unused2 ; \
@@ -1092,7 +1092,7 @@ struct st_mysqlnd_buffered_result_c
1092
1092
1093
1093
struct st_mysqlnd_unbuffered_result
1094
1094
{
1095
- struct st_mysqlnd_result_unbuffered_methods m ;
1095
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_result_unbuffered ) m ;
1096
1096
uint64_t row_count ;
1097
1097
1098
1098
/* For unbuffered (both normal and PS) */
@@ -1133,8 +1133,7 @@ struct st_mysqlnd_res
1133
1133
MYSQLND_RES_UNBUFFERED * unbuf ;
1134
1134
1135
1135
zend_bool persistent ;
1136
-
1137
- struct st_mysqlnd_res_methods m ;
1136
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL (mysqlnd_res ) m ;
1138
1137
};
1139
1138
1140
1139
@@ -1193,7 +1192,7 @@ struct st_mysqlnd_stmt_data
1193
1192
struct st_mysqlnd_stmt
1194
1193
{
1195
1194
MYSQLND_STMT_DATA * data ;
1196
- struct st_mysqlnd_stmt_methods * m ;
1195
+ MYSQLND_CLASS_METHOD_TABLE_NAME_DECL ( mysqlnd_stmt ) * m ;
1197
1196
zend_bool persistent ;
1198
1197
};
1199
1198
0 commit comments