You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
920 B
31 lines
920 B
#ifndef LIGHTNING_COMMON_CONFIGDIR_H
|
|
#define LIGHTNING_COMMON_CONFIGDIR_H
|
|
#include "config.h"
|
|
#include <ccan/tal/tal.h>
|
|
|
|
/* Helper for options which are tal() strings. */
|
|
char *opt_set_talstr(const char *arg, char **p);
|
|
|
|
/* Initial options setup */
|
|
void setup_option_allocators(void);
|
|
|
|
/* Parse minimal config options and files */
|
|
void initial_config_opts(const tal_t *ctx,
|
|
int argc, char *argv[],
|
|
char **config_filename,
|
|
char **config_basedir,
|
|
char **config_netdir,
|
|
char **rpc_filename);
|
|
|
|
/* If they specify --conf, we just read that.
|
|
* Otherwise, we read basedir/config (toplevel), and basedir/<network>/config
|
|
* (network-level) */
|
|
void parse_config_files(const char *config_filename,
|
|
const char *config_basedir,
|
|
bool early);
|
|
|
|
/* For listconfigs to access. */
|
|
char *opt_ignore(const char *arg, void *unused);
|
|
char *opt_ignore_noarg(void *unused);
|
|
|
|
#endif /* LIGHTNING_COMMON_CONFIGDIR_H */
|
|
|