aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_configuration_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-09-05 18:27:53 +0200
committerChristian Grothoff <christian@grothoff.org>2021-09-05 18:27:53 +0200
commitf9f3cbe9fcedfb8ca95275d5e406b1270062d7ea (patch)
tree27b0edf698cb8044dcd9b51833271454e6c29aa5 /src/include/gnunet_configuration_lib.h
parentb4e034d9aa471c6244718914e08be3ee414b18e6 (diff)
downloadgnunet-f9f3cbe9fcedfb8ca95275d5e406b1270062d7ea.tar.gz
gnunet-f9f3cbe9fcedfb8ca95275d5e406b1270062d7ea.zip
make backend-check a gnunet-only gnunet-config option
Diffstat (limited to 'src/include/gnunet_configuration_lib.h')
-rw-r--r--src/include/gnunet_configuration_lib.h23
1 files changed, 8 insertions, 15 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h
index 46b745541..234f66e61 100644
--- a/src/include/gnunet_configuration_lib.h
+++ b/src/include/gnunet_configuration_lib.h
@@ -642,6 +642,14 @@ struct GNUNET_CONFIGURATION_ConfigSettings
642{ 642{
643 643
644 /** 644 /**
645 * Must be set to the API version, i.e.
646 * #GNUNET_UTIL_VERSION. Used to detect
647 * which version of the struct the client
648 * is using.
649 */
650 unsigned int api_version;
651
652 /**
645 * Name of the section 653 * Name of the section
646 */ 654 */
647 char *section; 655 char *section;
@@ -657,13 +665,6 @@ struct GNUNET_CONFIGURATION_ConfigSettings
657 char *value; 665 char *value;
658 666
659 /** 667 /**
660 * Backend to check if the respective plugin is
661 * loadable. NULL if no check is to be performed.
662 * The value is the "basename" of the plugin to load.
663 */
664 char *backend_check;
665
666 /**
667 * Treat option as a filename. 668 * Treat option as a filename.
668 */ 669 */
669 int is_filename; 670 int is_filename;
@@ -706,14 +707,6 @@ struct GNUNET_CONFIGURATION_ConfigSettings
706 * @param cs configuration settings to initialize 707 * @param cs configuration settings to initialize
707 */ 708 */
708#define GNUNET_CONFIGURATION_CONFIG_OPTIONS(cs) \ 709#define GNUNET_CONFIGURATION_CONFIG_OPTIONS(cs) \
709 GNUNET_GETOPT_option_exclusive ( \
710 GNUNET_GETOPT_option_string ( \
711 'b', \
712 "supported-backend", \
713 "BACKEND", \
714 gettext_noop ( \
715 "test if the current installation supports the specified BACKEND"), \
716 &(cs)->backend_check)), \
717 GNUNET_GETOPT_option_flag ( \ 710 GNUNET_GETOPT_option_flag ( \
718 'F', \ 711 'F', \
719 "full", \ 712 "full", \