diff options
author | Andrey Hristov <andrey@php.net> | 2011-10-25 19:04:36 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2011-10-25 19:04:36 +0000 |
commit | 13bc754db7ea6f815c4dd8e3af2ae31b22a7c0bd (patch) | |
tree | bf8c4a7c80a6dcd2fa88b879ae01c3c0fa08ab12 /ext/mysqlnd/mysqlnd_structs.h | |
parent | cf6295ce5621d1e9ff6c69bcfa132537174016c3 (diff) | |
download | php-git-13bc754db7ea6f815c4dd8e3af2ae31b22a7c0bd.tar.gz |
Add hooks for __call like functionality and also allow to
handle calls that spread over two internal functions. Let's call it
a local TX.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_structs.h')
-rw-r--r-- | ext/mysqlnd/mysqlnd_structs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_structs.h b/ext/mysqlnd/mysqlnd_structs.h index 8fb8c48022..bc5bdb7f6b 100644 --- a/ext/mysqlnd/mysqlnd_structs.h +++ b/ext/mysqlnd/mysqlnd_structs.h @@ -462,6 +462,9 @@ typedef enum_func_status (*func_mysqlnd_conn__set_autocommit)(MYSQLND * conn, un typedef enum_func_status (*func_mysqlnd_conn__tx_commit)(MYSQLND * conn TSRMLS_DC); typedef enum_func_status (*func_mysqlnd_conn__tx_rollback)(MYSQLND * conn TSRMLS_DC); +typedef enum_func_status (*func_mysqlnd_conn__local_tx_start)(MYSQLND * conn, size_t this_func TSRMLS_DC); +typedef enum_func_status (*func_mysqlnd_conn__local_tx_end)(MYSQLND * conn, size_t this_func, enum_func_status status TSRMLS_DC); + struct st_mysqlnd_conn_methods { @@ -537,6 +540,9 @@ struct st_mysqlnd_conn_methods func_mysqlnd_conn__set_autocommit set_autocommit; func_mysqlnd_conn__tx_commit tx_commit; func_mysqlnd_conn__tx_rollback tx_rollback; + + func_mysqlnd_conn__local_tx_start local_tx_start; + func_mysqlnd_conn__local_tx_end local_tx_end; }; |