aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.h
diff options
context:
space:
mode:
authorGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-09 16:02:04 +0800
committerGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-17 14:58:53 +0800
commitf1b375b042ad1564d00645579a54bb28ba3e30d1 (patch)
tree4f58775472a7c7fa70e5d628018e714cc2c8e261 /io.h
parent4e672427bc7fb0709a57335c9315f9afdc6e49ed (diff)
Split out io_close_t
Diffstat (limited to 'io.h')
-rw-r--r--io.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/io.h b/io.h
index da47abe0..d7ddbd0e 100644
--- a/io.h
+++ b/io.h
@@ -116,6 +116,17 @@ public:
}
};
+class io_close_t : public io_data_t
+{
+public:
+ io_close_t(int f) :
+ io_data_t(IO_CLOSE, f)
+ {
+ }
+
+ virtual void print() const;
+};
+
class io_chain_t : public std::vector<shared_ptr<io_data_t> >
{
public: