Files
adsb-tools/adsbus/flow.h

22 lines
454 B
C
Raw Normal View History

#pragma once
2016-02-29 20:49:36 -08:00
#include <stdbool.h>
#include <stdint.h>
struct buf;
struct peer;
struct flow {
const char *name;
void (*socket_ready)(int);
void (*new)(int, void *, struct peer *);
void (*get_hello)(struct buf **, void *);
uint32_t *ref_count;
};
2016-02-29 20:49:36 -08:00
void flow_socket_ready(int, struct flow *);
2016-02-29 20:49:36 -08:00
bool flow_hello(int, struct flow *, void *);
2016-03-02 19:16:23 -08:00
bool flow_new(int, struct flow *, void *);
void flow_ref_inc(struct flow *);
void flow_ref_dec(struct flow *);