comparison channel.h @ 1049:01eea88963f3 fastopen

merge from default
author Matt Johnston <matt@ucc.asn.au>
date Sat, 28 Feb 2015 09:06:40 +0800
parents 02baa0b334e8 7c899f24a85b
children 10f198d4a308
comparison
equal deleted inserted replaced
1048:9cec9ed503bb 1049:01eea88963f3
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 * SOFTWARE. */ 23 * SOFTWARE. */
24 24
25 #ifndef _CHANNEL_H_ 25 #ifndef DROPBEAR_CHANNEL_H_
26 #define _CHANNEL_H_ 26 #define DROPBEAR_CHANNEL_H_
27 27
28 #include "includes.h" 28 #include "includes.h"
29 #include "buffer.h" 29 #include "buffer.h"
30 #include "circbuffer.h" 30 #include "circbuffer.h"
31 31
91 enum dropbear_channel_prio prio; 91 enum dropbear_channel_prio prio;
92 }; 92 };
93 93
94 struct ChanType { 94 struct ChanType {
95 95
96 int sepfds; /* Whether this channel has seperate pipes for in/out or not */ 96 int sepfds; /* Whether this channel has separate pipes for in/out or not */
97 char *name; 97 char *name;
98 int (*inithandler)(struct Channel*); 98 int (*inithandler)(struct Channel*);
99 int (*check_close)(struct Channel*); 99 int (*check_close)(struct Channel*);
100 void (*reqhandler)(struct Channel*); 100 void (*reqhandler)(struct Channel*);
101 void (*closehandler)(struct Channel*); 101 void (*closehandler)(struct Channel*);
139 139
140 void send_msg_request_success(); 140 void send_msg_request_success();
141 void send_msg_request_failure(); 141 void send_msg_request_failure();
142 142
143 143
144 #endif /* _CHANNEL_H_ */ 144 #endif /* DROPBEAR_CHANNEL_H_ */