refactor: Moving write_ip and read_ip into routing.h

Further reduction in things in p2p_message so we can deprecate it
later.
This commit is contained in:
Christian Decker
2017-01-23 13:55:55 +01:00
committed by Rusty Russell
parent 2a7e757053
commit 3aa45a6d0b
3 changed files with 107 additions and 103 deletions

View File

@@ -156,4 +156,7 @@ bool add_channel_direction(struct routing_state *rstate,
const struct channel_id *channel_id,
const u8 *announcement);
bool read_ip(const tal_t *ctx, const u8 *addresses, char **hostname, int *port);
u8 *write_ip(const tal_t *ctx, const char *srcip, int port);
#endif /* LIGHTNING_DAEMON_ROUTING_H */