comparison channel.h @ 1459:06d52bcb8094

Pointer parameter could be declared as pointing to const
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 17:16:13 +0200
parents 750ec4ec4cbe
children 58a74cb829b8
comparison
equal deleted inserted replaced
1458:bdd3802c8ac6 1459:06d52bcb8094
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
107 void chaninitialise(const struct ChanType *chantypes[]); 107 void chaninitialise(const struct ChanType *chantypes[]);
108 void chancleanup(void); 108 void chancleanup(void);
109 void setchannelfds(fd_set *readfds, fd_set *writefds, int allow_reads); 109 void setchannelfds(fd_set *readfds, fd_set *writefds, int allow_reads);
110 void channelio(fd_set *readfd, fd_set *writefd); 110 void channelio(const fd_set *readfd, const fd_set *writefd);
111 struct Channel* getchannel(void); 111 struct Channel* getchannel(void);
112 /* Returns an arbitrary channel that is in a ready state - not 112 /* Returns an arbitrary channel that is in a ready state - not
113 being initialised and no EOF in either direction. NULL if none. */ 113 being initialised and no EOF in either direction. NULL if none. */
114 struct Channel* get_any_ready_channel(void); 114 struct Channel* get_any_ready_channel(void);
115 115
116 void recv_msg_channel_open(void); 116 void recv_msg_channel_open(void);
117 void recv_msg_channel_request(void); 117 void recv_msg_channel_request(void);
118 void send_msg_channel_failure(struct Channel *channel); 118 void send_msg_channel_failure(const struct Channel *channel);
119 void send_msg_channel_success(struct Channel *channel); 119 void send_msg_channel_success(const struct Channel *channel);
120 void recv_msg_channel_data(void); 120 void recv_msg_channel_data(void);
121 void recv_msg_channel_extended_data(void); 121 void recv_msg_channel_extended_data(void);
122 void recv_msg_channel_window_adjust(void); 122 void recv_msg_channel_window_adjust(void);
123 void recv_msg_channel_close(void); 123 void recv_msg_channel_close(void);
124 void recv_msg_channel_eof(void); 124 void recv_msg_channel_eof(void);
133 #if DROPBEAR_LISTENERS || DROPBEAR_CLIENT 133 #if DROPBEAR_LISTENERS || DROPBEAR_CLIENT
134 int send_msg_channel_open_init(int fd, const struct ChanType *type); 134 int send_msg_channel_open_init(int fd, const struct ChanType *type);
135 void recv_msg_channel_open_confirmation(void); 135 void recv_msg_channel_open_confirmation(void);
136 void recv_msg_channel_open_failure(void); 136 void recv_msg_channel_open_failure(void);
137 #endif 137 #endif
138 void start_send_channel_request(struct Channel *channel, char *type); 138 void start_send_channel_request(const struct Channel *channel, const char *type);
139 139
140 void send_msg_request_success(void); 140 void send_msg_request_success(void);
141 void send_msg_request_failure(void); 141 void send_msg_request_failure(void);
142 142
143 143