core-lightning/wire/wire_sync.h
Rusty Russell 9d316e39cd wire/wire_sync: helper routines for direct read/write of messages.
Some of the simple daemons want to use this, as do the status messages.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-01-10 15:21:20 +10:30

11 lines
293 B
C

#ifndef LIGHTNING_WIRE_WIRE_SYNC_H
#define LIGHTNING_WIRE_WIRE_SYNC_H
#include "config.h"
#include <ccan/short_types/short_types.h>
#include <ccan/tal/tal.h>
bool wire_sync_write(int fd, const void *msg);
u8 *wire_sync_read(const tal_t *ctx, int fd);
#endif /* LIGHTNING_WIRE_WIRE_SYNC_H */