core-lightning/common/configdir.h
Rusty Russell 0b5b1faff5 common/configdir: simply supply defaults, leave parsing to programs.
We're going to get tricky with lightingd's parsing next, so split it out.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-07-27 05:16:22 +00:00

16 lines
445 B
C

#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);
/* The default configuration dir: ~/.lightning */
char *default_configdir(const tal_t *ctx);
/* The default rpc filename: lightning-rpc */
char *default_rpcfile(const tal_t *ctx);
#endif /* LIGHTNING_COMMON_CONFIGDIR_H */