server/: Build a proper interface for handling tunnel classes.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 19 May 2018 20:39:53 +0000 (21:39 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 5 Sep 2019 12:05:24 +0000 (13:05 +0100)
commit24898e7eadbac98ac25abbecdb813ceacabefa76
tree70d7f5606c129531b931faba4bc3529f64797bcc
parentcd2d678ee93ee3cab0c4f0df959489c27e9a8ad5
server/: Build a proper interface for handling tunnel classes.

  * Introduce functions for enumerating the available tunnel types,
    looking one up by name, and returning a default tunnel.  This
    eliminates the direct access previously used by the admin code.

  * Introduce a registration interface.  This isn't necessary for our
    purposes, but, in case it's not been obvious enough, the recent
    changes have been directed towards making the server code suitable
    as a library, and a user of this library might well need a custom
    tunnel class.
server/admin.c
server/peer.c
server/tripe.c
server/tripe.h