X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=secnet.git;a=blobdiff_plain;f=comm-common.h;h=ebb71b83eaedeb61fe53efdf41bf1247f7b90940;hp=4aa644a47e46102a28202bc5bca138219e891a08;hb=55b79a8366a012388edabe7d2fad72a3a54ffe33;hpb=6c5889e68832bfd96fdd1de7e6df4309e7017372 diff --git a/comm-common.h b/comm-common.h index 4aa644a..ebb71b8 100644 --- a/comm-common.h +++ b/comm-common.h @@ -1,3 +1,21 @@ +/* + * This file is part of secnet. + * See README for full list of copyright holders. + * + * secnet is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version d of the License, or + * (at your option) any later version. + * + * secnet is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * version 3 along with secnet; if not, see + * https://www.gnu.org/licenses/gpl.html. + */ #ifndef COMM_COMMON_H #define COMM_COMMON_H @@ -22,6 +40,8 @@ struct commcommon { /* must be first so that void* is comm_common* */ struct buffer_if *rbuf; }; +struct comm_clientinfo *comm_clientinfo_ignore(void *state, dict_t*, + struct cloc cloc); void comm_request_notify(void *commst, void *nst, comm_notify_fn *fn); void comm_release_notify(void *commst, void *nst, comm_notify_fn *fn); @@ -37,6 +57,7 @@ void comm_apply(struct commcommon *cc, void *st); NEW(st); \ (cc)->loc=loc; \ (cc)->cl.description=desc; \ + (cc)->ops.clientinfo=comm_clientinfo_ignore; \ (cc)->ops.sendmsg=prefix##sendmsg; \ (cc)->ops.addr_to_string=prefix##addr_to_string; \ comm_apply((cc),(st))