X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fhostlist%2Fhostlist-server.h;h=b5960b39c112f6602b02665ef85fe8e57e2268f1;hb=5746309cb4be2073d550ad7a6885e918631dbc38;hp=16f6848a50f457e1e6624fcbfdc3bf0f4c341497;hpb=256e783449308d848bb687f5e9e79fde1c5fe03d;p=oweals%2Fgnunet.git diff --git a/src/hostlist/hostlist-server.h b/src/hostlist/hostlist-server.h index 16f6848a5..b5960b39c 100644 --- a/src/hostlist/hostlist-server.h +++ b/src/hostlist/hostlist-server.h @@ -4,7 +4,7 @@ GNUnet 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 2, or (at your + by the Free Software Foundation; either version 3, or (at your option) any later version. GNUnet is distributed in the hope that it will be useful, but @@ -31,23 +31,25 @@ #include "gnunet_statistics_service.h" #include "gnunet_util_lib.h" +#define GNUNET_ADV_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5) /** * Start server offering our hostlist. * * @return GNUNET_OK on success */ -int -GNUNET_HOSTLIST_server_start (struct GNUNET_CONFIGURATION_Handle *c, - struct GNUNET_SCHEDULER_Handle *s, - struct GNUNET_STATISTICS_Handle *st); +int GNUNET_HOSTLIST_server_start (const struct GNUNET_CONFIGURATION_Handle *c, + struct GNUNET_STATISTICS_Handle *st, + struct GNUNET_CORE_Handle *core, + GNUNET_CORE_ConnectEventHandler *server_ch, + GNUNET_CORE_DisconnectEventHandler *server_dh, + int advertise); /** * Stop server offering our hostlist. */ -void -GNUNET_HOSTLIST_server_stop (void); +void GNUNET_HOSTLIST_server_stop (void); #endif