LCOV - code coverage report
Current view: top level - minipot/include - minipot_config_load.h (source / functions) Hit Total Coverage
Test: sentinel-minipot-2.3.0 Code Coverage Lines: 0 2 0.0 %
Date: 2022-11-27 17:36:11 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef _SENTINEL_MINIPOT_CONFIG_LOAD_H_
       2             : #define _SENTINEL_MINIPOT_CONFIG_LOAD_H_
       3             : 
       4             : #include <minipot_config.h>
       5             : #include <libconfig.h>
       6             : 
       7             : // Loads libconfig config_t* from given file. Returns 1 if the config_t was
       8             : // succesfully loaded. If couldn't open the file returns 0.
       9             : // The config_t* is first initialized by `config_init`. The caller is
      10             : // responsible for calling `config_destroy` after using config_t*. 
      11           0 : int minipot_config_load_from_file(config_t *cfg, const char *file)
      12             :         __attribute__((nonnull));
      13             : 
      14             : // Parses minipot configuration from libconfig setting.
      15             : // It parses particular child settings only if their coresponding minipot_config
      16             : // values has default value. This is beacuse CLI options have highest priority
      17             : // and they are parsed first.
      18           0 : void minipot_config_parse_setting(struct minipot_config *minipot_config,
      19             :         config_setting_t *setting) __attribute__((nonnull(1)));
      20             : 
      21             : #endif

Generated by: LCOV version 1.16