aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.h
diff options
context:
space:
mode:
authorGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-15 17:02:46 +0800
committerGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-17 15:55:05 +0800
commit0f443ef37b21bdc7d97db394842055f7b6e755a6 (patch)
treea2102b6ab46bd6f1f312322a386c6a9a2934ddf5 /io.h
parenta20e0b9e2eb25b16e8416ac7758c2da0216dc6d8 (diff)
Convert io_buffer_destroy to ~io_buffer_t
Diffstat (limited to 'io.h')
-rw-r--r--io.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/io.h b/io.h
index 4f0edd8a..cc2a3766 100644
--- a/io.h
+++ b/io.h
@@ -128,6 +128,8 @@ public:
{
}
+ ~io_buffer_t();
+
/** Function to create the output buffer */
void out_buffer_create()
{
@@ -200,11 +202,6 @@ shared_ptr<io_data_t> io_chain_get(io_chain_t &src, int fd);
/**
- Free all resources used by a IO_BUFFER type io redirection.
-*/
-void io_buffer_destroy(const shared_ptr<io_buffer_t> &io_buffer);
-
-/**
Create a IO_BUFFER type io redirection, complete with a pipe and a
vector<char> for output. The default file descriptor used is 1 for
output buffering and 0 for input buffering.