aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist/gnunet-daemon-hostlist.c
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-15 16:21:06 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-15 16:21:06 +0100
commite6b3fec9e4a573e1f0c594a3c2f345357c0c12b8 (patch)
tree2fecdbebccc0970ff483ed28ea327f056f87423b /src/hostlist/gnunet-daemon-hostlist.c
parent5d6ed5fbda01a324d8d9b800928339d4a90343c3 (diff)
downloadgnunet-e6b3fec9e4a573e1f0c594a3c2f345357c0c12b8.tar.gz
gnunet-e6b3fec9e4a573e1f0c594a3c2f345357c0c12b8.zip
getopt API porting.
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist.c')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c
index a83d46e07..9b4790c32 100644
--- a/src/hostlist/gnunet-daemon-hostlist.c
+++ b/src/hostlist/gnunet-daemon-hostlist.c
@@ -369,23 +369,26 @@ run (void *cls,
369int 369int
370main (int argc, char *const *argv) 370main (int argc, char *const *argv)
371{ 371{
372 static const struct GNUNET_GETOPT_CommandLineOption options[] = { 372 struct GNUNET_GETOPT_CommandLineOption options[] = {
373#if HAVE_MHD 373#if HAVE_MHD
374 {'a', "advertise", NULL, 374 GNUNET_GETOPT_OPTION_SET_ONE ('a',
375 gettext_noop ("advertise our hostlist to other peers"), 375 "advertise",
376 GNUNET_NO, &GNUNET_GETOPT_set_one, &advertising}, 376 gettext_noop ("advertise our hostlist to other peers"),
377 &advertising),
377#endif 378#endif
378 {'b', "bootstrap", NULL, 379 GNUNET_GETOPT_OPTION_SET_ONE ('b',
379 gettext_noop 380 "bootstrap",
380 ("bootstrap using hostlists (it is highly recommended that you always use this option)"), 381 gettext_noop ("bootstrap using hostlists (it is highly recommended that you always use this option)"),
381 GNUNET_NO, &GNUNET_GETOPT_set_one, &bootstrapping}, 382 &bootstrapping),
382 {'e', "enable-learning", NULL, 383 GNUNET_GETOPT_OPTION_SET_ONE ('e',
383 gettext_noop ("enable learning about hostlist servers from other peers"), 384 "enable-learning",
384 GNUNET_NO, &GNUNET_GETOPT_set_one, &learning}, 385 gettext_noop ("enable learning about hostlist servers from other peers"),
386 &learning),
385#if HAVE_MHD 387#if HAVE_MHD
386 {'p', "provide-hostlist", NULL, 388 GNUNET_GETOPT_OPTION_SET_ONE ('p',
387 gettext_noop ("provide a hostlist server"), 389 "provide-hostlist",
388 GNUNET_NO, &GNUNET_GETOPT_set_one, &provide_hostlist}, 390 gettext_noop ("provide a hostlist server"),
391 &provide_hostlist),
389#endif 392#endif
390 GNUNET_GETOPT_OPTION_END 393 GNUNET_GETOPT_OPTION_END
391 }; 394 };