comparison channel.h @ 1276:9169e4e7cbee

fix empty C prototypes
author Francois Perrad <francois.perrad@gadz.org>
date Fri, 01 Jan 2016 16:30:31 +0100
parents 93e29b0ef8dc
children 750ec4ec4cbe
comparison
equal deleted inserted replaced
1275:d49bda490798 1276:9169e4e7cbee
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
107 void chaninitialise(const struct ChanType *chantypes[]); 107 void chaninitialise(const struct ChanType *chantypes[]);
108 void chancleanup(); 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(fd_set *readfd, fd_set *writefd);
111 struct Channel* getchannel(); 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(); 114 struct Channel* get_any_ready_channel(void);
115 115
116 void recv_msg_channel_open(); 116 void recv_msg_channel_open(void);
117 void recv_msg_channel_request(); 117 void recv_msg_channel_request(void);
118 void send_msg_channel_failure(struct Channel *channel); 118 void send_msg_channel_failure(struct Channel *channel);
119 void send_msg_channel_success(struct Channel *channel); 119 void send_msg_channel_success(struct Channel *channel);
120 void recv_msg_channel_data(); 120 void recv_msg_channel_data(void);
121 void recv_msg_channel_extended_data(); 121 void recv_msg_channel_extended_data(void);
122 void recv_msg_channel_window_adjust(); 122 void recv_msg_channel_window_adjust(void);
123 void recv_msg_channel_close(); 123 void recv_msg_channel_close(void);
124 void recv_msg_channel_eof(); 124 void recv_msg_channel_eof(void);
125 125
126 void common_recv_msg_channel_data(struct Channel *channel, int fd, 126 void common_recv_msg_channel_data(struct Channel *channel, int fd,
127 circbuffer * buf); 127 circbuffer * buf);
128 128
129 #ifdef DROPBEAR_CLIENT 129 #ifdef DROPBEAR_CLIENT
130 extern const struct ChanType clichansess; 130 extern const struct ChanType clichansess;
131 #endif 131 #endif
132 132
133 #if defined(USING_LISTENERS) || defined(DROPBEAR_CLIENT) 133 #if defined(USING_LISTENERS) || defined(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(); 135 void recv_msg_channel_open_confirmation(void);
136 void recv_msg_channel_open_failure(); 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(struct Channel *channel, char *type);
139 139
140 void send_msg_request_success(); 140 void send_msg_request_success(void);
141 void send_msg_request_failure(); 141 void send_msg_request_failure(void);
142 142
143 143
144 #endif /* DROPBEAR_CHANNEL_H_ */ 144 #endif /* DROPBEAR_CHANNEL_H_ */