mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
For future reference, done via: for f in `find wire/ bitcoin/ common/ lightningd -name '*.h' ! -name 'gen*'`; do ID=`echo -n LIGHTNING/$f | tr 'a-z' 'A-Z' | tr -cs 'A-Z0-9' _`; sed 's/^#\(ifndef\|define\) .*_H$/#\1 '$ID/ < $f | sed 's,#endif /..*_H ./$,#endif /* '$ID' */,' | bagto $f; done Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
17 lines
506 B
C
17 lines
506 B
C
#ifndef LIGHTNING_LIGHTNINGD_OPTIONS_H
|
|
#define LIGHTNING_LIGHTNINGD_OPTIONS_H
|
|
#include "config.h"
|
|
#include <ccan/tal/tal.h>
|
|
|
|
struct lightningd_state;
|
|
|
|
/* You can register additional options *after* this if you want. */
|
|
void register_opts(struct lightningd_state *dstate);
|
|
|
|
/* After this, we're in the .lightning dir, config file parsed.
|
|
* If we just created the dir, returns true.
|
|
*/
|
|
bool handle_opts(struct lightningd_state *dstate, int argc, char *argv[]);
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_OPTIONS_H */
|