diff options
Diffstat (limited to 'ext/mysqlnd/mysqlnd_structs.h')
-rw-r--r-- | ext/mysqlnd/mysqlnd_structs.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/ext/mysqlnd/mysqlnd_structs.h b/ext/mysqlnd/mysqlnd_structs.h index 9489f1d2c7..959c9a2cb8 100644 --- a/ext/mysqlnd/mysqlnd_structs.h +++ b/ext/mysqlnd/mysqlnd_structs.h @@ -900,6 +900,15 @@ struct st_mysqlnd_protocol_payload_decoder_factory }; +struct st_mysqlnd_protocol_command +{ + enum_func_status (*run)(void *cmd); + void (*free_command)(void * cmd); +}; + +typedef struct st_mysqlnd_protocol_command * (*func_mysqlnd__command_factory)(enum php_mysqlnd_server_command command, ...); + + struct st_mysqlnd_connection_data { /* Operation related */ @@ -978,6 +987,7 @@ struct st_mysqlnd_connection_data zend_bool in_async_err_cb; struct st_mysqlnd_object_factory_methods object_factory; + func_mysqlnd__command_factory command_factory; struct st_mysqlnd_conn_data_methods * m; @@ -1240,11 +1250,4 @@ struct st_mysqlnd_authentication_plugin } methods; }; - -struct st_mysqlnd_protocol_command -{ - enum_func_status (*run)(void *cmd); - void (*free_command)(void * cmd); -}; - #endif /* MYSQLND_STRUCTS_H */ |