Mercurial > dropbear
comparison channel.h @ 1460:58a74cb829b8
Pointer parameter could be declared as pointing to const (callback)
author | Francois Perrad <francois.perrad@gadz.org> |
---|---|
date | Sat, 19 Aug 2017 22:39:53 +0200 |
parents | 06d52bcb8094 |
children | 47f36d8565cf |
comparison
equal
deleted
inserted
replaced
1459:06d52bcb8094 | 1460:58a74cb829b8 |
---|---|
82 or failure). */ | 82 or failure). */ |
83 | 83 |
84 int flushing; | 84 int flushing; |
85 | 85 |
86 /* Used by client chansession to handle ~ escaping, NULL ignored otherwise */ | 86 /* Used by client chansession to handle ~ escaping, NULL ignored otherwise */ |
87 void (*read_mangler)(struct Channel*, unsigned char* bytes, int *len); | 87 void (*read_mangler)(const struct Channel*, const unsigned char* bytes, int *len); |
88 | 88 |
89 const struct ChanType* type; | 89 const struct ChanType* type; |
90 | 90 |
91 enum dropbear_channel_prio prio; | 91 enum dropbear_channel_prio prio; |
92 }; | 92 }; |
96 int sepfds; /* Whether this channel has separate 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)(const struct Channel*); |
102 }; | 102 }; |
103 | 103 |
104 /* Callback for connect_remote */ | 104 /* Callback for connect_remote */ |
105 void channel_connect_done(int result, int sock, void* user_data, const char* errstring); | 105 void channel_connect_done(int result, int sock, void* user_data, const char* errstring); |
106 | 106 |