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

Function main

plugins/bkpr/bookkeeper.c:1855–1879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1853}
1854
1855int main(int argc, char *argv[])
1856{
1857 setup_locale();
1858
1859 /* No datadir is default */
1860 datadir = NULL;
1861 db_dsn = NULL;
1862
1863 plugin_main(argv, init, PLUGIN_STATIC, true, NULL,
1864 commands, ARRAY_SIZE(commands),
1865 notifs, ARRAY_SIZE(notifs),
1866 NULL, 0,
1867 NULL, 0,
1868 plugin_option("bookkeeper-dir",
1869 "string",
1870 "Location for bookkeeper records.",
1871 charp_option, &datadir),
1872 plugin_option("bookkeeper-db",
1873 "string",
1874 "Location of the bookkeeper database",
1875 charp_option, &db_dsn),
1876 NULL);
1877
1878 return 0;
1879}

Callers

nothing calls this directly

Calls 3

setup_localeFunction · 0.85
plugin_mainFunction · 0.85
plugin_optionClass · 0.50

Tested by

no test coverage detected