summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_structs.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2009-12-21 16:09:13 +0000
committerAndrey Hristov <andrey@php.net>2009-12-21 16:09:13 +0000
commitc9c418b9713dc509d8079f40bf5bd68438d99b93 (patch)
tree6280b84964e8abfd1ce47dcc9742c5e332c2574c /ext/mysqlnd/mysqlnd_structs.h
parent953c96d0d896075aae23ad1ab9a84218e6fd0250 (diff)
downloadphp-git-c9c418b9713dc509d8079f40bf5bd68438d99b93.tar.gz
Move compression and decompression code to separate functions
which can be overloaded on purpose.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_structs.h')
-rw-r--r--ext/mysqlnd/mysqlnd_structs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_structs.h b/ext/mysqlnd/mysqlnd_structs.h
index 68776d12b6..b8ce0bd89d 100644
--- a/ext/mysqlnd/mysqlnd_structs.h
+++ b/ext/mysqlnd/mysqlnd_structs.h
@@ -236,6 +236,8 @@ struct st_mysqlnd_net_methods
enum_func_status (*set_client_option)(MYSQLND_NET * const net, enum_mysqlnd_option option, const char * const value TSRMLS_DC);
enum_func_status (*network_read)(MYSQLND * conn, zend_uchar * buffer, size_t count TSRMLS_DC);
size_t (*network_write)(MYSQLND * const conn, const zend_uchar * const buf, size_t count TSRMLS_DC);
+ enum_func_status (*decode)(zend_uchar * uncompressed_data, size_t uncompressed_data_len, const zend_uchar * const compressed_data, size_t compressed_data_len TSRMLS_DC);
+ enum_func_status (*encode)(zend_uchar * compress_buffer, size_t compress_buffer_len, const zend_uchar * const uncompressed_data, size_t uncompressed_data_len TSRMLS_DC);
void (*free_contents)(MYSQLND_NET * net TSRMLS_DC);
};