| 170 | |
| 171 | template<typename In, typename Out> |
| 172 | void addFunction( |
| 173 | const char *name, |
| 174 | command_result (*fptr)(color_ostream &out, const In *input, Out *output), |
| 175 | int flags = 0 |
| 176 | ) { |
| 177 | assert(!owner); |
| 178 | functions.push_back(new ServerFunction<In,Out>(this, name, flags, fptr)); |
| 179 | } |
| 180 | |
| 181 | template<typename In> |
| 182 | void addFunction( |