| 107 | } |
| 108 | |
| 109 | bool pipe_manager::push_front(pipe_stream* stream) |
| 110 | { |
| 111 | std::list<pipe_stream*>::const_iterator cit = m_streams.begin(); |
| 112 | |
| 113 | for (; cit != m_streams.end(); ++cit) { |
| 114 | if (stream == *cit) { |
| 115 | return false; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | m_streams.push_front(stream); |
| 120 | return true; |
| 121 | } |
| 122 | |
| 123 | bool pipe_manager::update(const char* src, size_t len, |
| 124 | pipe_stream* out /* = NULL */) |