diff options
| author | Andrey Hristov <andrey@php.net> | 2009-12-11 11:58:57 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2009-12-11 11:58:57 +0000 |
| commit | 13c8bba00ab4560ebd8e1fe08cd90ac62891e0a4 (patch) | |
| tree | 0de01f0a8ecf3ed42c2062e92d2dc4d11fe84383 /ext/mysqlnd/mysqlnd_wireprotocol.h | |
| parent | 35a4d5831bb3d23788f188c8d7c00dfe6aeafc26 (diff) | |
| download | php-git-13c8bba00ab4560ebd8e1fe08cd90ac62891e0a4.tar.gz | |
Make MYSQLND_NET dynamically allocated structure with allocator
and deallocator. More member functions will come.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.h')
| -rw-r--r-- | ext/mysqlnd/mysqlnd_wireprotocol.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.h b/ext/mysqlnd/mysqlnd_wireprotocol.h index f180329996..8ef2d47554 100644 --- a/ext/mysqlnd/mysqlnd_wireprotocol.h +++ b/ext/mysqlnd/mysqlnd_wireprotocol.h @@ -261,7 +261,6 @@ typedef struct st_php_mysql_packet_chg_user_resp { size_t mysqlnd_stream_write_w_header(MYSQLND * const conn, char * const buf, size_t count TSRMLS_DC); -size_t mysqlnd_stream_write(MYSQLND * const conn, const zend_uchar * const buf, size_t count TSRMLS_DC); #ifdef MYSQLND_DO_WIRE_CHECK_BEFORE_COMMAND size_t php_mysqlnd_consume_uneaten_data(MYSQLND * const conn, enum php_mysqlnd_server_command cmd TSRMLS_DC); @@ -288,8 +287,8 @@ void php_mysqlnd_rowp_read_text_protocol(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zend_bool as_unicode, zend_bool as_int_or_float, MYSQLND_STATS * stats TSRMLS_DC); -enum_func_status mysqlnd_read_from_stream(MYSQLND * conn, zend_uchar * buffer, size_t count TSRMLS_DC); - +MYSQLND_NET * mysqlnd_net_init(zend_bool persistent TSRMLS_DC); +void mysqlnd_net_free(MYSQLND_NET * net TSRMLS_DC); #endif /* MYSQLND_WIREPROTOCOL_H */ |
