Commit 0f203c05 authored by Niels Möller's avatar Niels Möller
Browse files

* src/connection_commands.c (connection_remember): Redefined using


Rev: src/connection_commands.c:1.39
Rev: src/connection_commands.h:1.18
parent e5157036
......@@ -35,35 +35,23 @@
#include "connection_commands.h.x"
#if 0
#include "connection_commands.c.x"
static void
do_connection_remember(struct command *s,
struct lsh_object *x,
struct command_continuation *c,
struct exception_handler *e UNUSED)
/* (remember connection resource) */
(struct command_2 *s UNUSED,
struct lsh_object *a1,
struct lsh_object *a2,
struct command_continuation *c,
struct exception_handler *e UNUSED)
CAST(connection_command, self, s);
CAST_SUBTYPE(resource, resource, x);
CAST(ssh_connection, connection, a1);
CAST_SUBTYPE(resource, resource, a2);
if (resource)
REMEMBER_RESOURCE(self->connection->resources, resource);
REMEMBER_RESOURCE(connection->resources, resource);
COMMAND_RETURN(c, resource);
DEFINE_COMMAND_SIMPLE(connection_remember, a)
CAST(ssh_connection, connection, a);
NEW(connection_command, self);
self-> = do_connection_remember;
self->connection = connection;
return &self->super.super;
/* (connection_if_srp then_f else_f connection)
......@@ -38,7 +38,7 @@
(connection object ssh_connection)))
extern struct command_simple connection_remember;
extern struct command_2 connection_remember;
#define CONNECTION_REMEMBER (&connection_remember.super.super)
struct command *
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment