-static char *null_init(void *, void **, Config *, char *, int, char **, int);
-static char *loop_init(void *, void **, Config *, char *, int, char **, int);
+static const char *null_init(void *, void **, Config *, char *, int, char **,
+ int, int);
+static const char *loop_init(void *, void **, Config *, char *, int, char **,
+ int, int);
static void null_free(void *);
static void loop_free(void *);
static void null_reconfig(void *, Config *);
static void null_free(void *);
static void loop_free(void *);
static void null_reconfig(void *, Config *);
static int null_sendbuffer(void *);
static void null_size(void *, int, int);
static void null_special(void *, Telnet_Special);
static int null_sendbuffer(void *);
static void null_size(void *, int, int);
static void null_special(void *, Telnet_Special);
static Socket null_socket(void *);
static int null_exitcode(void *);
static int null_sendok(void *);
static Socket null_socket(void *);
static int null_exitcode(void *);
static int null_sendok(void *);
static void null_provide_ldisc(void *, void *);
static void null_provide_logctx(void *, void *);
static void null_unthrottle(void *, int);
static void null_provide_ldisc(void *, void *);
static void null_provide_logctx(void *, void *);
static void null_unthrottle(void *, int);
Backend null_backend = {
null_init, null_free, null_reconfig, null_send, null_sendbuffer, null_size,
Backend null_backend = {
null_init, null_free, null_reconfig, null_send, null_sendbuffer, null_size,
- null_special, null_socket, null_exitcode, null_sendok, null_ldisc,
- null_provide_ldisc, null_provide_logctx, null_unthrottle, 0
+ null_special, null_get_specials, null_socket, null_exitcode, null_sendok,
+ null_ldisc, null_provide_ldisc, null_provide_logctx, null_unthrottle,
+ null_cfg_info, 0
};
Backend loop_backend = {
loop_init, loop_free, null_reconfig, loop_send, null_sendbuffer, null_size,
};
Backend loop_backend = {
loop_init, loop_free, null_reconfig, loop_send, null_sendbuffer, null_size,
- null_special, null_socket, null_exitcode, null_sendok, null_ldisc,
- null_provide_ldisc, null_provide_logctx, null_unthrottle, 0
+ null_special, null_get_specials, null_socket, null_exitcode, null_sendok,
+ null_ldisc, null_provide_ldisc, null_provide_logctx, null_unthrottle,
+ null_cfg_info, 0
-static char *null_init(void *frontend_handle, void **backend_handle,
- Config *cfg, char *host, int port, char **realhost,
- int nodelay) {
+static const char *null_init(void *frontend_handle, void **backend_handle,
+ Config *cfg, char *host, int port,
+ char **realhost, int nodelay, int keepalive) {
-static char *loop_init(void *frontend_handle, void **backend_handle,
- Config *cfg, char *host, int port, char **realhost,
- int nodelay) {
+static const char *loop_init(void *frontend_handle, void **backend_handle,
+ Config *cfg, char *host, int port,
+ char **realhost, int nodelay, int keepalive) {