Encapsulate flow descriptions inside a struct.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "airspy_adsb.h"
|
||||
#include "beast.h"
|
||||
#include "buf.h"
|
||||
#include "flow.h"
|
||||
#include "json.h"
|
||||
#include "packet.h"
|
||||
#include "peer.h"
|
||||
@@ -36,6 +37,13 @@ struct receive {
|
||||
};
|
||||
static struct receive *receive_head = NULL;
|
||||
|
||||
static struct flow _receive_flow = {
|
||||
.name = "receive",
|
||||
.new = receive_new,
|
||||
.ref_count = &peer_count_in,
|
||||
};
|
||||
struct flow *receive_flow = &_receive_flow;
|
||||
|
||||
static struct parser {
|
||||
char *name;
|
||||
parser parse;
|
||||
|
||||
Reference in New Issue
Block a user