common/features: use bitmaps internally, have explicit init function.

This is to prepare for dynamic features, including making plugins first
class citizens at setting them.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-03-31 09:09:00 +10:30
committed by Christian Decker
parent c59327dce1
commit afb76392e4
11 changed files with 180 additions and 76 deletions

View File

@@ -1,6 +1,7 @@
#include "../seeker.c"
#include <ccan/err/err.h>
#include <common/json_stream.h>
#include <common/memleak.h>
#include <common/wireaddr.h>
#include <stdarg.h>
#include <stdio.h>
@@ -37,6 +38,9 @@ struct oneshot *new_reltimer_(struct timers *timers UNNEEDED,
struct timerel expire UNNEEDED,
void (*cb)(void *) UNNEEDED, void *arg UNNEEDED)
{ fprintf(stderr, "new_reltimer_ called!\n"); abort(); }
/* Generated stub for notleak_ */
void *notleak_(const void *ptr UNNEEDED, bool plus_children UNNEEDED)
{ fprintf(stderr, "notleak_ called!\n"); abort(); }
/* Generated stub for query_channel_range */
bool query_channel_range(struct daemon *daemon UNNEEDED,
struct peer *peer UNNEEDED,