MCPcopy Create free account
hub / github.com/ElementsProject/lightning / configvar_new

Function configvar_new

common/configvar.c:9–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <unistd.h>
8
9struct configvar *configvar_new(const tal_t *ctx,
10 enum configvar_src src,
11 const char *file,
12 size_t linenum,
13 const char *configline)
14{
15 struct configvar *cv = tal(ctx, struct configvar);
16 cv->file = tal_strdup_or_null(cv, file);
17 cv->src = src;
18 cv->linenum = linenum;
19 cv->configline = tal_strdup(cv, configline);
20 cv->overridden = false;
21 cv->optvar = NULL;
22 /* We fill in cv->optvar and cv->optarg when parsing! */
23 return cv;
24}
25
26const struct opt_table *configvar_unparsed(struct configvar *cv)
27{

Callers 4

plugin_add_paramsFunction · 0.85
configvar_updatedFunction · 0.85
gather_file_configvarsFunction · 0.85
gather_cmdline_argsFunction · 0.85

Calls 1

tal_strdup_or_nullFunction · 0.85

Tested by

no test coverage detected