From f550f04aa52852ca0d04552a5e103f51ff1023e6 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 28 Jul 2021 15:51:49 +0200 Subject: -formatting / comments --- src/util/configuration.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/util') diff --git a/src/util/configuration.c b/src/util/configuration.c index f091c4674..06938be67 100644 --- a/src/util/configuration.c +++ b/src/util/configuration.c @@ -238,11 +238,19 @@ GNUNET_CONFIGURATION_parse_and_run (const char *filename, return ret; } + +/** + * Closure to inline_glob_cb. + */ struct InlineGlobClosure { + /** + * Configuration to read inlined configuration into. + */ struct GNUNET_CONFIGURATION_Handle *cfg; }; + /** * Function called with a filename. * @@ -291,6 +299,7 @@ find_section (const struct GNUNET_CONFIGURATION_Handle *cfg, return pos; } + static void set_section_inaccessible (struct GNUNET_CONFIGURATION_Handle *cfg, const char *section) @@ -311,6 +320,7 @@ set_section_inaccessible (struct GNUNET_CONFIGURATION_Handle *cfg, sec->inaccessible = true; } + /** * Handle an inline directive. * @@ -438,10 +448,10 @@ handle_inline (struct GNUNET_CONFIGURATION_Handle *cfg, enum GNUNET_GenericReturnValue -deserialize_internal (struct GNUNET_CONFIGURATION_Handle *cfg, - const char *mem, - size_t size, - const char *source_filename) +GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, + const char *mem, + size_t size, + const char *source_filename) { size_t line_size; unsigned int nr; @@ -668,16 +678,6 @@ deserialize_internal (struct GNUNET_CONFIGURATION_Handle *cfg, } -enum GNUNET_GenericReturnValue -GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, - const char *mem, - size_t size, - const char *source_filename) -{ - return deserialize_internal (cfg, mem, size, source_filename); -} - - enum GNUNET_GenericReturnValue GNUNET_CONFIGURATION_parse (struct GNUNET_CONFIGURATION_Handle *cfg, const char *filename) -- cgit v1.2.3